aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChinmaya Agarwal <chinmaya.agarwal@hsc.com>2020-06-23 12:38:23 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-07-14 19:32:27 +0000
commitbc69426737b54533992fe763b037f81c912dada1 (patch)
tree1a10e69ceae4251c0824cb23f092324af3541d20
parent82103e9fe16570ca0febee3602ee1ef7bbc4544f (diff)
sr: fix for SID index across segment lists within a sr policy
Type: fix Signed-off-by: Chinmaya Agarwal <chinmaya.agarwal@hsc.com> Change-Id: I9aa5456bf94356e8702fbfd39b14db4c2e74d3e6 (cherry picked from commit edc2ea435b5c407a78f4fcb42d750338d6cdd6d5)
-rw-r--r--src/vnet/srv6/sr_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/srv6/sr_api.c b/src/vnet/srv6/sr_api.c
index 9bb1a16f18a..c039da01c63 100644
--- a/src/vnet/srv6/sr_api.c
+++ b/src/vnet/srv6/sr_api.c
@@ -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++]);