summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-10-09 08:02:49 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-10-09 08:02:49 +0200
commit5ce106b72bac1c45567159c4dfcc9276164bd18b (patch)
treefa8ce8be8d8fab815395e4f832251918deda6133 /bgpd
parentMerge pull request #7262 from idryzhov/hide-bgpd-test (diff)
downloadfrr-5ce106b72bac1c45567159c4dfcc9276164bd18b.tar.xz
frr-5ce106b72bac1c45567159c4dfcc9276164bd18b.zip
bgpd: Use default VRF name if using `router bgp` command
When we enter `router bgp` it enters non-VRF instance which is default. No need to check for VRF/VIEW name, kinda dead code. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd')
-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 38dad59e6..6b0416830 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -1227,7 +1227,7 @@ DEFUN_YANG_NOSH(router_bgp,
UNSET_FLAG(bgp->vrf_flags, BGP_VRF_AUTO);
snprintf(base_xpath, sizeof(base_xpath), FRR_BGP_GLOBAL_XPATH,
- "frr-bgp:bgp", "bgp", name ? name : VRF_DEFAULT_NAME);
+ "frr-bgp:bgp", "bgp", VRF_DEFAULT_NAME);
nb_cli_enqueue_change(vty, ".", NB_OP_CREATE, NULL);
snprintf(as_str, 12, "%d", bgp->as);