From 4b40ad1871d7e8b323cf4003097c2da028d57c54 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Sun, 8 Feb 2015 15:54:51 +0100 Subject: [PATCH] read_etc_network_interfaces : don't always add vmbr0 Currently it's impossible to remove vmbr0 from network gui, if we really want to remove it, or replace it with an OVS vmbr0 Signed-off-by: Alexandre Derumier --- data/PVE/INotify.pm | 6 ------ 1 file changed, 6 deletions(-) diff --git a/data/PVE/INotify.pm b/data/PVE/INotify.pm index d040041..fbedc50 100644 --- a/data/PVE/INotify.pm +++ b/data/PVE/INotify.pm @@ -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; -- 2.39.2