proc StopDeviceGroupNgpf { deviceGroupName } { foreach topology [ixNet getList [ixNet getRoot] topology] { foreach deviceGroup [ixNet getList $topology deviceGroup] { set currentDgName [ixNet getAttribute $deviceGroup -name] if {[regexp -nocase $deviceGroupName $currentDgName]} { puts "\nStopDeviceGroup: $currentDgName" ixNet exec stop $deviceGroup ixNet commit } } } }