Currently _is_active_nic performs multiple checks to see if a link is live.
However some hardware such as Ethernet over USB devices fulfil this criteria.
This causes tripleo deployments to fail if automatic interface naming is used.
We can therefore use operstate to determine if the link is actually up. https://www.kernel.org/doc/Documentation/networking/operstates.txt
This patch implements this.
Implements: better link state detection
Closes-Bug: #1555669
Change-Id: I0bdd0c987f4f177935df4f7cdcc70f4d99c988a5
Signed-off-by: Christopher Brown <email address hidden>
Reviewed: https:/ /review. openstack. org/291243 /git.openstack. org/cgit/ openstack/ os-net- config/ commit/ ?id=8792d74c911 5d48f1756c2a77f 5ff4ed4a001cdf
Committed: https:/
Submitter: Jenkins
Branch: master
commit 8792d74c9115d48 f1756c2a77f5ff4 ed4a001cdf
Author: Christopher Brown <email address hidden>
Date: Thu Mar 10 15:18:33 2016 +0000
Use interface operstate to determine nic status
Fixes lp bug 1555669
Currently _is_active_nic performs multiple checks to see if a link is live. /www.kernel. org/doc/ Documentation/ networking/ operstates. txt
However some hardware such as Ethernet over USB devices fulfil this criteria.
This causes tripleo deployments to fail if automatic interface naming is used.
We can therefore use operstate to determine if the link is actually up.
https:/
This patch implements this.
Implements: better link state detection 7935df4f7cdcc70 f4d99c988a5
Closes-Bug: #1555669
Change-Id: I0bdd0c987f4f17
Signed-off-by: Christopher Brown <email address hidden>