sr: fix srv6 end.t behavior 66/20866/2
authorAhmed Abdelsalam <ahabdels@cisco.com>
Thu, 25 Jul 2019 18:45:55 +0000 (13:45 -0500)
committerNeale Ranns <nranns@cisco.com>
Sun, 28 Jul 2019 14:17:44 +0000 (14:17 +0000)
Update the sr_localsid code to set the DPO for SRv6 End.T behavior.

Change-Id: I17e102a419eb2b4fdd1de7a672b109e4ff7e1dc2
Type: fix
Signed-off-by: Ahmed Abdelsalam <ahabdels@cisco.com>
src/vnet/srv6/sr_localsid.c

index 7aeb1b6..6d7c26b 100755 (executable)
@@ -210,7 +210,8 @@ sr_cli_localsid (char is_del, ip6_address_t * localsid_addr,
     }
 
   /* Set DPO */
-  if (ls->behavior == SR_BEHAVIOR_END || ls->behavior == SR_BEHAVIOR_X)
+  if (ls->behavior == SR_BEHAVIOR_END || ls->behavior == SR_BEHAVIOR_X
+      || ls->behavior == SR_BEHAVIOR_T)
     dpo_set (&dpo, sr_localsid_dpo_type, DPO_PROTO_IP6, ls - sm->localsids);
   else if (ls->behavior > SR_BEHAVIOR_D_FIRST
           && ls->behavior < SR_BEHAVIOR_LAST)