misc: l2tp: cli: fix overly generic CLI commands 56/28656/4
authorChristian Hopps <chopps@labn.net>
Mon, 13 Jan 2020 00:44:08 +0000 (00:44 +0000)
committerDamjan Marion <dmarion@me.com>
Thu, 3 Sep 2020 22:51:24 +0000 (22:51 +0000)
"clear counters" is not appropriate for a protocol to own. Change
to "clear l2tp counters" (and "test l2tp counter").

Type: fix
Signed-off-by: Christian Hopps <chopps@labn.net>
Change-Id: I3faac3907c4697c1c95df34ac7d31e48063869a8

src/vnet/l2tp/l2tp.c

index 42ecfa6..fa112ee 100644 (file)
@@ -185,7 +185,7 @@ test_counters_command_fn (vlib_main_t * vm,
 
 /* *INDENT-OFF* */
 VLIB_CLI_COMMAND (test_counters_command, static) = {
-    .path = "test counters",
+    .path = "test lt2p counters",
     .short_help = "increment all active counters",
     .function = test_counters_command_fn,
 };
@@ -220,7 +220,7 @@ clear_counters_command_fn (vlib_main_t * vm,
 
 /* *INDENT-OFF* */
 VLIB_CLI_COMMAND (clear_counters_command, static) = {
-  .path = "clear counters",
+  .path = "clear l2tp counters",
   .short_help = "clear all active counters",
   .function = clear_counters_command_fn,
 };