aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/srv6/sr_steering.c
diff options
context:
space:
mode:
authorFrancois Clad <fclad@cisco.com>2018-02-01 14:51:33 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2018-03-14 13:32:05 +0000
commit4abc5c37af2f6928ff3a899855134b26c97a50c2 (patch)
tree768b2cd6ddc45d6277bea81925a997bef731ab7a /src/vnet/srv6/sr_steering.c
parente23c99ec0061991cf3904122979ac755fe1b78ca (diff)
srv6: minor CLI modifications
'sr steer [...] via sr policy [...]' -> 'sr steer [...] via [...]' 'show sr steering policies' -> 'show sr steering-policies' 'clear sr localsid counters' -> 'clear sr localsid-counters' Change-Id: I0efbf38753a4bd0b7fba8cd08250e136e8e55199 Signed-off-by: Francois Clad <fclad@cisco.com>
Diffstat (limited to 'src/vnet/srv6/sr_steering.c')
-rwxr-xr-xsrc/vnet/srv6/sr_steering.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/vnet/srv6/sr_steering.c b/src/vnet/srv6/sr_steering.c
index cf4e81abfd4..a888fea9fda 100755
--- a/src/vnet/srv6/sr_steering.c
+++ b/src/vnet/srv6/sr_steering.c
@@ -399,11 +399,10 @@ sr_steer_policy_command_fn (vlib_main_t * vm, unformat_input_t * input,
&sw_if_index))
traffic_type = SR_STEER_L2;
else if (!sr_policy_set
- && unformat (input, "via sr policy index %d",
- &sr_policy_index))
+ && unformat (input, "via index %d", &sr_policy_index))
sr_policy_set = 1;
else if (!sr_policy_set
- && unformat (input, "via sr policy bsid %U",
+ && unformat (input, "via bsid %U",
unformat_ip6_address, &bsid))
sr_policy_set = 1;
else if (fib_table == (u32) ~ 0
@@ -465,8 +464,8 @@ sr_steer_policy_command_fn (vlib_main_t * vm, unformat_input_t * input,
/* *INDENT-OFF* */
VLIB_CLI_COMMAND (sr_steer_policy_command, static) = {
.path = "sr steer",
- .short_help = "sr steer (del) [l3 <ip_addr/mask>|l2 <sf_if>]"
- "via sr policy [index <sr_policy_index>|bsid <bsid_ip6_addr>]"
+ .short_help = "sr steer (del) [l3 <ip_addr/mask>|l2 <sf_if>] "
+ "via [index <sr_policy_index>|bsid <bsid_ip6_addr>] "
"(fib-table <fib_table_index>)",
.long_help =
"\tSteer a L2 or L3 traffic through an existing SR policy.\n"
@@ -531,8 +530,8 @@ show_sr_steering_policies_command_fn (vlib_main_t * vm,
/* *INDENT-OFF* */
VLIB_CLI_COMMAND (show_sr_steering_policies_command, static) = {
- .path = "show sr steering policies",
- .short_help = "show sr steering policies",
+ .path = "show sr steering-policies",
+ .short_help = "show sr steering-policies",
.function = show_sr_steering_policies_command_fn,
};
/* *INDENT-ON* */