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__
|
#ifndef __PIM_INSTANCE_H__
|
||||||
#define __PIM_INSTANCE_H__
|
#define __PIM_INSTANCE_H__
|
||||||
|
|
||||||
|
#include <mlag.h>
|
||||||
|
|
||||||
#include "pim_str.h"
|
#include "pim_str.h"
|
||||||
#include "pim_msdp.h"
|
#include "pim_msdp.h"
|
||||||
#include "pim_assert.h"
|
#include "pim_assert.h"
|
||||||
|
@ -58,6 +60,8 @@ struct pim_router {
|
||||||
* What is the default vrf that we work in
|
* What is the default vrf that we work in
|
||||||
*/
|
*/
|
||||||
vrf_id_t vrf_id;
|
vrf_id_t vrf_id;
|
||||||
|
|
||||||
|
enum mlag_role role;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Per VRF PIM DB */
|
/* 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)
|
static void pim_zebra_capabilities(struct zclient_capabilities *cap)
|
||||||
{
|
{
|
||||||
/*
|
router->role = cap->role;
|
||||||
* Don't do anything with this data yet
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void pim_zebra_init(void)
|
void pim_zebra_init(void)
|
||||||
|
|
Loading…
Reference in a new issue