]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Resolve ability to add route-map out to peer-group member
authorDon Slice <dslice@cumulusnetworks.com>
Wed, 6 Apr 2016 12:08:42 +0000 (12:08 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Wed, 6 Apr 2016 12:08:42 +0000 (12:08 +0000)
Modified the configuration code to properly allow a peer-group member
to have a route-map out applied when one does not exist on the peer-group
itself.  This capability already existed for route-map in.

Ticket: CM-10058
Signed-off-by: Don Slice
Reviewed-by: Donald Sharp
bgpd/bgpd.c

index 8a8beea4700c1df58ff9f807c0468653de7312f0..2583358eb9523280852fdb76ac55d00a0cbd09ed 100644 (file)
@@ -6190,7 +6190,9 @@ bgp_config_write_filter (struct vty *vty, struct peer *peer,
                             addr, filter->map[RMAP_IN].name, VTY_NEWLINE);
       }
 
-  if (filter->map[RMAP_OUT].name && ! gfilter)
+  if (filter->map[RMAP_OUT].name)
+    if (! gfilter || ! gfilter->map[RMAP_OUT].name
+       || strcmp (filter->map[RMAP_OUT].name, gfilter->map[RMAP_OUT].name) != 0)
     {
       afi_header_vty_out (vty, afi, safi, write,
                           "  neighbor %s route-map %s out%s",