mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-09 06:27:55 +00:00
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:
parent
363a51a0d4
commit
4b40ad1871
@ -764,9 +764,6 @@ sub read_etc_network_interfaces {
|
|||||||
# we try to keep order inside the file
|
# we try to keep order inside the file
|
||||||
my $priority = 2; # 1 is reserved for lo
|
my $priority = 2; # 1 is reserved for lo
|
||||||
|
|
||||||
# always add the vmbr0 bridge device
|
|
||||||
$ifaces->{vmbr0}->{exists} = 1;
|
|
||||||
|
|
||||||
my $gateway = 0;
|
my $gateway = 0;
|
||||||
|
|
||||||
while (defined ($line = <$fh>)) {
|
while (defined ($line = <$fh>)) {
|
||||||
@ -844,9 +841,6 @@ sub read_etc_network_interfaces {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!$gateway) {
|
|
||||||
$ifaces->{vmbr0}->{gateway} = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$ifaces->{lo}) {
|
if (!$ifaces->{lo}) {
|
||||||
$ifaces->{lo}->{priority} = 1;
|
$ifaces->{lo}->{priority} = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user