diff options
| author | Nataliia S. <81954790+natali-rs1985@users.noreply.github.com> | 2025-04-08 17:15:42 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-08 15:15:42 +0100 |
| commit | 4d32bcddda72c1df944470f06b75908b2dc31667 (patch) | |
| tree | 80fcf34ef72675d2ee5b2407b350f301a1382f81 /interface-definitions/vpp.xml.in | |
| parent | 07a3b0f5ae87a2ab400390c9fa0ca632d7815e15 (diff) | |
| download | vyos-1x-4d32bcddda72c1df944470f06b75908b2dc31667.tar.gz vyos-1x-4d32bcddda72c1df944470f06b75908b2dc31667.zip | |
T7315: Change CLI fot VPP NAT (#25)
New CLI
```
set vpp nat44 static rule 10 outside-interface 'eth0'
set vpp nat44 static rule 10 inside-interface 'eth1'
set vpp nat44 static rule 10 external address 192.168.122.10
set vpp nat44 static rule 10 external port 6545 # optional
set vpp nat44 static rule 10 protocol tcp|udp|icmp|all # optional, defaults to "all"
set vpp nat44 static rule 10 local address 100.64.0.10
set vpp nat44 static rule 10 local port 64010 # optional
```
Diffstat (limited to 'interface-definitions/vpp.xml.in')
| -rw-r--r-- | interface-definitions/vpp.xml.in | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/interface-definitions/vpp.xml.in b/interface-definitions/vpp.xml.in index 66a38f546..263f9cb91 100644 --- a/interface-definitions/vpp.xml.in +++ b/interface-definitions/vpp.xml.in @@ -853,18 +853,18 @@ <priority>320</priority> </properties> <children> - <leafNode name="inbound-interface"> + <leafNode name="inside-interface"> <properties> - <help>Inbound interface of NAT traffic</help> + <help>NAT inside interface</help> <completionHelp> <list>any</list> <script>${vyos_completion_dir}/list_interfaces</script> </completionHelp> </properties> </leafNode> - <leafNode name="outbound-interface"> + <leafNode name="outside-interface"> <properties> - <help>Outbound interface of NAT traffic</help> + <help>NAT outside interface</help> <completionHelp> <list>any</list> <script>${vyos_completion_dir}/list_interfaces</script> @@ -920,7 +920,7 @@ </valueHelp> </properties> <children> - <node name="destination"> + <node name="external"> <properties> <help>NAT external parameters</help> </properties> @@ -968,27 +968,25 @@ </properties> <defaultValue>all</defaultValue> </leafNode> - <leafNode name="outbound-interface"> + <leafNode name="outside-interface"> <properties> - <help>Outbound interface of NAT traffic</help> + <help>NAT outside interface</help> <completionHelp> - <list>any</list> <script>${vyos_completion_dir}/list_interfaces</script> </completionHelp> </properties> </leafNode> - <leafNode name="inbound-interface"> + <leafNode name="inside-interface"> <properties> - <help>Inbound interface of NAT traffic</help> + <help>NAT inside interface</help> <completionHelp> - <list>any</list> <script>${vyos_completion_dir}/list_interfaces</script> </completionHelp> </properties> </leafNode> - <node name="translation"> + <node name="local"> <properties> - <help>NAT internal parameters</help> + <help>NAT local parameters</help> </properties> <children> <leafNode name="address"> @@ -1006,6 +1004,7 @@ #include <include/port-number.xml.i> </children> </node> + #include <include/generic-description.xml.i> </children> </tagNode> </children> |
