net-check: add support for faulty operstate 57/19957/2
authorStefan Sicleru <stefan.sicleru@enea.com>
Tue, 30 Aug 2016 16:32:48 +0000 (18:32 +0200)
committerStefan Sicleru <stefan.sicleru@enea.com>
Wed, 31 Aug 2016 11:17:44 +0000 (13:17 +0200)
commit42050fe09821b29b4879f77411eb558c57c302cc
treed50f0ab0ea04c9c901070ba74ead20ca1c33db2c
parent6ae4e120c5f6aab6834e0ec42599e1b409a9af05
net-check: add support for faulty operstate

Some eth drivers, such as those for APM X-Gene Mustang Board's NICs, do
not advertise operstate properly in sysfs, ie. it is advertised as
"unknown" whereas ethtool shows the NIC as fully functional with link
detected. This further affects "ip link show" output which is parsed
within _check_iface_ready() method.

Replace "ip link show" command with "ethtool" in order to obtain proper
results when operstate is unknown.

Launchpad bug: https://bugs.launchpad.net/fuel/+bug/1618480

Change-Id: If8e28d3720161d9ffe897b875af235561cf1062d
Signed-off-by: Stefan Sicleru <stefan.sicleru@enea.com>
patches/opnfv-fuel/0054-net-check-add-support-for-faulty-operstate.patch [new file with mode: 0644]