diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-12-18 14:01:50 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-01-04 18:21:00 +0100 |
commit | ff1fb8d5f6171ed66f00339152f3e8433a7ff65d (patch) | |
tree | 23ccfabf8dfa642ee26d878622892a34506a4939 /zebra/zebra_mlag.h | |
parent | zebra: Add some small infrastructure to get the mlag code in zebra started (diff) | |
download | frr-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.h | 2 |
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 |