diff --git a/pimd/pim_instance.h b/pimd/pim_instance.h index e40397d9c4..e651356bfe 100644 --- a/pimd/pim_instance.h +++ b/pimd/pim_instance.h @@ -21,6 +21,8 @@ #ifndef __PIM_INSTANCE_H__ #define __PIM_INSTANCE_H__ +#include + #include "pim_str.h" #include "pim_msdp.h" #include "pim_assert.h" @@ -58,6 +60,8 @@ struct pim_router { * What is the default vrf that we work in */ vrf_id_t vrf_id; + + enum mlag_role role; }; /* Per VRF PIM DB */ diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c index 7f9ef341ad..b7111cf7bf 100644 --- a/pimd/pim_zebra.c +++ b/pimd/pim_zebra.c @@ -745,9 +745,7 @@ static void pim_zebra_connected(struct zclient *zclient) static void pim_zebra_capabilities(struct zclient_capabilities *cap) { - /* - * Don't do anything with this data yet - */ + router->role = cap->role; } void pim_zebra_init(void)