]> git.puffer.fish Git - matthieu/frr.git/commitdiff
BGP: Do not error upon duplicate listen range
authorvivek <vivek@cumulusnetworks.com>
Sat, 29 Aug 2015 18:54:41 +0000 (11:54 -0700)
committervivek <vivek@cumulusnetworks.com>
Sat, 29 Aug 2015 18:54:41 +0000 (11:54 -0700)
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.

bgpd/bgpd.c

index 465f23e562c27575ec1eeec0fe8e570c30fb9c37..eb25fd9909283d32280f62dba9f90a10172115f9 100644 (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();