summaryrefslogtreecommitdiff
path: root/templates/show/vpn/ipsec
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-01-31 11:46:21 -0600
committerJohn Southworth <john.southworth@vyatta.com>2011-01-31 11:46:21 -0600
commitb9d4ff8b2b7cff31131738be79b2ec4552e9bdde (patch)
tree8e9f2962fcdd55205dba4cff8f1659313d4b876c /templates/show/vpn/ipsec
parent6b63b26018f307a9a5e1314713aa9ae0c746ba1a (diff)
downloadvyatta-op-vpn-b9d4ff8b2b7cff31131738be79b2ec4552e9bdde.tar.gz
vyatta-op-vpn-b9d4ff8b2b7cff31131738be79b2ec4552e9bdde.zip
Work on new IPsec operational mode script. Integrate with more CLI commands
Diffstat (limited to 'templates/show/vpn/ipsec')
-rw-r--r--templates/show/vpn/ipsec/sa/detail/connection/node.def2
-rw-r--r--templates/show/vpn/ipsec/sa/detail/connection/node.tag/node.def8
-rw-r--r--templates/show/vpn/ipsec/sa/detail/node.def2
-rw-r--r--templates/show/vpn/ipsec/sa/detail/peer/node.def2
-rw-r--r--templates/show/vpn/ipsec/sa/detail/peer/node.tag/node.def6
-rw-r--r--templates/show/vpn/ipsec/sa/peer/node.def2
-rw-r--r--templates/show/vpn/ipsec/sa/statistics/connection/node.def1
-rw-r--r--templates/show/vpn/ipsec/sa/statistics/connection/node.tag/node.def3
-rw-r--r--templates/show/vpn/ipsec/sa/statistics/peer/node.def1
-rw-r--r--templates/show/vpn/ipsec/sa/statistics/peer/node.tag/node.def3
10 files changed, 18 insertions, 12 deletions
diff --git a/templates/show/vpn/ipsec/sa/detail/connection/node.def b/templates/show/vpn/ipsec/sa/detail/connection/node.def
index 5c642fa..05b45cf 100644
--- a/templates/show/vpn/ipsec/sa/detail/connection/node.def
+++ b/templates/show/vpn/ipsec/sa/detail/connection/node.def
@@ -1 +1 @@
-help: Show detailed all active IPsec Security Associations (SA) for a specific connection
+help: Show details for all active IPsec Security Associations (SA) for a connection
diff --git a/templates/show/vpn/ipsec/sa/detail/connection/node.tag/node.def b/templates/show/vpn/ipsec/sa/detail/connection/node.tag/node.def
index c38a84c..5dd62a7 100644
--- a/templates/show/vpn/ipsec/sa/detail/connection/node.tag/node.def
+++ b/templates/show/vpn/ipsec/sa/detail/connection/node.tag/node.def
@@ -1,5 +1,3 @@
-help: Show detailed all active IPsec Security Associations (SA) for a specific connection
-
-run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_sa.xsl --pname detail --pval y --pname conn --pval "$7"
-
-allowed: sudo /usr/sbin/ipsec status | grep '000 "peer-' | perl -p -e 's/^000 "([^"]*)":\s.*/\1/' | sort -u
+help: Show details for all active IPsec Security Associations (SA) for a connection
+allowed: /opt/vyatta/bin/sudo-users/vyatta-op-vpn.pl --get-conn-for-cli
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-op-vpn.pl --show-ipsec-sa-conn-detail="$7"
diff --git a/templates/show/vpn/ipsec/sa/detail/node.def b/templates/show/vpn/ipsec/sa/detail/node.def
index d5307a5..1fb13e4 100644
--- a/templates/show/vpn/ipsec/sa/detail/node.def
+++ b/templates/show/vpn/ipsec/sa/detail/node.def
@@ -1,2 +1,2 @@
-help: Show detailed all active IPsec Security Associations (SA)
+help: Show details for all active IPsec Security Associations (SA)
run: sudo /opt/vyatta/bin/sudo-users/vyatta-op-vpn.pl --show-ipsec-sa-detail
diff --git a/templates/show/vpn/ipsec/sa/detail/peer/node.def b/templates/show/vpn/ipsec/sa/detail/peer/node.def
index 61a0e78..bbb34b8 100644
--- a/templates/show/vpn/ipsec/sa/detail/peer/node.def
+++ b/templates/show/vpn/ipsec/sa/detail/peer/node.def
@@ -1 +1 @@
-help: Show detailed all active IPsec Security Associations (SA) for a specific peer
+help: Show details for all active IPsec Security Associations (SA) for a peer
diff --git a/templates/show/vpn/ipsec/sa/detail/peer/node.tag/node.def b/templates/show/vpn/ipsec/sa/detail/peer/node.tag/node.def
index 6e43c91..cad43ba 100644
--- a/templates/show/vpn/ipsec/sa/detail/peer/node.tag/node.def
+++ b/templates/show/vpn/ipsec/sa/detail/peer/node.tag/node.def
@@ -1,3 +1,3 @@
-help: Show detailed all active IPsec Security Associations (SA) for a specific peer
-allowed: /opt/vyatta/bin/sudo-users/vyatta-vpn-op.pl --op=get-all-peers
-run: sudo /opt/vyatta/bin/sudo-users/command_proc_show_vpn show_vpn_ipsec_sa.xsl --pname detail --pval y --pname peer --pval "$7"
+help: Show details for all active IPsec Security Associations (SA) for a peer
+allowed: /opt/vyatta/bin/sudo-users/vyatta-op-vpn.pl --get-peers-for-cli
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-op-vpn.pl --show-ipsec-sa-peer-detail="$7"
diff --git a/templates/show/vpn/ipsec/sa/peer/node.def b/templates/show/vpn/ipsec/sa/peer/node.def
index 089fa5a..7e5e913 100644
--- a/templates/show/vpn/ipsec/sa/peer/node.def
+++ b/templates/show/vpn/ipsec/sa/peer/node.def
@@ -1 +1 @@
-help: Show all active IPsec Security Associations (SA) for a specific peer
+help: Show all active IPsec Security Associations (SA) for a peer
diff --git a/templates/show/vpn/ipsec/sa/statistics/connection/node.def b/templates/show/vpn/ipsec/sa/statistics/connection/node.def
new file mode 100644
index 0000000..c88c2d0
--- /dev/null
+++ b/templates/show/vpn/ipsec/sa/statistics/connection/node.def
@@ -0,0 +1 @@
+help: Show stats for all active IPsec Security Associations (SA) for a connection
diff --git a/templates/show/vpn/ipsec/sa/statistics/connection/node.tag/node.def b/templates/show/vpn/ipsec/sa/statistics/connection/node.tag/node.def
new file mode 100644
index 0000000..4338e0c
--- /dev/null
+++ b/templates/show/vpn/ipsec/sa/statistics/connection/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show stats for all active IPsec Security Associations (SA) for a connection
+allowed: /opt/vyatta/bin/sudo-users/vyatta-op-vpn.pl --get-conn-for-cli
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-op-vpn.pl --show-ipsec-sa-stats-conn="$7"
diff --git a/templates/show/vpn/ipsec/sa/statistics/peer/node.def b/templates/show/vpn/ipsec/sa/statistics/peer/node.def
new file mode 100644
index 0000000..b104a83
--- /dev/null
+++ b/templates/show/vpn/ipsec/sa/statistics/peer/node.def
@@ -0,0 +1 @@
+help: Show stats for all active IPsec Security Associations (SA) for a peer
diff --git a/templates/show/vpn/ipsec/sa/statistics/peer/node.tag/node.def b/templates/show/vpn/ipsec/sa/statistics/peer/node.tag/node.def
new file mode 100644
index 0000000..758333e
--- /dev/null
+++ b/templates/show/vpn/ipsec/sa/statistics/peer/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show stats for all active IPsec Security Associations (SA) for a peer
+allowed: /opt/vyatta/bin/sudo-users/vyatta-op-vpn.pl --get-peers-for-cli
+run: sudo /opt/vyatta/bin/sudo-users/vyatta-op-vpn.pl --show-ipsec-sa-stats-peer="$7"