diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-05-16 18:37:34 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-05-16 19:43:32 +0000 |
commit | d5c4b758ba466119782887a73f5c2701b227c1a6 (patch) | |
tree | 5699456f5dcb1e34639b2e2d639e4c4719dd45fa /op-mode-definitions | |
parent | 2a07aaed70f6c9dda0e95d2b01d3ba922c572716 (diff) | |
download | vyos-1x-d5c4b758ba466119782887a73f5c2701b227c1a6.tar.gz vyos-1x-d5c4b758ba466119782887a73f5c2701b227c1a6.zip |
T6350: CGNAT add op-mode to show allocation
Add op-mode command `show nat cgnat allocation` to get CGNAT
allocations (internal address, external address, port-range)
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/nat.xml.in | 13 |
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> |