diff options
author | Saurabh Mohan <saurabh.mohan@vyatta.com> | 2012-08-09 13:14:49 -0700 |
---|---|---|
committer | Saurabh Mohan <saurabh.mohan@vyatta.com> | 2012-08-09 13:14:49 -0700 |
commit | 6aaca3a4bdc77c804e21ad0a3c1ab5ce4d7d8686 (patch) | |
tree | 0fdbf6cb955c1d3231c90fe093a130b18350973c /gen-monitor-interface-templates.sh | |
parent | c60e40528702f0a3b358925c00d52d5879a9948a (diff) | |
download | vyatta-op-6aaca3a4bdc77c804e21ad0a3c1ab5ce4d7d8686.tar.gz vyatta-op-6aaca3a4bdc77c804e21ad0a3c1ab5ce4d7d8686.zip |
Bugfix 8217: VTI: add clear and monitor interfaces commands.
Add support for interface vti for operational commands clear and monitor.
Diffstat (limited to 'gen-monitor-interface-templates.sh')
-rw-r--r-- | gen-monitor-interface-templates.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gen-monitor-interface-templates.sh b/gen-monitor-interface-templates.sh index d1d4463..a4f75b4 100644 --- a/gen-monitor-interface-templates.sh +++ b/gen-monitor-interface-templates.sh @@ -16,6 +16,7 @@ declare -a types=( "bonding" \ "tunnel" \ "loopback" \ + "vti" ) for type in "${types[@]}"; do @@ -24,11 +25,12 @@ for type in "${types[@]}"; do mkdir -p $type/node.tag/traffic/detail/unlimited/filter/node.tag mkdir -p $type/node.tag/traffic/filter/node.tag mkdir -p $type/node.tag/traffic/unlimited/filter/node.tag - + #node.tag echo "help: Monitor specified $type interface" > $type/node.tag/node.def echo "allowed: \${vyatta_sbindir}/vyatta-interfaces.pl --show $type" >> $type/node.tag/node.def - echo "run: \${vyatta_bindir}/vyatta-show-interfaces.pl --intf=\"$4\"" >> $type/node.tag/node.def + echo 'run: bmon -p $4' >> $type/node.tag/node.def + echo '' >> $type/node.tag/node.def # standard echo "help: Montior captured traffic on specified $type interface" > $type/node.tag/traffic/node.def |