nat: VRF routing & FIB improvements 29/35429/10
authorFilip Varga <fivarga@cisco.com>
Wed, 23 Feb 2022 23:45:48 +0000 (15:45 -0800)
committerOle Tr�an <otroan@employees.org>
Fri, 1 Apr 2022 13:26:04 +0000 (13:26 +0000)
commit691c630b79ec2230b67944c8a9f77f95b49d95ad
treec27778fb111ef4d85d3c712ee0b68b0574f26d82
parentb68108203a59e12f4b4435caba164072e234f0aa
nat: VRF routing & FIB improvements

This patch affects how destination fib is choosen during session
creation. Default behavior of choosing fib based on output
interfaces is kept.

Configuration gives you the ability to change default behavior
to direct or restrict traffic between different FIB tables.

NAT specific VRF routing options:
a) keeping communication in the same VRF
b) option to add multiple destination VRFs
c) option to control the resolution order of destination VRFs

TX FIB resolution is based on looking up RX FIB entry in NATs
VRF table and picking the first FIB that resolves
destination address.

Ticket: VPP-2009
Type: improvement

Change-Id: If500c48d7ce3466533ad9581c0847870788fc4fb
Signed-off-by: Filip Varga <fivarga@cisco.com>
src/plugins/nat/nat44-ed/nat44_ed.api
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_cfg.c [deleted file]
src/plugins/nat/nat44-ed/nat44_ed_cli.c
src/plugins/nat/nat44-ed/nat44_ed_in2out.c
src/plugins/nat/nat44-ed/nat44_ed_out2in.c