diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-09-19 12:19:51 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-10-27 17:11:30 -0500 |
commit | b4bb5be6432e67f97a88fe2a1918cf2b0e21546f (patch) | |
tree | 6a3aae557180a99afd615a5458b694a9ca64befe /gen-monitor-vif-interface-templates.sh | |
parent | 20b1db02bc1cf35aab1fd275fb6f51e121e9f21d (diff) | |
download | vyatta-op-b4bb5be6432e67f97a88fe2a1918cf2b0e21546f.tar.gz vyatta-op-b4bb5be6432e67f97a88fe2a1918cf2b0e21546f.zip |
Fix filter completion
(cherry picked from commit 865874dbe3466f3188b4ebe6556fa00beefa6354)
Diffstat (limited to 'gen-monitor-vif-interface-templates.sh')
-rw-r--r-- | gen-monitor-vif-interface-templates.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gen-monitor-vif-interface-templates.sh b/gen-monitor-vif-interface-templates.sh index b8149f1..c36881c 100644 --- a/gen-monitor-vif-interface-templates.sh +++ b/gen-monitor-vif-interface-templates.sh @@ -42,6 +42,7 @@ for type in "${types[@]}"; do # detail filter echo "help: Monitor detailed filtered traffic for the specified $type interface" > $type/node.tag/vif/node.tag/traffic/detail/filter/node.def echo -e "help: Monitor detailed filtered traffic for the specified $type interface" > $type/node.tag/vif/node.tag/traffic/detail/filter/node.tag/node.def + echo -e "allowed: echo -e '<pcap-filter>'" >> $type/node.tag/vif/node.tag/traffic/detail/filter/node.tag/node.def echo 'run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4.$6 --detail --filter "${@:10}"' >> $type/node.tag/vif/node.tag/traffic/detail/filter/node.tag/node.def # detail unlimited @@ -51,11 +52,13 @@ for type in "${types[@]}"; do # detail unlimited filter echo "help: Monitor detailed filtered traffic for the specified $type interface" > $type/node.tag/vif/node.tag/traffic/detail/unlimited/filter/node.def echo "help: Monitor detailed filtered traffic for the specified $type interface" > $type/node.tag/vif/node.tag/traffic/detail/unlimited/filter/node.tag/node.def + echo "allowed: echo -e '<pcap-filter>'" >> $type/node.tag/vif/node.tag/traffic/detail/unlimited/filter/node.tag/node.def echo 'run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4.$6 --detail --unlimited --filter "${@:11}"' >> $type/node.tag/vif/node.tag/traffic/detail/unlimited/filter/node.tag/node.def #filter echo "help: Monitor filtered traffic for the specified $type interface" > $type/node.tag/vif/node.tag/traffic/filter/node.def echo "help: Monitor filtered traffic for the specified $type interface" > $type/node.tag/vif/node.tag/traffic/filter/node.tag/node.def + echo "allowed: echo -e '<pcap-filter>'" >> $type/node.tag/vif/node.tag/traffic/filter/node.tag/node.def echo 'run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4.$6 --filter "${@:9}"' >> $type/node.tag/vif/node.tag/traffic/filter/node.tag/node.def # unlimited @@ -65,6 +68,7 @@ for type in "${types[@]}"; do # unlimited filter echo "help: Monitor filtered traffic for the specified $type interface" > $type/node.tag/vif/node.tag/traffic/unlimited/filter/node.def echo "help: Monitor filtered traffic for the specified $type interface" > $type/node.tag/vif/node.tag/traffic/unlimited/filter/node.tag/node.def + echo "allowed: echo -e '<pcap-filter>'" >> $type/node.tag/vif/node.tag/traffic/unlimited/filter/node.tag/node.def echo 'run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4.$6 --unlimited --filter "${@:10}"' >> $type/node.tag/vif/node.tag/traffic/unlimited/filter/node.tag/node.def done |