mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 19:19:59 +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 {
|
} else {
|
||||||
as = strtoul(argv[idx_asn]->arg, NULL, 10);
|
as = strtoul(argv[idx_asn]->arg, NULL, 10);
|
||||||
|
|
||||||
if (argc > 4)
|
if (argc > 4) {
|
||||||
name = argv[idx_vrf]->arg;
|
name = argv[idx_vrf]->arg;
|
||||||
|
if (strmatch(argv[idx_vrf - 1]->text, "vrf")
|
||||||
|
&& strmatch(name, VRF_DEFAULT_NAME))
|
||||||
|
name = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Lookup bgp structure. */
|
/* Lookup bgp structure. */
|
||||||
bgp = bgp_lookup(as, name);
|
bgp = bgp_lookup(as, name);
|
||||||
|
Loading…
Reference in New Issue
Block a user