Ignore interfaces with @ in the name
ohai reports interface name as br-bm.755@br-bm if device is vlan subinterface
on the bridge.
This patch skip interfaces with such names.
Change-Id: I17fe2276ca5e6cddd38f70f44f1275eb97814a26
Closes-Bug: #1592361
(cherry picked from commit 46c31195d2
)
This commit is contained in:
parent
a557836439
commit
79417d9fba
1
agent
1
agent
|
@ -622,6 +622,7 @@ class NodeAgent
|
|||
#int = intinfo[:name]
|
||||
# Send info about physical interfaces only
|
||||
|
||||
next if int =~ /.*@.*/
|
||||
next if intinfo[:encapsulation] !~ /^Ethernet.*/
|
||||
# Avoid virtual devices like loopback, tunnels, bonding, vlans ...
|
||||
# TODO(vsharshov): replace below lines by this string after excluding Ruby 1.8
|
||||
|
|
Loading…
Reference in New Issue