From 46c31195d247763aee8916769441339174980a94 Mon Sep 17 00:00:00 2001 From: Vasyl Saienko Date: Tue, 14 Jun 2016 14:06:48 +0300 Subject: [PATCH] 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 --- agent | 1 + 1 file changed, 1 insertion(+) diff --git a/agent b/agent index b217b6a..108bc52 100755 --- a/agent +++ b/agent @@ -402,6 +402,7 @@ class NodeAgent (@os[:network][:interfaces] or {} rescue {}).each do |int, intinfo| # 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