proc ModifyIgmpReportsPerSecond { portList rate } { # Description: # This API will automatically disable or enable # suppress ARP for duplicate gateway on all the # ports with ipv4. # action = true or false or enable or disable set root [ixNet getRoot] set globals $root\globals set globalTopology $globals/topology set globalTopologyIgmpHost $globalTopology/igmpHost set multiValue [ixNet getAttribute $globalTopologyIgmpHost -ratePerInterval] set igmpHostPortList [ixNet getAttribute $globalTopologyIgmpHost -rowNames] foreach port $portList { set portIndex [expr [lsearch $igmpHostPortList $port] + 1] if {$portIndex == -1} { puts "\nError ModifyIgmpReportPerSecond: No such port found for igmpHost: $port" return 1 } puts "\nModifyIgmpReportsPerSecond: $port -> $rate" if {[SetNgpfCounterMultiValue $multiValue $portIndex $rate]} { return 1 } } return 0 }