From f495425b64b50c32c5db29a30224f1b15d5b3a3b Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Wed, 11 Sep 2019 20:59:46 +0000 Subject: vrrpd: northbound conversion Convert VRRPD to use the northbound API. Signed-off-by: Quentin Young --- vrrpd/vrrp.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vrrpd/vrrp.h') diff --git a/vrrpd/vrrp.h b/vrrpd/vrrp.h index b1994c23f..7e3e493a2 100644 --- a/vrrpd/vrrp.h +++ b/vrrpd/vrrp.h @@ -28,6 +28,7 @@ #include "lib/hook.h" #include "lib/if.h" #include "lib/linklist.h" +#include "lib/northbound.h" #include "lib/privs.h" #include "lib/stream.h" #include "lib/thread.h" @@ -46,6 +47,8 @@ #define VRRP_LOGPFX_FAM "[%s] " /* Default defaults */ +#define VRRP_XPATH_FULL "/frr-interface:lib/interface/frr-vrrpd:vrrp/vrrp-group" +#define VRRP_XPATH "./frr-vrrpd:vrrp/vrrp-group" #define VRRP_DEFAULT_PRIORITY 100 #define VRRP_DEFAULT_ADVINT 100 #define VRRP_DEFAULT_PREEMPT true @@ -57,8 +60,12 @@ DECLARE_MGROUP(VRRPD) +/* Northbound */ +extern const struct frr_yang_module_info frr_vrrpd_info; + /* Configured defaults */ struct vrrp_defaults { + uint8_t version; uint8_t priority; uint16_t advertisement_interval; bool preempt_mode; -- cgit v1.2.3