BGP: Do not error upon duplicate listen range

Ticket: CM-6517
Reviewed By: Trivial
Testing Done: Manual testing in 2.5-br

This commit is a port of the patch bgpd-dynamic-nbr-fix-config-error.patch
from 2.5-br.
This commit is contained in:
vivek 2015-08-29 11:54:41 -07:00
parent e33a488048
commit 57e9ee0a94

View File

@ -2313,7 +2313,7 @@ peer_group_listen_range_add (struct peer_group *group, struct prefix *range)
for (ALL_LIST_ELEMENTS (group->listen_range[afi], node, nnode, prefix))
{
if (prefix_same(range, prefix))
return BGP_ERR_DYNAMIC_NEIGHBORS_RANGE_EXISTS;
return 0;
}
prefix = prefix_new();