diff options
author | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-11-02 11:38:01 +0100 |
---|---|---|
committer | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-12-14 19:57:07 +0100 |
commit | 94c2f693a44460f5f741863da5980bd1bb7c01d9 (patch) | |
tree | e9d65df7536d0d7e3e9bbffe9dd542c16abbc982 /bgpd/bgp_evpn_vty.c | |
parent | bgpd: update type-5 routes when RD changes (diff) | |
download | frr-94c2f693a44460f5f741863da5980bd1bb7c01d9.tar.xz frr-94c2f693a44460f5f741863da5980bd1bb7c01d9.zip |
bgpd: evpn enabled should only be checked for default instance
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_evpn_vty.c')
-rw-r--r-- | bgpd/bgp_evpn_vty.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index b2f4737b2..849432fca 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -2578,7 +2578,7 @@ DEFUN(show_bgp_l2vpn_evpn_vni, ? "Enabled" : "Disabled"); json_object_string_add(json, "advertiseAllVnis", - bgp->advertise_all_vni + is_evpn_enabled() ? "Enabled" : "Disabled"); } else { @@ -2588,8 +2588,7 @@ DEFUN(show_bgp_l2vpn_evpn_vni, /* Display all VNIs */ vty_out(vty, "Advertise All VNI flag: %s\n", - bgp->advertise_all_vni ? "Enabled" - : "Disabled"); + is_evpn_enabled() ? "Enabled" : "Disabled"); } evpn_show_all_vnis(vty, bgp, json); |