summaryrefslogtreecommitdiffstats
path: root/vrrpd/vrrp.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-09-11 22:59:46 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-12-09 20:39:18 +0100
commitf495425b64b50c32c5db29a30224f1b15d5b3a3b (patch)
tree390589d6858a8c2f2f1aa620f3e720445bcd8a77 /vrrpd/vrrp.h
parentyang: add opderdata & slight reorg for vrrp (diff)
downloadfrr-f495425b64b50c32c5db29a30224f1b15d5b3a3b.tar.xz
frr-f495425b64b50c32c5db29a30224f1b15d5b3a3b.zip
vrrpd: northbound conversion
Convert VRRPD to use the northbound API. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd/vrrp.h')
-rw-r--r--vrrpd/vrrp.h7
1 files changed, 7 insertions, 0 deletions
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;