summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-05-17 10:15:19 +0200
committerGitHub <noreply@github.com>2024-05-17 10:15:19 +0200
commit17e460792b17de2e6f358daa86abcd6b76d5ba40 (patch)
tree63d8350d429d24753882035dca85f6c2d95f770c /op-mode-definitions
parentf438fc3cd360f05cdc80e86c61c447d5d04857d7 (diff)
parentd5c4b758ba466119782887a73f5c2701b227c1a6 (diff)
downloadvyos-1x-17e460792b17de2e6f358daa86abcd6b76d5ba40.tar.gz
vyos-1x-17e460792b17de2e6f358daa86abcd6b76d5ba40.zip
Merge pull request #3466 from sever-sever/T6350
T6350: CGNAT add op-mode to show allocation
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/nat.xml.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/op-mode-definitions/nat.xml.in b/op-mode-definitions/nat.xml.in
index 307a91337..6398c0e07 100644
--- a/op-mode-definitions/nat.xml.in
+++ b/op-mode-definitions/nat.xml.in
@@ -7,6 +7,19 @@
<help>Show IPv4 Network Address Translation (NAT) information</help>
</properties>
<children>
+ <node name="cgnat">
+ <properties>
+ <help>Show Carrier-Grade Network Address Translation (CGNAT)</help>
+ </properties>
+ <children>
+ <node name="allocation">
+ <properties>
+ <help>Show allocated CGNAT parameters</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/cgnat.py show_allocation</command>
+ </node>
+ </children>
+ </node>
<node name="source">
<properties>
<help>Show source IPv4 to IPv4 Network Address Translation (NAT) information</help>