aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/srv6-mobile/test/test_srv6_mobile.py4
-rwxr-xr-xsrc/vnet/srv6/sr_localsid.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/srv6-mobile/test/test_srv6_mobile.py b/src/plugins/srv6-mobile/test/test_srv6_mobile.py
index 2ac37cefca9..ec94b8b9c03 100644
--- a/src/plugins/srv6-mobile/test/test_srv6_mobile.py
+++ b/src/plugins/srv6-mobile/test/test_srv6_mobile.py
@@ -236,7 +236,7 @@ class TestSRv6EndMGTP6E(VppTestCase):
pkts = self.create_packets([("A::1", "B::1"), ("C::1", "D::1")])
self.vapi.cli(
- "sr localsid address {}/64 behavior end.m.gtp6.e"
+ "sr localsid prefix {}/64 behavior end.m.gtp6.e"
.format(pkts[0]['IPv6'].dst))
self.vapi.cli(
"ip route add a1::/64 via {}".format(self.ip6_nhop))
@@ -316,7 +316,7 @@ class TestSRv6EndMGTP6D(VppTestCase):
self.vapi.cli("set sr encaps source addr A1::1")
self.vapi.cli("sr policy add bsid D4:: next D2:: next D3::")
self.vapi.cli(
- "sr localsid address 2001::/64 behavior end.m.gtp6.d D4::/64")
+ "sr localsid prefix 2001::/64 behavior end.m.gtp6.d D4::/64")
self.vapi.cli("ip route add D2::/64 via {}".format(self.ip6_nhop))
self.logger.info(self.vapi.cli("show sr policies"))
diff --git a/src/vnet/srv6/sr_localsid.c b/src/vnet/srv6/sr_localsid.c
index 6af6b7497bd..4c21edfe0ef 100755
--- a/src/vnet/srv6/sr_localsid.c
+++ b/src/vnet/srv6/sr_localsid.c
@@ -312,7 +312,7 @@ sr_cli_localsid_command_fn (vlib_main_t * vm, unformat_input_t * input,
if (unformat (input, "del"))
is_del = 1;
else if (!address_set
- && unformat (input, "address %U/%u", unformat_ip6_address,
+ && unformat (input, "prefix %U/%u", unformat_ip6_address,
&resulting_address, &prefix_len))
address_set = 1;
else if (!address_set