mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
staticd: Extend static_zebra_srv6_sid_uninstall
to uninstall SRv6 uA SIDs
This commit extends the `static_zebra_srv6_sid_uninstall` function to allow staticd to remove SRv6 uA SIDs from the zebra RIB. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
This commit is contained in:
parent
ae6fb9196a
commit
95abf9d678
@ -842,12 +842,20 @@ void static_zebra_srv6_sid_uninstall(struct static_srv6_sid *sid)
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case SRV6_ENDPOINT_BEHAVIOR_END_X_NEXT_CSID:
|
||||
ctx.nh6 = sid->attributes.nh6;
|
||||
ifp = if_lookup_by_name(sid->attributes.ifname, VRF_DEFAULT);
|
||||
if (!ifp) {
|
||||
zlog_warn("Failed to install SID %pFX: failed to get interface %s",
|
||||
&sid->addr, sid->attributes.ifname);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case SRV6_ENDPOINT_BEHAVIOR_END_PSP_USD:
|
||||
case SRV6_ENDPOINT_BEHAVIOR_END_NEXT_CSID_PSP_USD:
|
||||
case SRV6_ENDPOINT_BEHAVIOR_END_X:
|
||||
case SRV6_ENDPOINT_BEHAVIOR_END_X_PSP:
|
||||
case SRV6_ENDPOINT_BEHAVIOR_END_X_PSP_USD:
|
||||
case SRV6_ENDPOINT_BEHAVIOR_END_X_NEXT_CSID:
|
||||
case SRV6_ENDPOINT_BEHAVIOR_END_X_NEXT_CSID_PSP:
|
||||
case SRV6_ENDPOINT_BEHAVIOR_END_X_NEXT_CSID_PSP_USD:
|
||||
case SRV6_ENDPOINT_BEHAVIOR_OPAQUE:
|
||||
|
Loading…
Reference in New Issue
Block a user