neutron/neutron/plugins/ml2/drivers
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 Use same instance of iptables_manager in L2 agent and extensions 2018-01-08 14:20:00 +01:00
l2pop Use subqueryload in l2pop DB for binding ports 2017-07-05 17:25:04 +00:00
linuxbridge Fix callers of get_devices_with_ip() to pass addresses 2018-01-26 19:44:20 +00:00
macvtap Use same instance of iptables_manager in L2 agent and extensions 2018-01-08 14:20:00 +01:00
mech_sriov Reduce rpc calls in SR-IOV agent 2017-06-19 10:19:59 +02:00
openvswitch Change OVS agent to update skipped port status to DOWN 2017-10-27 14:35:00 -04:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
helpers.py Check arg type for SegmentTypeDriver functions 2017-01-26 10:54:14 +04:00
mech_agent.py Downgrade binding skip in mech_agent 2016-09-09 07:31:47 -07:00
type_flat.py OVO for FlatAllocation 2016-12-22 13:25:50 +00:00
type_geneve.py Refactoring config options for ml2 plugin drivers 2016-09-30 18:03:28 -05:00
type_gre.py Refactoring config options for ml2 plugin drivers 2016-09-30 18:03:28 -05:00
type_local.py Change passing session to context for TypeDriver 2016-12-21 14:22:16 +04:00
type_tunnel.py Get rid of custom wrap_db_retry call in sync_allocations 2017-04-28 12:14:53 +00:00
type_vlan.py Stop using legacy facade 2017-01-19 13:02:33 +04:00
type_vxlan.py Refactoring config options for ml2 plugin drivers 2016-09-30 18:03:28 -05:00