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 <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2015-02-08 15:54:51 +01:00 committed by Dietmar Maurer
parent 363a51a0d4
commit 4b40ad1871

View 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;