diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2025-02-03 12:56:02 +0100 | 
|---|---|---|
| committer | Carmine Scarpitta <cscarpit@cisco.com> | 2025-02-03 22:33:00 +0100 | 
| commit | c809035cc46ad8953f2042b53c19a6ea3de367f8 (patch) | |
| tree | 3fcd40af0c7b88ab0f5f47b7d9f1c34325c65fc5 /tests | |
| parent | 4f43a33d421973d8229561bae7872770ea254e58 (diff) | |
staticd: Fix wrong xpath in `no sid X:X::X:X/M`
When a user wants to delete a specific SRv6 SID, he executes the
`no sid X:X::X:X/M` command.
However, by mistake, in addition to deleting the SID requested by the
user, this command also removes all other SIDs.
This happens because `no sid X:X::X:X/M` triggers a destroy operation
on the wrong xpath `frr-staticd:staticd/segment-routing/srv6`.
This commit fixes the issue by replacing the wrong xpath
`frr-staticd:staticd/segment-routing/srv6` with the correct xpath
`frr-staticd:staticd/segment-routing/srv6/static-sids/sid[sid='%s']`.
This ensures that the `no sid X:X::X:X/M` command only deletes the SID
that was requested by the user.
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
