summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranlan_cs <vic.lan@pica8.com>2022-02-05 22:36:54 +0100
committeranlan_cs <vic.lan@pica8.com>2022-02-06 01:42:05 +0100
commit2b94e4b69ee2a883f9902920fd2b9d22614a2488 (patch)
treed72ffa2b68a8fc19abec4c308b4ac9a16d905c63
parentMerge pull request #10672 from donaldsharp/bsd_zebra_graceful_restart_cleanup (diff)
downloadfrr-2b94e4b69ee2a883f9902920fd2b9d22614a2488.tar.xz
frr-2b94e4b69ee2a883f9902920fd2b9d22614a2488.zip
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>
-rw-r--r--bgpd/bgp_evpn_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c
index 4c7d9845e..7ddf15984 100644
--- a/bgpd/bgp_evpn_vty.c
+++ b/bgpd/bgp_evpn_vty.c
@@ -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;
}