]> git.proxmox.com Git - pve-common.git/blobdiff - data/PVE/INotify.pm
read_etc_network_interfaces : don't always add vmbr0
[pve-common.git] / data / PVE / INotify.pm
index d04004197d42aec5fd03c365017fcd5346f0430b..fbedc506918a4ab7f528951426a62cce5aaec800 100644 (file)
@@ -764,9 +764,6 @@ sub read_etc_network_interfaces {
     # we try to keep order inside the file
     my $priority = 2; # 1 is reserved for lo 
 
-    # always add the vmbr0 bridge device
-    $ifaces->{vmbr0}->{exists} = 1;
-
     my $gateway = 0;
 
     while (defined ($line = <$fh>)) {
@@ -844,9 +841,6 @@ sub read_etc_network_interfaces {
     }
 
 
-    if (!$gateway) {
-       $ifaces->{vmbr0}->{gateway} = '';
-    }
 
     if (!$ifaces->{lo}) {
        $ifaces->{lo}->{priority} = 1;