]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Note routemap information even if peer not activated.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 20 Oct 2017 13:56:12 +0000 (09:56 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 20 Oct 2017 13:56:12 +0000 (09:56 -0400)
commitb9269f82822a64ca4bd68c338bcfd39593145ff1
tree9a48440ee3bdbad49998ee58a1f47427f83d7081
parent9d4542919f1c71c61841234b32d027e36ae74a42
bgpd: Note routemap information even if peer not activated.

If upon bgp startup we have this config:

router bgp 64540
 neighbor 192.168.201.134 remote-as external
 !
 address-family ipv4 unicast
  no neighbor 192.168.201.134 activate
  neighbor 192.168.201.134 route-map NEXTHOP in
 exit-address-family

The route-map map pointer for the incoming(or outgoing)
filter was not being saved due to a pre-mature optimization
of not handling the routemap callback if the peer is not
activated.  The function that handles the peers route-maps
is making sure that the peer is in established state
before attempting to actually apply anything so just
call it to set the map pointer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_routemap.c