]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/INotify.pm
Add check for infiniband to write functions as well
[pve-common.git] / src / PVE / INotify.pm
index a15b27df6fe0e0a6d63de58f0c48eb85bd4d017b..621b55556d4ad5e0dd8e3a14022c6a34a8bcda16 100644 (file)
@@ -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;