mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 13:14:11 +00:00
net: Skip and warn of interfaces without bridge
Handle and warn about network interfaces which are not attached to any bridge because the user actively removed it from the VM config. Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
31150d20c4
commit
bb547dcbd6
@ -8576,6 +8576,10 @@ sub add_nets_bridge_fdb {
|
||||
}
|
||||
|
||||
my $bridge = $net->{bridge};
|
||||
if (!$bridge) {
|
||||
log_warn("Interface '$iface' not attached to any bridge.");
|
||||
next;
|
||||
}
|
||||
if ($have_sdn) {
|
||||
PVE::Network::SDN::Zones::add_bridge_fdb($iface, $mac, $bridge, $net->{firewall});
|
||||
} elsif (-d "/sys/class/net/$bridge/bridge") { # avoid fdb management with OVS for now
|
||||
|
Loading…
Reference in New Issue
Block a user