pnat: expose binding_index over API 91/42791/3
authorBartlomiej Leszak <[email protected]>
Sun, 13 Apr 2025 18:09:05 +0000 (20:09 +0200)
committerOle Tr�an <[email protected]>
Tue, 29 Apr 2025 07:06:21 +0000 (07:06 +0000)
commit406232920e070f7117f3d2b09367f44472f72265
tree65d097b286bc42b27f0f9f1f1886e0d090f4435b
parent6dca5cc3b0f702f3d78c55314a38aec2693995bc
pnat: expose binding_index over API

Type: improvement

VPP pnat is internally holding mapping between interface and pnat rule.
This is used by vppctl to delete rules. However querying this is not
possible over API, which makes it impossible to delete a rule w/o
keeping external cache of such mappings.

Change-Id: I3662bfb2caddbac0e1755068bdf7cb965c8acedb
Signed-off-by: Bartlomiej Leszak <[email protected]>
src/plugins/nat/pnat/pnat.api
src/plugins/nat/pnat/pnat_api.c