aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/srv6/sr_steering.c
diff options
context:
space:
mode:
authorTetsuya Murakami <tetsuya.mrk@gmail.com>2021-01-31 16:38:56 -0800
committerOle Tr�an <otroan@employees.org>2021-02-05 11:50:44 +0000
commit6b354914c2acd58a1e9f8060cdcec28bf1be1bd1 (patch)
tree237e928761a4d2ee8c9f46fbfdc5fa296a35d691 /src/vnet/srv6/sr_steering.c
parentd28196f007c19a4e6a27fd2fda0b2815913a4b37 (diff)
sr: Fix the issue that L3VPN SRv6 encapsulated packets could not be forwarded.
Type: fix Signed-off-by: Tetsuya Murakami <tetsuya.mrk@gmail.com> Change-Id: Ia12feee9e46d4951519d5c6f9d1a21d89701dc0f Signed-off-by: Tetsuya Murakami <tetsuya.mrk@gmail.com>
Diffstat (limited to 'src/vnet/srv6/sr_steering.c')
-rw-r--r--src/vnet/srv6/sr_steering.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/srv6/sr_steering.c b/src/vnet/srv6/sr_steering.c
index 9db13900f97..cb1d81742eb 100644
--- a/src/vnet/srv6/sr_steering.c
+++ b/src/vnet/srv6/sr_steering.c
@@ -411,7 +411,7 @@ sr_steer_policy_command_fn (vlib_main_t * vm, unformat_input_t * input,
if (!traffic_type)
return clib_error_return (0, "No L2/L3 traffic specified");
- if (!sr_policy_set)
+ if (!is_del && !sr_policy_set)
return clib_error_return (0, "No SR policy specified");
/* Make sure that the prefixes are clean */