From 78f487e113fb0fbd1a06b90f3681d237f7edc495 Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Thu, 8 Oct 2020 11:11:27 -0500 Subject: vrrp: asynchronous events on VR state change Type: feature Add API message for an API client to subscribe/unsubscribe to receive an event when a VRRP VR changes state. Add code to build and send the events. Change-Id: Ie92cadd4850d4352c1aaa79c4b0a7daa0f3b04e7 Signed-off-by: Matthew Smith --- src/plugins/vrrp/vrrp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/vrrp/vrrp.h') diff --git a/src/plugins/vrrp/vrrp.h b/src/plugins/vrrp/vrrp.h index 0eda5d66164..c9325921959 100644 --- a/src/plugins/vrrp/vrrp.h +++ b/src/plugins/vrrp/vrrp.h @@ -207,6 +207,7 @@ int vrrp_vr_tracking_if_add_del (vrrp_vr_t * vr, u32 sw_if_index, int vrrp_vr_tracking_ifs_add_del (vrrp_vr_t * vr, vrrp_vr_tracking_if_t * track_ifs, u8 is_add); +void vrrp_vr_event (vrrp_vr_t * vr, vrrp_vr_state_t new_state); always_inline void -- cgit 1.2.3-korg