summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_conditional_adv.h
diff options
context:
space:
mode:
authorMadhuri Kuruganti <maduri111@gmail.com>2022-10-06 09:13:05 +0200
committerMadhuri Kuruganti <maduri111@gmail.com>2022-10-06 09:13:05 +0200
commite85e4a8d164b7c7872d235e651d2a6fdb3c14840 (patch)
tree595f7733ea7efccfdc9192b0bd966969d9692cb9 /bgpd/bgp_conditional_adv.h
parentbgpd: adding debug command for conditional advertisement (diff)
downloadfrr-e85e4a8d164b7c7872d235e651d2a6fdb3c14840.tar.xz
frr-e85e4a8d164b7c7872d235e651d2a6fdb3c14840.zip
bgpd: conditional advertisement code cleanup
Signed-off-by: Madhuri Kuruganti <maduri111@gmail.com>
Diffstat (limited to 'bgpd/bgp_conditional_adv.h')
-rw-r--r--bgpd/bgp_conditional_adv.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/bgpd/bgp_conditional_adv.h b/bgpd/bgp_conditional_adv.h
index abd2efad0..a4f1403a4 100644
--- a/bgpd/bgp_conditional_adv.h
+++ b/bgpd/bgp_conditional_adv.h
@@ -47,6 +47,18 @@ extern void bgp_conditional_adv_enable(struct peer *peer, afi_t afi,
safi_t safi);
extern void bgp_conditional_adv_disable(struct peer *peer, afi_t afi,
safi_t safi);
+extern int peer_advertise_map_set(struct peer *peer, afi_t afi, safi_t safi,
+ const char *advertise_name,
+ struct route_map *advertise_map,
+ const char *condition_name,
+ struct route_map *condition_map,
+ bool condition);
+extern int peer_advertise_map_unset(struct peer *peer, afi_t afi, safi_t safi,
+ const char *advertise_name,
+ struct route_map *advertise_map,
+ const char *condition_name,
+ struct route_map *condition_map,
+ bool condition);
#ifdef __cplusplus
}
#endif