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 |
||
---|---|---|
.. | ||
common | ||
ml2 | ||
__init__.py |