neutron/neutron/agent/l3
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
..
__init__.py Move classes out of l3_agent.py 2014-12-10 15:19:28 -07:00
agent.py Fix DNS connectivity issues with DVR+HA routers and DHCP-HA 2017-12-14 08:56:24 -08:00
dvr_edge_ha_router.py Remove get_router_cidrs method of dvr_edge_ha router 2017-01-19 10:37:14 -08:00
dvr_edge_router.py Ignore gre devices in namespaces when cleaning up devices 2017-06-14 16:19:14 +00:00
dvr_fip_ns.py Fix callers of get_devices_with_ip() to pass addresses 2018-01-26 19:44:20 +00:00
dvr_local_router.py Always call create_rtr_2_fip_link 2017-06-21 15:20:02 +00:00
dvr_router_base.py DVR: Look at all SNAT ports for a subnet match 2017-02-13 21:39:59 +00:00
dvr_snat_ns.py Merge "DVR: properly track SNAT traffic" into stable/ocata 2017-06-20 18:24:17 +00:00
dvr.py Clean-up L3 constant TODOs 2016-12-14 11:54:12 -05:00
fip_rule_priority_allocator.py Fix two spelling mistakes 2016-05-30 01:58:04 +00:00
ha_router.py Fix callers of get_devices_with_ip() to pass addresses 2018-01-26 19:44:20 +00:00
ha.py Disable RA and IPv6 forwarding on backup HA routers 2017-06-30 09:38:28 +00:00
item_allocator.py DVR: Fix ItemAllocator class to handle exceptions 2016-07-14 13:05:45 -04:00
keepalived_state_change.py Log messages for keepalived-state-change in syslog 2017-04-06 23:06:26 +00:00
l3_agent_extension_api.py Add L3 agent extension API object 2016-08-31 11:15:51 -04:00
l3_agent_extension.py Add L3 agent extension API object 2016-08-31 11:15:51 -04:00
l3_agent_extensions_manager.py Refactoring config options for l2 agent ext opts 2016-11-21 19:45:04 +00:00
legacy_router.py Don't pass config object to send_ip_addr_adv_notif() 2016-11-08 19:32:00 +00:00
link_local_allocator.py spelling error: 2016-06-30 10:17:18 +08:00
namespace_manager.py DVR: Clean stale snat-ns by checking its existence when agent restarts 2016-08-04 10:39:15 -07:00
namespaces.py Do not respond to ARP on IPv6-only interfaces 2017-07-24 11:59:50 +00:00
router_info.py Fix HA router initialization exception 2017-12-04 14:50:54 +00:00
router_processing_queue.py Move check_ha_state_for_router() into notification code 2017-11-09 10:52:08 -05:00