Revert "bgpd: Use default VRF name if using router bgp command"

This reverts commit 5ce106b72b.
This commit is contained in:
Igor Ryzhov 2021-05-14 02:12:49 +03:00
parent 23f1fa0704
commit 31acf04aa4

View File

@ -1323,7 +1323,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", VRF_DEFAULT_NAME);
"frr-bgp:bgp", "bgp", name ? name : VRF_DEFAULT_NAME);
nb_cli_enqueue_change(vty, ".", NB_OP_CREATE, NULL);
snprintf(as_str, 12, "%d", bgp->as);