]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Implement ip_lib.device_exists_with_ip_mac
authorAssaf Muller <amuller@redhat.com>
Tue, 5 Aug 2014 20:12:55 +0000 (23:12 +0300)
committerAssaf Muller <amuller@redhat.com>
Mon, 25 Aug 2014 17:17:34 +0000 (20:17 +0300)
commitc5277abccaa9ec4580495867e55d56fba428eb85
tree3e712224612577f22b6b2d82a62f13bda46d896b
parent8fde2e37f022a548df3820b29aa50e82d501bd83
Implement ip_lib.device_exists_with_ip_mac

ip_lib.device_exists simply checks that a device is in an
(optional) namespace. This patch adds
ip_lib.device_exists_with_ip_mac, which also verifies that
the device is configured with the given IP and MAC addresses.
The new function is used in functional tests in a patch
further down the dependency chain.

Added functional tests for ip_lib.device_exists,
ip_lib.device_exists_with_ip_mac.

Implements: blueprint l3-high-availability
Change-Id: I1495bcf1f1a88e2eb78df79cccb64121ccf435fb
neutron/agent/linux/ip_lib.py
neutron/tests/functional/agent/linux/base.py
neutron/tests/functional/agent/linux/test_ip_lib.py [new file with mode: 0644]