end
node[:network][:interfaces].each do |ifname, ifattr|
- if ifattr[:encapsulation] == "Ethernet" && ifattr[:state] == "up"
+ if ifattr[:flags].include?("UP") && !ifattr[:flags].include?("LOOPBACK")
if node[:hardware] &&
node[:hardware][:network] &&
node[:hardware][:network][ifname][:device] =~ /^virtio/