From: Filip Varga Date: Wed, 6 Apr 2022 10:56:50 +0000 (+0200) Subject: nat: nat66 cli bug fix X-Git-Tag: v24.06-rc0~245 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=1457828c596c56f271d71f9a56c39728ee9e4c67;p=vpp.git nat: nat66 cli bug fix Two similar CLI paths in nat66 plugin cause unexpected behavior. Bug fix following [1] fix. [1] https://gerrit.fd.io/r/c/vpp/+/35859 Change-Id: I771dd230fa6edb6bab3936652770a388d6e41a3f Type: fix Signed-off-by: Filip Varga --- diff --git a/src/plugins/nat/nat66/nat66_cli.c b/src/plugins/nat/nat66/nat66_cli.c index 0ca40875584..9ef8d056685 100644 --- a/src/plugins/nat/nat66/nat66_cli.c +++ b/src/plugins/nat/nat66/nat66_cli.c @@ -330,16 +330,16 @@ nat66_show_static_mappings_command_fn (vlib_main_t * vm, * @cliexpar * @cliexstart{nat66} * To enable NAT66 plugin - * vpp# nat66 enable + * vpp# nat66 plugin enable * To disable NAT66 plugin - * vpp# nat66 disable + * vpp# nat66 plugin disable * To enable NAT66 plugin with outside-vrf id 10 - * vpp# nat66 enable outside-vrf 10 + * vpp# nat66 plugin enable outside-vrf 10 * @cliexend ?*/ VLIB_CLI_COMMAND (nat66_enable_disable_command, static) = { - .path = "nat66", - .short_help = "nat66 ]>|disable", + .path = "nat66 plugin", + .short_help = "nat66 plugin ]>|disable", .function = nat66_enable_disable_command_fn, };