mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 20:26:36 +00:00
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>
This commit is contained in:
parent
df39560091
commit
ff1fb8d5f6
@ -25,6 +25,13 @@
|
|||||||
|
|
||||||
#include "zebra/zebra_mlag.h"
|
#include "zebra/zebra_mlag.h"
|
||||||
|
|
||||||
|
enum mlag_role role = MLAG_ROLE_NONE;
|
||||||
|
|
||||||
|
enum mlag_role zebra_mlag_get_role(void)
|
||||||
|
{
|
||||||
|
return role;
|
||||||
|
}
|
||||||
|
|
||||||
void zebra_mlag_init(void)
|
void zebra_mlag_init(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -26,4 +26,6 @@
|
|||||||
|
|
||||||
void zebra_mlag_init(void);
|
void zebra_mlag_init(void);
|
||||||
void zebra_mlag_terminate(void);
|
void zebra_mlag_terminate(void);
|
||||||
|
|
||||||
|
enum mlag_role zebra_mlag_get_role(void);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user