]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/Network/Network/VxlanMulticastPlugin.pm
generateconfig: use uplink$id if interface don't exist
[pve-network.git] / PVE / Network / Network / VxlanMulticastPlugin.pm
index 16dc5933c7e9d0d8419178c8df35cb4a08f836a9..7898f79cc0a1485534d63e537c7cdd93e002f9dc 100644 (file)
@@ -54,8 +54,7 @@ sub generate_network_config {
     my $vxlanallowed = $plugin_config->{'vxlan-allowed'};
 
     die "missing vxlan tag" if !$tag;
-    die "uplink $uplink is not defined" if !$uplinks->{$uplink};
-    my $iface = $uplinks->{$uplink};
+    my $iface = $uplinks->{$uplink} ? $uplinks->{$uplink} : "uplink$uplink";
 
     eval {
        PVE::Network::Network::Plugin::parse_tag_number_or_range($vxlanallowed, '16777216', $tag) if $vxlanallowed;