diff options
author | Sergey Y. Afonin <asy@altlinux.ru> | 2011-10-27 17:01:11 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-11-15 20:45:17 +0400 |
commit | 1758dbaa3b69bd6e95fb501c40f044f751557e76 (patch) | |
tree | 7021223a0aea1c052e831f1bc044bc3c49ad09ab /bgpd | |
parent | 267551879e57a5c590f9e12b3a7d6985b28b3dac (diff) |
bgpd: revised fix to --dryrun (BZ#622)
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgpd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index e8038553..b8215ee6 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -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; } |