diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index 85604d856..eac1af2ea 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");