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 <chirag@cumulusnetworks.com>
This commit is contained in:
Chirag Shah 2020-06-01 22:42:19 -07:00
parent f981d44931
commit e67df34d25

View File

@ -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");