From: Michael Rasmussen Date: Fri, 21 Oct 2016 18:14:52 +0000 (+0200) Subject: Add check for infiniband to write functions as well X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=d3d77e03f888325adfd4355152bc44fbf68c3f44 Add check for infiniband to write functions as well Signed-off-by: Michael Rasmussen --- diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index a15b27d..621b555 100644 --- a/src/PVE/INotify.pm +++ b/src/PVE/INotify.pm @@ -1201,7 +1201,7 @@ sub __write_etc_network_interfaces { $d->{type} eq 'OVSBond') { my $brname = $used_ports->{$iface}; if (!$brname || !$ifaces->{$brname}) { - if ($iface =~ /^(?:eth|en)/) { + if ($iface =~ /^(?:eth|en|ib)/) { $ifaces->{$iface} = { type => 'eth', exists => 1, method => 'manual', @@ -1290,7 +1290,7 @@ NETWORKDOC my $pri; if ($iface eq 'lo') { $pri = $if_type_hash->{loopback}; - } elsif ($iface =~ m/^(?:eth\d+|en[^:.]+)$/) { + } elsif ($iface =~ m/^(?:eth\d+|ib\d+|en[^:.]+)$/) { $pri = $if_type_hash->{eth} + $child; } elsif ($iface =~ m/^bond\d+$/) { $pri = $if_type_hash->{bond} + $child;