2b22032146
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 |
||
---|---|---|
.. | ||
__init__.py | ||
agent.py | ||
dvr_edge_ha_router.py | ||
dvr_edge_router.py | ||
dvr_fip_ns.py | ||
dvr_local_router.py | ||
dvr_router_base.py | ||
dvr_snat_ns.py | ||
dvr.py | ||
fip_rule_priority_allocator.py | ||
ha_router.py | ||
ha.py | ||
item_allocator.py | ||
keepalived_state_change.py | ||
l3_agent_extension_api.py | ||
l3_agent_extension.py | ||
l3_agent_extensions_manager.py | ||
legacy_router.py | ||
link_local_allocator.py | ||
namespace_manager.py | ||
namespaces.py | ||
router_info.py | ||
router_processing_queue.py |