mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 13:18:52 +00:00
zebra: write vni to config in default vrf
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
This commit is contained in:
parent
4cce389e0e
commit
a56547355d
@ -476,7 +476,13 @@ static int vrf_config_write(struct vty *vty)
|
|||||||
if (!zvrf)
|
if (!zvrf)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (vrf->vrf_id != VRF_DEFAULT)
|
if (zvrf_id(zvrf) == VRF_DEFAULT) {
|
||||||
|
if (zvrf->l3vni)
|
||||||
|
vty_out(vty, "vni %u\n", zvrf->l3vni);
|
||||||
|
vty_out(vty, "!\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (strcmp(zvrf_name(zvrf), VRF_DEFAULT_NAME)) {
|
||||||
vty_out(vty, "vrf %s\n", zvrf_name(zvrf));
|
vty_out(vty, "vrf %s\n", zvrf_name(zvrf));
|
||||||
|
|
||||||
static_config(vty, zvrf, AFI_IP, SAFI_UNICAST, "ip route");
|
static_config(vty, zvrf, AFI_IP, SAFI_UNICAST, "ip route");
|
||||||
|
Loading…
Reference in New Issue
Block a user