summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.c
diff options
context:
space:
mode:
authorSri Mohana Singamsetty <srimohans@gmail.com>2022-05-19 18:38:10 +0200
committerGitHub <noreply@github.com>2022-05-19 18:38:10 +0200
commit93480825fb6aa9241a1cdafc1c23729732fb23ee (patch)
treeec0376808014b2a9f420dd8c798d9efdaf12e52d /bgpd/bgp_vty.c
parentMerge pull request #11210 from anlancs/fix/zebra-leak-vtp (diff)
parentbgpd: remove unnecessary check for evpn (diff)
downloadfrr-93480825fb6aa9241a1cdafc1c23729732fb23ee.tar.xz
frr-93480825fb6aa9241a1cdafc1c23729732fb23ee.zip
Merge pull request #11204 from anlancs/fix/bgpd-check-vnihash
bgpd: remove unnecessary check for evpn
Diffstat (limited to 'bgpd/bgp_vty.c')
-rw-r--r--bgpd/bgp_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 9e22c6cdb..9cfec0fe2 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -1554,7 +1554,7 @@ DEFUN (no_router_bgp,
BGP_L2VPN_EVPN_ADV_IPV6_UNICAST) ||
CHECK_FLAG(tmp_bgp->af_flags[AFI_L2VPN][SAFI_EVPN],
BGP_L2VPN_EVPN_ADV_IPV6_UNICAST_GW_IP))) ||
- (tmp_bgp->vnihash && hashcount(tmp_bgp->vnihash))) {
+ (hashcount(tmp_bgp->vnihash))) {
vty_out(vty,
"%% Cannot delete default BGP instance. Dependent VRF instances exist\n");
return CMD_WARNING_CONFIG_FAILED;