mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 08:50:26 +00:00
Merge pull request #9561 from idryzhov/bgp-no-router-vrf-default
bgpd: fix "no router bgp X vrf default"
This commit is contained in:
commit
53ca9cc9d9
@ -1387,8 +1387,12 @@ DEFUN (no_router_bgp,
|
||||
} else {
|
||||
as = strtoul(argv[idx_asn]->arg, NULL, 10);
|
||||
|
||||
if (argc > 4)
|
||||
if (argc > 4) {
|
||||
name = argv[idx_vrf]->arg;
|
||||
if (strmatch(argv[idx_vrf - 1]->text, "vrf")
|
||||
&& strmatch(name, VRF_DEFAULT_NAME))
|
||||
name = NULL;
|
||||
}
|
||||
|
||||
/* Lookup bgp structure. */
|
||||
bgp = bgp_lookup(as, name);
|
||||
|
Loading…
Reference in New Issue
Block a user