]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Move get_inteface_by_ip from LinuxBridge class to ip_lib
authorMiguel Angel Ajo <mangelajo@redhat.com>
Tue, 16 Jun 2015 11:48:26 +0000 (13:48 +0200)
committerMiguel Angel Ajo <mangelajo@redhat.com>
Wed, 17 Jun 2015 12:39:32 +0000 (14:39 +0200)
commit4a73ab99c9fcc63adbbb41d4a9b9ba8669afdc61
tree4f612e19f5a6540578d8c91e74a5a710247aacb2
parent9d649129ca762f406846190d31997397f0a0c53b
Move get_inteface_by_ip from LinuxBridge class to ip_lib

get_interface_by_ip is moved fro LinuxBridgeManager to ip_lib
as a more generic get_device_by_ip.

System-faking unit tests have been switched for functional
testing that also performs a negative test.

This can be reused in the openvswitch-agent code to validate
local_ip reusing the LinuxBridge logic.

Change-Id: I9237871a6e24dd99556c71844624be510e20d289
Related-Bug: #1464178
Related-Bug: #1408603
neutron/agent/linux/ip_lib.py
neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/tests/functional/agent/linux/test_ip_lib.py
neutron/tests/unit/plugins/linuxbridge/agent/test_linuxbridge_neutron_agent.py