We should probably add the same to the two cases in the write function. On Wed, Oct 19, 2016 at 11:29:14PM +0200, Michael Rasmussen wrote: > Signed-off-by: Michael Rasmussen <[email protected]> > --- > src/PVE/INotify.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > 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') { > -- > 2.1.4
_______________________________________________ pve-devel mailing list [email protected] http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
