bgpd: fix missing name of default vrf

Before:
(config-router-af)# advertise-all-vni
% Please unconfigure EVPN in VRF (null)

After:
(config-router-af)# advertise-all-vni
% Please unconfigure EVPN in VRF default

Just use `bgp->name_pretty` to make it pretty.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
This commit is contained in:
anlan_cs 2022-02-05 16:36:54 -05:00
parent 868efb9e9f
commit 2b94e4b69e

View File

@ -3515,8 +3515,8 @@ DEFUN (bgp_evpn_advertise_all_vni,
bgp_evpn = bgp_get_evpn();
if (bgp_evpn && bgp_evpn != bgp) {
vty_out(vty, "%% Please unconfigure EVPN in VRF %s\n",
bgp_evpn->name);
vty_out(vty, "%% Please unconfigure EVPN in %s\n",
bgp_evpn->name_pretty);
return CMD_WARNING_CONFIG_FAILED;
}