X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FINotify.pm;h=a15b27df6fe0e0a6d63de58f0c48eb85bd4d017b;hp=7fb3490c452862770dcb07c7eb70e12d079444ef;hb=309085272ba8494c5e0cb4824b29967c748f6e7f;hpb=8fd0e286c22ebbca47fc893780b98d4676364060 diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm index 7fb3490..a15b27d 100644 --- a/src/PVE/INotify.pm +++ b/src/PVE/INotify.pm @@ -801,7 +801,7 @@ sub __read_etc_network_interfaces { if ($proc_net_dev) { while (defined ($line = <$proc_net_dev>)) { - if ($line =~ m/^\s*(eth\d+|en[^:.]+):.*/) { + if ($line =~ m/^\s*(eth\d+|en[^:.]+|ib\d+):.*/) { $ifaces->{$1}->{exists} = 1; } } @@ -974,7 +974,7 @@ sub __read_etc_network_interfaces { $ifaces->{$1}->{exists} = 0; $d->{exists} = 0; } - } elsif ($iface =~ m/^(?:eth\d+|en[^:.]+)$/) { + } elsif ($iface =~ m/^(?:eth\d+|en[^:.]+|ib\d+)$/) { if (!$d->{ovs_type}) { $d->{type} = 'eth'; } elsif ($d->{ovs_type} eq 'OVSPort') {