mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 09:30:52 +00:00
bgpd: revised fix to --dryrun (BZ#622)
This commit is contained in:
parent
267551879e
commit
1758dbaa3b
@ -2048,6 +2048,10 @@ bgp_get (struct bgp **bgp_val, as_t *as, const char *name)
|
||||
}
|
||||
}
|
||||
|
||||
bgp = bgp_create (as, name);
|
||||
bgp_router_id_set(bgp, &router_id_zebra);
|
||||
*bgp_val = bgp;
|
||||
|
||||
/* Create BGP server socket, if first instance. */
|
||||
if (list_isempty(bm->bgp))
|
||||
{
|
||||
@ -2055,10 +2059,7 @@ bgp_get (struct bgp **bgp_val, as_t *as, const char *name)
|
||||
return BGP_ERR_INVALID_VALUE;
|
||||
}
|
||||
|
||||
bgp = bgp_create (as, name);
|
||||
listnode_add (bm->bgp, bgp);
|
||||
bgp_router_id_set(bgp, &router_id_zebra);
|
||||
*bgp_val = bgp;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user