proc StopSpecifiedTrafficHlt { {trafficItemList ""} } { # Only stop spesific Traffic Items, if a list is provided if {$trafficItemList != "" } { foreach item [::ixTclNet::GetTrafficItemList] { if { [lsearch $trafficItemList [ixNet getAttribute $item -name]] != -1 } { puts "\n$stopTraffic: $item" ixNet exec stopStatelessTraffic $item } } } else { puts "\nStopSpecifiedTrafficHlt ..." set stopTrafficStatus [::ixia::traffic_control \ -action stop \ ] if {[keylget stopTrafficStatus status] != $::SUCCESS} { puts "\nError StopTraffic: $stopTrafficStatus\n" return 1 } puts "\n$stopTrafficStatus" } wait 5000 return 0 }