]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/INotify.pm
Inotify: check bridgeport: fix vlan interface not defined
[pve-common.git] / src / PVE / INotify.pm
index e37b4af6b5994b02b060e04511e473f1ea00d5f2..fc9471d47d20f988e96b4d634535a061853012d4 100644 (file)
@@ -1409,6 +1409,7 @@ sub __write_etc_network_interfaces {
        my $d = $ifaces->{$iface};
        if ($d->{type} eq 'bridge') {
            foreach my $p (split (/\s+/, $d->{bridge_ports})) {
+               $p =~ s/\.\d+$//;
                my $n = $ifaces->{$p};
                die "bridge '$iface' - unable to find bridge port '$p'\n"
                    if !$n;