summaryrefslogtreecommitdiff
path: root/templates/monitor
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-10-10 18:46:02 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-10 18:46:02 -0500
commit2aa587b32efc6d64dd0f8efcad451aff59279b00 (patch)
treea51abec17b5f0a5c009a0c04fdd9dfbd8cedc2e1 /templates/monitor
parente39ced239b8e84ff46758cb4ec6cffcd403088a2 (diff)
downloadvyatta-op-2aa587b32efc6d64dd0f8efcad451aff59279b00.tar.gz
vyatta-op-2aa587b32efc6d64dd0f8efcad451aff59279b00.zip
Fix up completion for 'monitor nat'
Diffstat (limited to 'templates/monitor')
-rw-r--r--templates/monitor/nat/destination/rule/node.tag/node.def4
-rw-r--r--templates/monitor/nat/masquerade/rule/node.tag/node.def4
-rw-r--r--templates/monitor/nat/source/rule/node.tag/node.def4
3 files changed, 9 insertions, 3 deletions
diff --git a/templates/monitor/nat/destination/rule/node.tag/node.def b/templates/monitor/nat/destination/rule/node.tag/node.def
index 84119f6..d99860b 100644
--- a/templates/monitor/nat/destination/rule/node.tag/node.def
+++ b/templates/monitor/nat/destination/rule/node.tag/node.def
@@ -1,3 +1,5 @@
help: Monitor a specified Destination NAT rule
-allowed: local -a ARR=$(cli-shell-api listEffectiveNodes service nat rule); echo "${ARR[@]}"
+allowed: local -a ARR
+ eval "ARR=($(cli-shell-api listEffectiveNodes service nat rule))"
+ echo ${ARR[@]}
run: ${vyatta_bindir}/vyatta-monitor NAT-DEST-RULE-$5 "\[NAT-$5-DNAT\]"
diff --git a/templates/monitor/nat/masquerade/rule/node.tag/node.def b/templates/monitor/nat/masquerade/rule/node.tag/node.def
index 32fad6b..ed7509a 100644
--- a/templates/monitor/nat/masquerade/rule/node.tag/node.def
+++ b/templates/monitor/nat/masquerade/rule/node.tag/node.def
@@ -1,3 +1,5 @@
help: Monitor a specified Masquerade NAT rule
-allowed: local -a ARR=$(cli-shell-api listEffectiveNodes service nat rule); echo "${ARR[@]}"
+allowed: local -a ARR
+ eval "ARR=($(cli-shell-api listEffectiveNodes service nat rule))"
+ echo ${ARR[@]}
run: ${vyatta_bindir}/vyatta-monitor NAT-MASQ-RULE-$5 "\[NAT-$5-MASQ\]"
diff --git a/templates/monitor/nat/source/rule/node.tag/node.def b/templates/monitor/nat/source/rule/node.tag/node.def
index d4c1793..ec7d35e 100644
--- a/templates/monitor/nat/source/rule/node.tag/node.def
+++ b/templates/monitor/nat/source/rule/node.tag/node.def
@@ -1,3 +1,5 @@
help: Monitor a specified Source NAT rule
-allowed: local -a ARR=$(cli-shell-api listEffectiveNodes service nat rule); echo "${ARR[@]}"
+allowed: local -a ARR
+ eval "ARR=($(cli-shell-api listEffectiveNodes service nat rule))"
+ echo ${ARR[@]}
run: ${vyatta_bindir}/vyatta-monitor NAT-SOURCE-RULE-$5 "\[NAT-$5-SNAT\]"