From 6aaca3a4bdc77c804e21ad0a3c1ab5ce4d7d8686 Mon Sep 17 00:00:00 2001 From: Saurabh Mohan Date: Thu, 9 Aug 2012 13:14:49 -0700 Subject: Bugfix 8217: VTI: add clear and monitor interfaces commands. Add support for interface vti for operational commands clear and monitor. --- gen-monitor-interface-templates.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gen-monitor-interface-templates.sh') 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 -- cgit v1.2.3