From e67df34d2533355e987f451815faf4d584ae4a09 Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Mon, 1 Jun 2020 22:42:19 -0700 Subject: [PATCH] bgpd: move advertise-vni-all above vni config Move config 'advertise-vni-all' above all evpn configuration as vni specific confi commands have check for advertise-vni-all enabled first. Ticket: CM-29312 Reviewed By: Testing Done: router bgp 5650 ... advertise-all-vni vni 1002 route-target import 55500:10002 route-target export 55500:10002 exit-vni ... Signed-off-by: Chirag Shah --- bgpd/bgp_evpn_vty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index 85604d856d..eac1af2ea9 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -5657,6 +5657,9 @@ void bgp_config_write_evpn_info(struct vty *vty, struct bgp *bgp, afi_t afi, char buf1[RD_ADDRSTRLEN]; char buf2[INET6_ADDRSTRLEN]; + if (bgp->advertise_all_vni) + vty_out(vty, " advertise-all-vni\n"); + if (bgp->vnihash) { struct list *vnilist = hash_to_list(bgp->vnihash); struct listnode *ln; @@ -5669,9 +5672,6 @@ void bgp_config_write_evpn_info(struct vty *vty, struct bgp *bgp, afi_t afi, list_delete(&vnilist); } - if (bgp->advertise_all_vni) - vty_out(vty, " advertise-all-vni\n"); - if (bgp->advertise_autort_rfc8365) vty_out(vty, " autort rfc8365-compatible\n"); -- 2.39.5