summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelsalam <ahabdels@cisco.com>2019-07-25 13:45:55 -0500
committerNeale Ranns <nranns@cisco.com>2019-07-28 14:17:44 +0000
commit0ae1d80f9a42158b8904e87179966713dfe9b650 (patch)
treefbc913658527a175ce292500ded954aabc43a7a7
parent854e0a214d9c894a82e9238ed70459e4efc751af (diff)
sr: fix srv6 end.t behavior
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>
-rwxr-xr-xsrc/vnet/srv6/sr_localsid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/srv6/sr_localsid.c b/src/vnet/srv6/sr_localsid.c
index 7aeb1b680b2..6d7c26bc707 100755
--- a/src/vnet/srv6/sr_localsid.c
+++ b/src/vnet/srv6/sr_localsid.c
@@ -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)