summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2026-03-04 17:53:27 +0200
committerGitHub <noreply@github.com>2026-03-04 17:53:27 +0200
commit25925528d06cd557ca380e23ff1dc11670d9bc1f (patch)
tree5b6eaf4b2eb25860dc4f871946e86d27b6a939ce /interface-definitions
parent9fae68c92fe769da4f877c8df358868812a660ad (diff)
parent80727823e8ac309959a06f8aaeb0e12f2f7a1f43 (diff)
downloadvyos-1x-25925528d06cd557ca380e23ff1dc11670d9bc1f.tar.gz
vyos-1x-25925528d06cd557ca380e23ff1dc11670d9bc1f.zip
Merge pull request #5006 from ritika0313/T7513-CGNAT-exclude-rule-vyos-1x
T7513: vyos-1x: CGNAT Exclude Rule CLI support
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/vpp.xml.in45
1 files changed, 45 insertions, 0 deletions
diff --git a/interface-definitions/vpp.xml.in b/interface-definitions/vpp.xml.in
index e0389542b..ac27d39c4 100644
--- a/interface-definitions/vpp.xml.in
+++ b/interface-definitions/vpp.xml.in
@@ -626,6 +626,51 @@
#include <include/generic-description.xml.i>
</children>
</tagNode>
+ <node name="exclude">
+ <properties>
+ <help>Exclude packets matching these rules from CGNAT</help>
+ </properties>
+ <children>
+ <tagNode name="rule">
+ <properties>
+ <help>Rule number</help>
+ <valueHelp>
+ <format>u32</format>
+ <description>Number of rule</description>
+ </valueHelp>
+ </properties>
+ <children>
+ <leafNode name="local-address">
+ <properties>
+ <help>IP address of the internal (local) device</help>
+ <valueHelp>
+ <format>ipv4</format>
+ <description>IPv4 address</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ipv4-address"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="local-port">
+ <properties>
+ <help>Port number used by connection on internal device</help>
+ <valueHelp>
+ <format>u32:1-65535</format>
+ <description>Numeric IP port</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-65535"/>
+ </constraint>
+ <constraintErrorMessage>Port number must be in range 1 to 65535</constraintErrorMessage>
+ </properties>
+ </leafNode>
+ #include <include/vpp/nat_protocol.xml.i>
+ #include <include/generic-description.xml.i>
+ </children>
+ </tagNode>
+ </children>
+ </node>
<node name="timeout">
<properties>
<help>Timeouts for CGNAT sessions</help>