]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Added changes to track route-map usage 3518/head
authorrgirada <rgirada@vmware.com>
Mon, 4 Feb 2019 13:27:56 +0000 (05:27 -0800)
committerrgirada <rgirada@vmware.com>
Mon, 4 Feb 2019 13:27:56 +0000 (05:27 -0800)
commitb4897fa52474fd49ae3d4ad0bb2ecf908d2630c0
tree383f65de1e877fef583fb66015c6738d559e0e43
parent93d836e6fe498918c0a65217b6e868c47e419c09
bgpd: Added changes to track route-map usage

Made changes and updated the routemap applied counter in the following flows.
1.Increment when route map attached to a list.
2.Decrement when route map removed / modified from a  list.
3.Increment/decrement when route map create/delete callback triggered.
4.Besides ,This counter need not be updated when a route map is got updated.
  i.e changing/adding a match value to the existing routemap.

In BGP , same update api called for all three add/delete/update operation .
But this counter have to be updated only for routemap addition.
Addressed this specific change by identifying the routemap operation based
on routemap pointer.

Signed-off-by: RajeshGirada <rgirada@vmware.com>
bgpd/bgp_evpn_vty.c
bgpd/bgp_route.c
bgpd/bgp_routemap.c
bgpd/bgp_zebra.c
bgpd/bgpd.c
bgpd/rfapi/bgp_rfapi_cfg.c