summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-11-14 16:54:24 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-11-15 16:37:00 +0000
commit2c4b6b74317240eedbbae9d2816f86eda464ae68 (patch)
treeb2bca01950f0dcde1d2b173212239c8214bd9e0b /op-mode-definitions
parent4b8534e2f67f41931c3ff262c4fbbf4b43d7afcf (diff)
downloadvyos-1x-2c4b6b74317240eedbbae9d2816f86eda464ae68.tar.gz
vyos-1x-2c4b6b74317240eedbbae9d2816f86eda464ae68.zip
T4812: Add op-mode Show vpn ipsec connections
Add op-mode CLI "show vpn ipsec connections" Add the ability to show all configured connections/tunnels and their states. Ability to get --raw data
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/vpn-ipsec.xml.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/op-mode-definitions/vpn-ipsec.xml.in b/op-mode-definitions/vpn-ipsec.xml.in
index f1af65fcb..803ce4cc2 100644
--- a/op-mode-definitions/vpn-ipsec.xml.in
+++ b/op-mode-definitions/vpn-ipsec.xml.in
@@ -137,6 +137,12 @@
<help>Show Internet Protocol Security (IPsec) information</help>
</properties>
<children>
+ <node name="connections">
+ <properties>
+ <help>Show VPN connections</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/ipsec.py show_connections</command>
+ </node>
<node name="policy">
<properties>
<help>Show the in-kernel crypto policies</help>