sr: fix for SID index across segment lists within a sr policy 97/27897/1
authorChinmaya Agarwal <chinmaya.agarwal@hsc.com>
Tue, 23 Jun 2020 12:38:23 +0000 (12:38 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 14 Jul 2020 19:32:27 +0000 (19:32 +0000)
Type: fix
Signed-off-by: Chinmaya Agarwal <chinmaya.agarwal@hsc.com>
Change-Id: I9aa5456bf94356e8702fbfd39b14db4c2e74d3e6
(cherry picked from commit edc2ea435b5c407a78f4fcb42d750338d6cdd6d5)

src/vnet/srv6/sr_api.c

index 9bb1a16..c039da0 100644 (file)
@@ -314,7 +314,7 @@ static void send_sr_policies_details
 
     api_sid_list->num_sids = vec_len (segment_list->segments);
     api_sid_list->weight = htonl (segment_list->weight);
-
+    slidx = 0;
     vec_foreach (segment, segment_list->segments)
     {
       ip6_address_encode (segment, api_sid_list->sids[slidx++]);