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:
Mark Stapp 2022-02-17 09:53:25 -05:00
parent 423e32cb01
commit abc246e193
3 changed files with 3 additions and 1 deletions

View file

@ -43,7 +43,7 @@
char backup_config_file[256];
bool mpls_enabled;
uint32_t zebra_ecmp_count = MULTIPATH_NUM;
zebra_capabilities_t _caps_p[] = {
};

View file

@ -163,6 +163,7 @@ static_route_info_from_rnode(struct route_node *rn)
}
extern bool mpls_enabled;
extern uint32_t zebra_ecmp_count;
extern struct zebra_privs_t static_privs;

View file

@ -205,6 +205,7 @@ static int static_zebra_nexthop_update(ZAPI_CALLBACK_ARGS)
static void static_zebra_capabilities(struct zclient_capabilities *cap)
{
mpls_enabled = cap->mpls_enabled;
zebra_ecmp_count = cap->ecmp;
}
static unsigned int static_nht_hash_key(const void *data)