summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiroslav Miklus <miroslav.miklus@pantheon.tech>2021-12-01 21:35:59 +0100
committerFan Zhang <roy.fan.zhang@intel.com>2022-01-05 09:51:29 +0000
commit7dc6f7fb497e9c9eac96057b2528fb072225a809 (patch)
treea1908882f1ac3a5befc8288c558667e7ea1ea780
parentce04e3b038070204e4e3b5ad4f973add278e2349 (diff)
wireguard: fix 'wireguard add peer' cli behavior
- change 'port' to 'dst-port' to make the input self-explanatory - add empty spaces to short help Type: fix Signed-off-by: Miroslav Miklus <miroslav.miklus@pantheon.tech> Change-Id: I74c783e6e8629e61b1c100e9355d09cf5e35a750
-rw-r--r--src/plugins/wireguard/wireguard_cli.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/wireguard/wireguard_cli.c b/src/plugins/wireguard/wireguard_cli.c
index 05275f74aad..f821a3c313a 100644
--- a/src/plugins/wireguard/wireguard_cli.c
+++ b/src/plugins/wireguard/wireguard_cli.c
@@ -192,7 +192,7 @@ wg_peer_add_command_fn (vlib_main_t * vm,
;
else if (unformat (line_input, "table-id %d", &table_id))
;
- else if (unformat (line_input, "port %d", &portDst))
+ else if (unformat (line_input, "dst-port %d", &portDst))
;
else if (unformat (line_input, "persistent-keepalive %d",
&persistent_keepalive))
@@ -246,12 +246,12 @@ done:
}
/* *INDENT-OFF* */
-VLIB_CLI_COMMAND (wg_peer_add_command, static) =
-{
+VLIB_CLI_COMMAND (wg_peer_add_command, static) = {
.path = "wireguard peer add",
- .short_help = "wireguard peer add <wg_int> public-key <pub_key_other>"
- "endpoint <ip4_dst> allowed-ip <prefix>"
- "dst-port [port_dst] persistent-keepalive [keepalive_interval]",
+ .short_help =
+ "wireguard peer add <wg_int> public-key <pub_key_other> "
+ "endpoint <ip4_dst> allowed-ip <prefix> "
+ "dst-port [port_dst] persistent-keepalive [keepalive_interval]",
.function = wg_peer_add_command_fn,
};
/* *INDENT-ON* */