proc StopStaticAuthProtocol { portList } { foreach port $portList { set vport [GetVportMapping $port] set etherObj [lindex [ixNet getList $vport/protocolStack ethernet] 0] catch {ixNet exec stop $etherObj} errMsg if {$errMsg != "::ixNet::OK"} { puts "\nError StopStaticAuthProtocol: Stopping Static IP/Auth on $port: $errMsg" return 1 } else { puts "\nStartStaticAuthProtocol: Successfully stopped Static IP/Auth on $port: $errMsg" } } return 0 }