summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mlag.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-12-18 14:01:50 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-01-04 18:21:00 +0100
commitff1fb8d5f6171ed66f00339152f3e8433a7ff65d (patch)
tree23ccfabf8dfa642ee26d878622892a34506a4939 /zebra/zebra_mlag.h
parentzebra: Add some small infrastructure to get the mlag code in zebra started (diff)
downloadfrr-ff1fb8d5f6171ed66f00339152f3e8433a7ff65d.tar.xz
frr-ff1fb8d5f6171ed66f00339152f3e8433a7ff65d.zip
zebra: Add a retrieve the mlag role function
Add the ability to retrieve the current role of mlag for this machine. If mlag is not setup we will always return MLAG_ROLE_NONE. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mlag.h')
-rw-r--r--zebra/zebra_mlag.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/zebra_mlag.h b/zebra/zebra_mlag.h
index 97065bb84..c5c147c83 100644
--- a/zebra/zebra_mlag.h
+++ b/zebra/zebra_mlag.h
@@ -26,4 +26,6 @@
void zebra_mlag_init(void);
void zebra_mlag_terminate(void);
+
+enum mlag_role zebra_mlag_get_role(void);
#endif