diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-10-10 18:46:02 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-27 17:11:30 -0500 |
commit | eaa157c64e77a1a988a8763c027b5ae25cb7abfd (patch) | |
tree | a22db41847fb0923efc4451bf35d9616769e1652 /templates/monitor/nat/destination | |
parent | 63db041ce8cd7962d3d670563cfd0d53aec27a35 (diff) | |
download | vyatta-op-eaa157c64e77a1a988a8763c027b5ae25cb7abfd.tar.gz vyatta-op-eaa157c64e77a1a988a8763c027b5ae25cb7abfd.zip |
Fix up completion for 'monitor nat'
(cherry picked from commit 2aa587b32efc6d64dd0f8efcad451aff59279b00)
Diffstat (limited to 'templates/monitor/nat/destination')
-rw-r--r-- | templates/monitor/nat/destination/rule/node.tag/node.def | 4 |
1 files changed, 3 insertions, 1 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\]" |