neutron/neutron/plugins/ml2/drivers/linuxbridge
Brian Haley 2b22032146 Fix callers of get_devices_with_ip() to pass addresses
If callers of get_devices_with_ip(), or
device.addr.list(to=address) pass an ip_cidr, it
could match any ip_cidr in that range on the interface.
Callers need to pass the IP without the prefix portion in
order to match it exactly.  Added a helper utility to
strip the cidr part from a ip_cidr.

Determined the unit test for this can't actually check
this case since we are mocking the return value from
/sbin/ip, so modified it to just make sure the dict
is correct.

Added a functional test that adds two IP addresses in
the same IP range to verify that we actually filter
correctly when a 'to=IP' is specified.

Change-Id: I3a95b3bb72a43f322ad23892d8959398aac22a1c
Closes-bug: #1728080
(cherry picked from commit 7b8289253c)
(cherry picked from commit 15d843a2ca)
2018-01-26 19:44:20 +00:00
..
agent Fix callers of get_devices_with_ip() to pass addresses 2018-01-26 19:44:20 +00:00
mech_driver Transition qos notification driver into qos driver 2017-01-25 14:13:36 +01:00
__init__.py Restructure agent code in preparation for decomp 2015-06-26 15:06:49 +00:00