nat: sessions get expired when fib table removed 78/28178/7
authorFilip Varga <fivarga@cisco.com>
Tue, 4 Aug 2020 16:06:06 +0000 (18:06 +0200)
committerOle Trøan <otroan@employees.org>
Mon, 17 Aug 2020 07:53:18 +0000 (07:53 +0000)
commit00dd39044e64b4a7a33d204ef7d19aac819d71f5
tree0a065cc49ffe1458c81c96ebffda3f75a6e09128
parent17ec577f7b3b092e09d95451317957415f4baf4f
nat: sessions get expired when fib table removed

fib table removal would leave lingering sessions in vpp
this patch is aimed at solving this issue by grouping
sessions by source and destionation fib. if one of the
fibs gets removed this grouping is tagged as expired
and session won't be passed to non existing fib table

Ticket: VPPSUPP-93
Type: improvement

Change-Id: I45b1205a8b58d91f174e6feb862554ec2f6cffad
Signed-off-by: Filip Varga <fivarga@cisco.com>
src/plugins/nat/in2out_ed.c
src/plugins/nat/nat.c
src/plugins/nat/nat.h
src/plugins/nat/nat44/ed_inlines.h
src/plugins/nat/nat44_cli.c
src/plugins/nat/out2in_ed.c
src/plugins/nat/test/test_nat.py