forked from Mirror/frr
pimd: Store the router mlag role
When we are told about the mlag role, store it for later usage. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
4dfe9ad26e
commit
d6749d74c6
|
@ -21,6 +21,8 @@
|
|||
#ifndef __PIM_INSTANCE_H__
|
||||
#define __PIM_INSTANCE_H__
|
||||
|
||||
#include <mlag.h>
|
||||
|
||||
#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 */
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue