diff options
author | Christian Breunig <christian@breunig.cc> | 2024-05-21 19:51:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 19:51:18 +0200 |
commit | 108a42fc013073759c82caf7a6a8c79f417c2c81 (patch) | |
tree | b2afe9b573a209c9c1aeb4cceb218fa00750f17d /op-mode-definitions | |
parent | a67cde68b553ee816162ccb7804c3f57664ed004 (diff) | |
parent | c554c483817bfc6ef4f0175298d23355696f8665 (diff) | |
download | vyos-1x-108a42fc013073759c82caf7a6a8c79f417c2c81.tar.gz vyos-1x-108a42fc013073759c82caf7a6a8c79f417c2c81.zip |
Merge pull request #3490 from sever-sever/T6366
T6366: CGNAT add ability to get external and internal allocations
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/nat.xml.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/op-mode-definitions/nat.xml.in b/op-mode-definitions/nat.xml.in index 6398c0e07..13e7fd81d 100644 --- a/op-mode-definitions/nat.xml.in +++ b/op-mode-definitions/nat.xml.in @@ -16,6 +16,26 @@ <properties> <help>Show allocated CGNAT parameters</help> </properties> + <children> + <tagNode name="external-address"> + <properties> + <help>Show CGNAT allocations for an external IP address</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <command>sudo ${vyos_op_scripts_dir}/cgnat.py show_allocation --external-address "$6"</command> + </tagNode> + <tagNode name="internal-address"> + <properties> + <help>Show CGNAT allocations for an internal IP address</help> + <completionHelp> + <list><x.x.x.x></list> + </completionHelp> + </properties> + <command>sudo ${vyos_op_scripts_dir}/cgnat.py show_allocation --internal-address "$6"</command> + </tagNode> + </children> <command>sudo ${vyos_op_scripts_dir}/cgnat.py show_allocation</command> </node> </children> |