From eaa157c64e77a1a988a8763c027b5ae25cb7abfd Mon Sep 17 00:00:00 2001 From: John Southworth Date: Mon, 10 Oct 2011 18:46:02 -0500 Subject: Fix up completion for 'monitor nat' (cherry picked from commit 2aa587b32efc6d64dd0f8efcad451aff59279b00) --- templates/monitor/nat/masquerade/rule/node.tag/node.def | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates/monitor/nat/masquerade') 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\]" -- cgit v1.2.3