zebra: write vni to config in default vrf

Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
This commit is contained in:
Mitesh Kanjariya 2017-11-28 15:43:42 -08:00 committed by mitesh
parent 4cce389e0e
commit a56547355d

View File

@ -476,7 +476,13 @@ static int vrf_config_write(struct vty *vty)
if (!zvrf)
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));
static_config(vty, zvrf, AFI_IP, SAFI_UNICAST, "ip route");