summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-09-08 17:24:10 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-27 17:11:29 -0500
commitd1e8329f612f1547c6d08a041c0bd12f7da54fa2 (patch)
treedc15161a93154fb04ae22a5effd0b28685871deb /templates
parent6439ca7f705f84040f7d45998d48cf7012f5077b (diff)
downloadvyatta-op-d1e8329f612f1547c6d08a041c0bd12f7da54fa2.tar.gz
vyatta-op-d1e8329f612f1547c6d08a041c0bd12f7da54fa2.zip
Add 'monitor firewall ipv6-name' command
(cherry picked from commit 947180c60d07535ed897f8dabe7ec0af2f0c71bc)
Diffstat (limited to 'templates')
-rw-r--r--templates/monitor/firewall/ipv6-name/node.def1
-rw-r--r--templates/monitor/firewall/ipv6-name/node.tag/background/node.def1
-rw-r--r--templates/monitor/firewall/ipv6-name/node.tag/background/start/node.def2
-rw-r--r--templates/monitor/firewall/ipv6-name/node.tag/background/stop/node.def2
-rw-r--r--templates/monitor/firewall/ipv6-name/node.tag/node.def4
-rw-r--r--templates/monitor/firewall/ipv6-name/node.tag/rule/node.def1
-rw-r--r--templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/node.def1
-rw-r--r--templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/start/node.def2
-rw-r--r--templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/stop/node.def2
-rw-r--r--templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/node.def4
10 files changed, 20 insertions, 0 deletions
diff --git a/templates/monitor/firewall/ipv6-name/node.def b/templates/monitor/firewall/ipv6-name/node.def
new file mode 100644
index 0000000..dfe8524
--- /dev/null
+++ b/templates/monitor/firewall/ipv6-name/node.def
@@ -0,0 +1 @@
+help: Monitor the specifed ipv6 firewall
diff --git a/templates/monitor/firewall/ipv6-name/node.tag/background/node.def b/templates/monitor/firewall/ipv6-name/node.tag/background/node.def
new file mode 100644
index 0000000..31c4a84
--- /dev/null
+++ b/templates/monitor/firewall/ipv6-name/node.tag/background/node.def
@@ -0,0 +1 @@
+help: Monitor the specified firewall in the background
diff --git a/templates/monitor/firewall/ipv6-name/node.tag/background/start/node.def b/templates/monitor/firewall/ipv6-name/node.tag/background/start/node.def
new file mode 100644
index 0000000..6f80a81
--- /dev/null
+++ b/templates/monitor/firewall/ipv6-name/node.tag/background/start/node.def
@@ -0,0 +1,2 @@
+help: Start background monitoring of a specified firewall
+run: ${vyatta_bindir}/vyatta-monitor-background Firewall-ipv6-$4 "\[$4-[0-9]*-[A,D,R]\]"
diff --git a/templates/monitor/firewall/ipv6-name/node.tag/background/stop/node.def b/templates/monitor/firewall/ipv6-name/node.tag/background/stop/node.def
new file mode 100644
index 0000000..b104d5f
--- /dev/null
+++ b/templates/monitor/firewall/ipv6-name/node.tag/background/stop/node.def
@@ -0,0 +1,2 @@
+help: Stop background monitoring of a specified firewall
+run: ${vyatta_bindir}/vyatta-monitor-background-stop Firewall-ipv6-$4
diff --git a/templates/monitor/firewall/ipv6-name/node.tag/node.def b/templates/monitor/firewall/ipv6-name/node.tag/node.def
new file mode 100644
index 0000000..3082c29
--- /dev/null
+++ b/templates/monitor/firewall/ipv6-name/node.tag/node.def
@@ -0,0 +1,4 @@
+help: Monitor a specified firewall
+allowed: local -a ARR=$(cli-shell-api -- listEffectiveNodes firewall ipv6-name)
+ echo "${ARR[@]}"
+run: ${vyatta_bindir}/vyatta-monitor Firewall-ipv6-$4 "\[$4-[0-9]*-[A,D,R]\]"
diff --git a/templates/monitor/firewall/ipv6-name/node.tag/rule/node.def b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.def
new file mode 100644
index 0000000..d046d5b
--- /dev/null
+++ b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.def
@@ -0,0 +1 @@
+help: Monitor a rule in the specified firewall
diff --git a/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/node.def b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/node.def
new file mode 100644
index 0000000..2a9a698
--- /dev/null
+++ b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/node.def
@@ -0,0 +1 @@
+help: Monitor a rule in a specified firewall in the background
diff --git a/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/start/node.def b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/start/node.def
new file mode 100644
index 0000000..398f70b
--- /dev/null
+++ b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/start/node.def
@@ -0,0 +1,2 @@
+help: Start background monitoring of the specified firewall
+run: ${vyatta_bindir}/vyatta-monitor-background Firewall-ipv6-$4-rule-$6 "\[$4-$6-[A,D,R]\]"
diff --git a/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/stop/node.def b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/stop/node.def
new file mode 100644
index 0000000..a0c0600
--- /dev/null
+++ b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/background/stop/node.def
@@ -0,0 +1,2 @@
+help: Stop background monitoring of a rule in the specified firewall
+run: ${vyatta_bindir}/vyatta-monitor-background-stop Firewall-ipv6-$4-rule-$6 "\[$4-$6-[A,D,R]\]"
diff --git a/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/node.def b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/node.def
new file mode 100644
index 0000000..991a285
--- /dev/null
+++ b/templates/monitor/firewall/ipv6-name/node.tag/rule/node.tag/node.def
@@ -0,0 +1,4 @@
+help: Monitor a rule in the specified firewall
+allowed: local -a ARR=$(cli-shell-api -- listEffectiveNodes firewall ipv6-name ${COMP_WORDS[3]} rule)
+ echo "${ARR[@]}"
+run: ${vyatta_bindir}/vyatta-monitor Firewall-ipv6-$4-rule-$6 "\[$4-$6-[A,D,R]\]"