[pve-devel] [PATCH] read_etc_network_interfaces : don't always add vmbr0
Alexandre Derumier
aderumier at odiso.com
Sun Feb 8 15:54:51 CET 2015
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 <aderumier at odiso.com>
---
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;
--
1.7.10.4
More information about the pve-devel
mailing list