nat: disable nat44-ed/ei features on interface deletion 46/37746/2
authorVladislav Grishenko <themiron@yandex-team.ru>
Sun, 4 Dec 2022 10:02:03 +0000 (15:02 +0500)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 15 Dec 2022 13:19:57 +0000 (13:19 +0000)
commit3abb32c6fe038d757493381b9ea19c19682ca026
treec20bd11738527235a292b3302dbb7dc0e29f6eef
parent243a0433ff05a37113d6890bbeb163bbea033687
nat: disable nat44-ed/ei features on interface deletion

After deleting a sw interface with nat44 features, the next created
sw interface will get the same sw_index reused and therefore will
erroneously have the same nat features enabled.

Type: fix
Change-Id: I1d84f842ab7ab2a757668ae1a111efe67e1e924d
Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>
src/plugins/nat/nat44-ed/nat44_ed.c
src/plugins/nat/nat44-ei/nat44_ei.c
test/test_nat44_ed.py
test/test_nat44_ei.py