diff options
author | Russ White <russ@riw.us> | 2022-04-13 20:56:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-13 20:56:00 +0200 |
commit | 8a8691709725725eac6921965a3999beb7f65503 (patch) | |
tree | 0ef5ba70a110d70b35b6d802e6bffc68432cb0f5 /bgpd/bgp_evpn_vty.c | |
parent | Merge pull request #11025 from anlancs/bgpd-remove-l3nhg-control (diff) | |
parent | bgpd: fix wrong check for default VRF (diff) | |
download | frr-8a8691709725725eac6921965a3999beb7f65503.tar.xz frr-8a8691709725725eac6921965a3999beb7f65503.zip |
Merge pull request #11024 from anlancs/bgpd-fix-missing-newline
bgpd: fix wrong check for default VRF
Diffstat (limited to 'bgpd/bgp_evpn_vty.c')
-rw-r--r-- | bgpd/bgp_evpn_vty.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index 57e96696d..109de1efb 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -5747,9 +5747,13 @@ DEFUN (show_bgp_vrf_l3vni_info, name = argv[idx_vrf]->arg; bgp = bgp_lookup_by_name(name); + if (strmatch(name, VRF_DEFAULT_NAME)) + bgp = bgp_get_default(); + if (!bgp) { if (!uj) - vty_out(vty, "BGP instance for VRF %s not found", name); + vty_out(vty, "BGP instance for VRF %s not found\n", + name); else { json_object_string_add(json, "warning", "BGP instance not found"); |