nat: nat44 cli bug fix 59/35859/3
authorFilip Varga <fivarga@cisco.com>
Thu, 31 Mar 2022 14:12:44 +0000 (16:12 +0200)
committerOle Tr�an <otroan@employees.org>
Tue, 5 Apr 2022 15:07:14 +0000 (15:07 +0000)
commit35cf8aa93bfb8414ae58bfcb1d668b2c374ff583
tree92158c7b39f69d2eebd8aa690a7dd3247286a009
parent79934e855fc58aefde498cd0564796cdd6ccbc59
nat: nat44 cli bug fix

Two similar CLI paths "nat44" and "nat44 add interface address"
caused unexpected behavior. If "nat44 add interface address"
command would fail the vlib cli processing function would
call "nat44" handler. This would also clean any previously
set errors from the first command and basically return
same error returned by "nat44" handler for every failed
command that starts with the same path string.

Fixes nat44-ed and nat44-ei plugin.

Change-Id: I1aac85c8ae2932da582a2b78243521d1bf8a0653
Ticket: VPP-2021
Type: fix
Signed-off-by: Filip Varga <fivarga@cisco.com>
src/plugins/nat/nat44-ed/nat44_ed.c
src/plugins/nat/nat44-ed/nat44_ed.h
src/plugins/nat/nat44-ed/nat44_ed_api.c
src/plugins/nat/nat44-ed/nat44_ed_cli.c
src/plugins/nat/nat44-ei/nat44_ei_cli.c