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-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-interface-templates.sh')
-rw-r--r-- | gen-monitor-interface-templates.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gen-monitor-interface-templates.sh b/gen-monitor-interface-templates.sh index be4ccd1..d1d4463 100644 --- a/gen-monitor-interface-templates.sh +++ b/gen-monitor-interface-templates.sh @@ -46,6 +46,7 @@ for type in "${types[@]}"; do # detail filter echo "help: Monitor detailed filtered traffic for the specified $type interface" > $type/node.tag/traffic/detail/filter/node.def echo -e "help: Monitor detailed filtered traffic for the specified $type interface" > $type/node.tag/traffic/detail/filter/node.tag/node.def + echo -e "allowed: echo -e '<pcap-filter>'" >> $type/node.tag/traffic/detail/filter/node.tag/node.def echo 'run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --detail --filter "${@:8}"' >> $type/node.tag/traffic/detail/filter/node.tag/node.def # detail unlimited @@ -55,11 +56,13 @@ for type in "${types[@]}"; do # detail unlimited filter echo "help: Monitor detailed filtered traffic for the specified $type interface" > $type/node.tag/traffic/detail/unlimited/filter/node.def echo "help: Monitor detailed filtered traffic for the specified $type interface" > $type/node.tag/traffic/detail/unlimited/filter/node.tag/node.def + echo "allowed: echo -e '<pcap-filter>'" >> $type/node.tag/traffic/detail/unlimited/filter/node.tag/node.def echo 'run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --detail --unlimited --filter "${@:9}"' >> $type/node.tag/traffic/detail/unlimited/filter/node.tag/node.def #filter echo "help: Monitor filtered traffic for the specified $type interface" > $type/node.tag/traffic/filter/node.def echo "help: Monitor filtered traffic for the specified $type interface" > $type/node.tag/traffic/filter/node.tag/node.def + echo "allowed: echo -e '<pcap-filter>'" >> $type/node.tag/traffic/filter/node.tag/node.def echo 'run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --filter "${@:7}"' >> $type/node.tag/traffic/filter/node.tag/node.def # unlimited @@ -69,6 +72,7 @@ for type in "${types[@]}"; do # unlimited filter echo "help: Monitor filtered traffic for the specified $type interface" > $type/node.tag/traffic/unlimited/filter/node.def echo "help: Monitor filtered traffic for the specified $type interface" > $type/node.tag/traffic/unlimited/filter/node.tag/node.def + echo "allowed: echo -e '<pcap-filter>'" >> $type/node.tag/traffic/unlimited/filter/node.tag/node.def echo 'run: ${vyatta_bindir}/vyatta-tshark.pl --intf $4 --unlimited --filter "${@:8}"' >> $type/node.tag/traffic/unlimited/filter/node.tag/node.def done |