Merge "Ignore interfaces with @ in the name"

This commit is contained in:
Jenkins 2016-07-05 11:43:27 +00:00 committed by Gerrit Code Review
commit 79ca6e27f7
1 changed files with 1 additions and 0 deletions

1
agent
View File

@ -599,6 +599,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