]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
DHCP agent should check interface is UP before adding route
authorrossella <rsblendido@suse.com>
Mon, 7 Apr 2014 15:53:34 +0000 (15:53 +0000)
committerrossella <rsblendido@suse.com>
Mon, 14 Apr 2014 13:57:33 +0000 (13:57 +0000)
commit4e9d4824050eedfd1495469a69e28864b6fec757
treed57bd34fbcccbc8b4497b9bdce8888de83a30320
parentf407360e10a1db0407460c65aba9c27fe270e4b9
DHCP agent should check interface is UP before adding route

The DHCP agent should check not only that an interface for
network's DHCP exists but also make sure that is UP before
adding a default route.
For this purpose a method "ensure_device_is_ready" was
added to ip_lib.

Change-Id: I9af06aa0f39634fe7b63c064337cd4191db5c026
Closes-bug: #1302312
neutron/agent/linux/dhcp.py
neutron/agent/linux/ip_lib.py
neutron/tests/unit/test_dhcp_agent.py
neutron/tests/unit/test_linux_ip_lib.py