def CreateDeviceGroupPy(topologyObj, deviceGroupName, multiplier): print '\nCreateDeviceGroup: %s : %s' % (topologyObj, deviceGroupName) deviceGroupObj = ixNet.add(topologyObj, 'deviceGroup') ixNet.setMultiAttribute(deviceGroupObj, '-name', deviceGroupName, '-multiplier', multiplier ) ixNet.commit() return deviceGroupObj