nat: nat44-ed pool address allocation improvement 63/34363/11
authorFilip Varga <fivarga@cisco.com>
Mon, 4 Oct 2021 12:36:05 +0000 (14:36 +0200)
committerOle Tr�an <otroan@employees.org>
Tue, 4 Jan 2022 12:03:17 +0000 (12:03 +0000)
commitaed42948510a94922566fa1a4bfb6eec281e5dee
tree5c6eb192efc72124884af13e9ccf53e26e1cf0e3
parentfa74a64def2132fb0c81e981547ac65888751aa9
nat: nat44-ed pool address allocation improvement

This patch improves algorithm responsible for choosing nat pool address
during dynamic session creation.

Patch synchronizes nat pool address attributes with vpp interfaces doing
so gives nat option to determine correct nat pool address  when creating
dynamic session.

Improvements:
    * match dst address subnet and src fib with nat pool address
    * for output-feature also fallback match of tx_sw_if_index with nat
      pool address

Type: improvement

Change-Id: I594638bc76fc1153f582add376838b4b72ff573a
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_cli.c
src/plugins/nat/nat44-ed/nat44_ed_in2out.c