mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 06:55:18 +00:00
zebra: only write vni config under vrf if the vni is valid
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
This commit is contained in:
parent
8c9b80b965
commit
9ccae64fe3
@ -478,7 +478,8 @@ static int vrf_config_write(struct vty *vty)
|
||||
|
||||
if (strcmp(zvrf_name(zvrf), VRF_DEFAULT_NAME)) {
|
||||
vty_out(vty, "vrf %s\n", zvrf_name(zvrf));
|
||||
vty_out(vty, " vni %u\n", zvrf->l3vni);
|
||||
if (zvrf->l3vni)
|
||||
vty_out(vty, " vni %u\n", zvrf->l3vni);
|
||||
vty_out(vty, "!\n");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user