net-check: add support for faulty operstate 37/22737/2
authorStefan Sicleru <stefan.sicleru@enea.com>
Tue, 30 Aug 2016 16:32:48 +0000 (18:32 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 6 Oct 2016 13:25:28 +0000 (13:25 +0000)
commitfcc8505054ff7499fed841a70ddc2e3e011dd12a
tree032e67c91c85b8b598164cd60506cf7c734e7f46
parentadc61fb7af7559b89ca70d44b5271d29db9a00e0
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

Closes-bug: ARMBAND-140

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