Commit eb1e43a9 authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

BGP: Fix setup with multiple dynamic BGP ranges

Based on a patch from Liam Nattrass, thanks.
parent 5235c3f7
Pipeline #52675 passed with stages
in 4 minutes and 54 seconds
......@@ -1551,6 +1551,14 @@ bgp_start(struct proto *P)
lock->type = OBJLOCK_TCP;
lock->hook = bgp_start_locked;
lock->data = p;
/* For dynamic BGP, we use inst 1 to avoid collisions with regular BGP */
if (bgp_is_dynamic(p))
lock->addr = net_prefix(p->cf->remote_range);
lock->inst = 1;
return PS_START;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment