Hey all,

I was doing some work with dynamic neighbors in BGP, and found that I am not able to use multiple protocol definitions with neighbor ranges. Connections to the second and subsequent definitions are rejected.

The BGP protocol for the subsequent instances depend on a lock, but due to the remote_addresses being the same (null) the subsequent protocols hang, waiting for the first protocol.

Attached is a small patch which checks if the protocol is dynamic, and uses the remote_range prefix instead of a zero remote_address for the lock. 

Hope this helps.

Thanks,

Liam Nattrass