nat: fix update of outside fibs (output-feature) 58/22458/2
authorDmitry Vakhrushev <[email protected]>
Tue, 20 Aug 2019 18:44:51 +0000 (14:44 -0400)
committerAndrew Yourtchenko <[email protected]>
Thu, 3 Oct 2019 08:40:25 +0000 (08:40 +0000)
commitcec9496dd5d8db1418c7f100eb9d41cc75701dbe
treea9bc23acf6afdd9438a9c1aa35e50985d06b03c3
parentad32207681d6e77a4107d17899a7711c00c78905
nat: fix update of outside fibs (output-feature)

NAT hasn't worked when NAT interfaces wasn't in
default VRF (fib_index = 0). This issue has been occurred with
interfaces with output-feature in endpoint-dependent mode.

Update VAT commands:
  - update nat44_add_del_address_range
  - add nat44_interface_add_del_output_feature

Ticket: VPP-1732
Type: fix

Change-Id: Iddea15dde4b948f159a0056d48c55bd917037fd1
Signed-off-by: Dmitry Vakhrushev <[email protected]>
(cherry picked from commit 6c57a4a985a1e4a49d1aeaf2684166cf2e122cfb)
src/plugins/nat/nat.c
src/plugins/nat/nat_test.c
src/plugins/nat/test/test_nat.py