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:
Donald Sharp 2018-12-21 09:30:54 -05:00
parent 4dfe9ad26e
commit d6749d74c6
2 changed files with 5 additions and 3 deletions

View file

@ -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 */

View file

@ -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)