]> git.proxmox.com Git - pve-network.git/blobdiff - PVE/Network/SDN/Zones/EvpnPlugin.pm
zones: evpn: add a default unreachable, to prevent vrf leak
[pve-network.git] / PVE / Network / SDN / Zones / EvpnPlugin.pm
index e6ee839b1dcf4dd8ed8d251bafc4aaf576d51745..ca000cf6049d65680b908a884807031b323f7228 100644 (file)
@@ -134,6 +134,7 @@ sub generate_sdn_config {
        #vrf interface
        @iface_config = ();
        push @iface_config, "vrf-table auto";
+       push @iface_config, "post-up ip route add vrf $vrf_iface unreachable default metric 4278198272";
        push(@{$config->{$vrf_iface}}, @iface_config) if !$config->{$vrf_iface};
 
        if ($vrfvxlan) {