diff options
| author | Chirag Shah <chirag@cumulusnetworks.com> | 2019-09-25 11:48:45 -0700 |
|---|---|---|
| committer | Chirag Shah <chirag@cumulusnetworks.com> | 2019-09-25 12:11:09 -0700 |
| commit | 8d0f01f10e0f84de5034944dbe5d28d315b054ae (patch) | |
| tree | b6e34f75428a3575f08dd748e178ac808f1674ce /zebra/zebra_vrf.c | |
| parent | 8dd3950095cb0c39e0012867dac15d064dff4aa2 (diff) | |
zebra: fix evpn prefix-routes-only for default vrf
asymmetric routing default vrf vni configuration
is not displayed as part of running-config.
Ticket:CM-26470
Reviewed By:
Testing Done:
T11# config t
T11(config)# vni 4004 prefix-routes-only
T11(config)# end
Before:
T11# show running-config
...
vni 4004
...
After:
T11# show running-config
...
vni 4004 prefix-routes-only
...
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_vrf.c')
| -rw-r--r-- | zebra/zebra_vrf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/zebra/zebra_vrf.c b/zebra/zebra_vrf.c index 4f1868311c..f425c0e49e 100644 --- a/zebra/zebra_vrf.c +++ b/zebra/zebra_vrf.c @@ -487,7 +487,11 @@ static int vrf_config_write(struct vty *vty) if (zvrf_id(zvrf) == VRF_DEFAULT) { if (zvrf->l3vni) - vty_out(vty, "vni %u\n", zvrf->l3vni); + vty_out(vty, "vni %u%s\n", zvrf->l3vni, + is_l3vni_for_prefix_routes_only( + zvrf->l3vni) + ? " prefix-routes-only" + : ""); if (zvrf->zebra_rnh_ip_default_route) vty_out(vty, "ip nht resolve-via-default\n"); |
