cnat: fix cnat_set_snat() debug CLI 90/28690/1
authorDave Barach <dave@barachs.net>
Fri, 4 Sep 2020 20:32:24 +0000 (16:32 -0400)
committerDave Barach <dave@barachs.net>
Fri, 4 Sep 2020 20:33:25 +0000 (16:33 -0400)
commite697caf9f84408fd7e2caa9bed58946f068e4c9c
tree2f3827205582582ec2290cc666d89c11bc612c1b
parent5c721baeb192a20da1d9fb332366d5a5b460b644
cnat: fix cnat_set_snat() debug CLI

Otherwise, the debug CLI command is unusable in a script because it
will eat (and complain about) subsequent lines in the script. Missing
this guitar lick, etc:

/* Get a line of input. */
 if (!unformat_user (input, unformat_line_input, line_input))
   return 0;

Type: fix

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Id328e6f1cc4d2e1672c3946db3865ab5a1a3af8d
src/plugins/cnat/cnat_snat.c