X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2FPVE%2FINotify.pm;h=621b55556d4ad5e0dd8e3a14022c6a34a8bcda16;hb=e4ae11709910abb5eab43ae6b845a3e197bb62b1;hp=a15b27df6fe0e0a6d63de58f0c48eb85bd4d017b;hpb=309085272ba8494c5e0cb4824b29967c748f6e7f;p=pve-common.git 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;