]> git.proxmox.com Git - mirror_ifupdown2.git/commit
addons: dhcp: check if iface has link-local address before starting dhclient6
authorJulien Fortin <julien@cumulusnetworks.com>
Thu, 1 Dec 2016 05:34:02 +0000 (06:34 +0100)
committerJulien Fortin <julien@cumulusnetworks.com>
Thu, 1 Dec 2016 05:34:02 +0000 (06:34 +0100)
commitb62a7e7375198a6ec51bdc20a2529c2c0bd0feb2
tree3aaa1e3f46b5de5e05260947d43561f674898acc
parent1ce8b5bb82801c516e825a6eccb51bc4e5c917dd
addons: dhcp: check if iface has link-local address before starting dhclient6

Ticket: CM-13248
Reviewed By: Roopa, Kanna, Nikhil G
Testing Done: See bug

Today before starting dhclient6, we are sleeping 2 seconds we need to make sure
the configured interface is up and has a link-local address.
In some cases 2 seconds is not enough. This patch will install a retry loop
with a 10 sec timeout.
We are querying ip -6 addr show to make sure the interface is properly confi-
-gured but in the future the plan is to move this call to netlink.

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
addons/dhcp.py