forked from Mirror/frr
staticd: capture zebra's advertised ECMP limit
Capture the ECMP limit advertised by zebra (via zapi). Signed-off-by: Mark Stapp <mstapp@nvidia.com>
This commit is contained in:
parent
423e32cb01
commit
abc246e193
|
@ -43,7 +43,7 @@
|
||||||
char backup_config_file[256];
|
char backup_config_file[256];
|
||||||
|
|
||||||
bool mpls_enabled;
|
bool mpls_enabled;
|
||||||
|
uint32_t zebra_ecmp_count = MULTIPATH_NUM;
|
||||||
|
|
||||||
zebra_capabilities_t _caps_p[] = {
|
zebra_capabilities_t _caps_p[] = {
|
||||||
};
|
};
|
||||||
|
|
|
@ -163,6 +163,7 @@ static_route_info_from_rnode(struct route_node *rn)
|
||||||
}
|
}
|
||||||
|
|
||||||
extern bool mpls_enabled;
|
extern bool mpls_enabled;
|
||||||
|
extern uint32_t zebra_ecmp_count;
|
||||||
|
|
||||||
extern struct zebra_privs_t static_privs;
|
extern struct zebra_privs_t static_privs;
|
||||||
|
|
||||||
|
|
|
@ -205,6 +205,7 @@ static int static_zebra_nexthop_update(ZAPI_CALLBACK_ARGS)
|
||||||
static void static_zebra_capabilities(struct zclient_capabilities *cap)
|
static void static_zebra_capabilities(struct zclient_capabilities *cap)
|
||||||
{
|
{
|
||||||
mpls_enabled = cap->mpls_enabled;
|
mpls_enabled = cap->mpls_enabled;
|
||||||
|
zebra_ecmp_count = cap->ecmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned int static_nht_hash_key(const void *data)
|
static unsigned int static_nht_hash_key(const void *data)
|
||||||
|
|
Loading…
Reference in a new issue