mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Delay fetching of router ID.
This commit is contained in:
parent
035044b1d9
commit
e0d6a7bda4
@ -311,6 +311,7 @@ bgp_start_locked(struct object_lock *lock)
|
|||||||
struct bgp_config *cf = p->cf;
|
struct bgp_config *cf = p->cf;
|
||||||
|
|
||||||
DBG("BGP: Got lock\n");
|
DBG("BGP: Got lock\n");
|
||||||
|
p->local_id = cf->c.global->router_id;
|
||||||
p->next_hop = cf->multihop ? cf->multihop_via : cf->remote_ip;
|
p->next_hop = cf->multihop ? cf->multihop_via : cf->remote_ip;
|
||||||
p->neigh = neigh_find(&p->p, &p->next_hop, NEF_STICKY);
|
p->neigh = neigh_find(&p->p, &p->next_hop, NEF_STICKY);
|
||||||
if (!p->neigh)
|
if (!p->neigh)
|
||||||
@ -400,7 +401,6 @@ bgp_init(struct proto_config *C)
|
|||||||
p->local_as = c->local_as;
|
p->local_as = c->local_as;
|
||||||
p->remote_as = c->remote_as;
|
p->remote_as = c->remote_as;
|
||||||
p->is_internal = (c->local_as == c->remote_as);
|
p->is_internal = (c->local_as == c->remote_as);
|
||||||
p->local_id = C->global->router_id;
|
|
||||||
return P;
|
return P;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user