[Edited Message Follows] We also found one more issue while reading sr policies having multiple sid list using VPP C API. Suppose we have a sr policy having: -
BSID : C1::999:3 SID List 1 : 2001:db8:1:c1::1, 2001:db8:1:c2::1 SID List 2 : 2001:db8:1:c3::1, 2001:db8:1:c4::1 While parsing SID List 1, we get 2001:db8:1:c1::1 at index 0 and 2001:db8:1:c2::1 at index 1. But, while parsing SID List 2, we get 2001:db8:1:c3::1 at index 2 and 2001:db8:1:c4::1 at index 3. Ideally, we should get 2001:db8:1:c3::1 at index 0 and 2001:db8:1:c4::1 at index 1 while parsing SID List 2. We suspect that the reason for this issue is in /src/vnet/srv6/sr_api.c (in function send_sr_policies_details ), where the variable slidx has not been re initialized to 0 once all the SIDs in a segment list is read and reading of next segment list starts. Any suggestions on this issue?
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16713): https://lists.fd.io/g/vpp-dev/message/16713 Mute This Topic: https://lists.fd.io/mt/74477804/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-