mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
Merge 1cd578ff85
into 3dd4d417be
This commit is contained in:
commit
2aae195b19
|
@ -153,6 +153,15 @@ void delete_static_srv6_sid(void *val)
|
|||
static_srv6_sid_free((struct static_srv6_sid *)val);
|
||||
}
|
||||
|
||||
void static_zebra_request_srv6_sids(void)
|
||||
{
|
||||
struct static_srv6_sid *sid;
|
||||
struct listnode *node;
|
||||
|
||||
for (ALL_LIST_ELEMENTS_RO(srv6_sids, node, sid))
|
||||
static_zebra_request_srv6_sid(sid);
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize SRv6 data structures.
|
||||
*/
|
||||
|
|
|
@ -101,6 +101,8 @@ struct static_srv6_locator *static_srv6_locator_lookup(const char *name);
|
|||
void delete_static_srv6_sid(void *val);
|
||||
void delete_static_srv6_locator(void *val);
|
||||
|
||||
void static_zebra_request_srv6_sids(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -187,6 +187,8 @@ static void zebra_connected(struct zclient *zclient)
|
|||
* in.
|
||||
*/
|
||||
static_install_nexthops_on_startup();
|
||||
|
||||
static_zebra_request_srv6_sids();
|
||||
}
|
||||
|
||||
/* API to check whether the configured nexthop address is
|
||||
|
@ -940,6 +942,11 @@ extern void static_zebra_request_srv6_sid(struct static_srv6_sid *sid)
|
|||
if (!sid || !static_zebra_sid_locator_block_check(sid))
|
||||
return;
|
||||
|
||||
if (!sid->locator) {
|
||||
static_zebra_srv6_manager_get_locator(sid->locator_name);
|
||||
return;
|
||||
}
|
||||
|
||||
/* convert `srv6_endpoint_behavior_codepoint` to `seg6local_action_t` */
|
||||
switch (sid->behavior) {
|
||||
case SRV6_ENDPOINT_BEHAVIOR_END:
|
||||
|
|
Loading…
Reference in a new issue