def editDutProperties(connection, sessionUrl, dutId, newInfoDict=None): ''' This method is used to modify the DUT's: name, comment, type Args: - connection is the connection object that manages the HTTP data transfers between the client and the REST API - dutUrl is the address of the dut that needs to be changed/modified - newInfoDict is a dictionary that contains the updated DUT information ''' dutUrl = "%s/ixload/test/activeTest/dutList/%s" % (sessionUrl, dutId) performGenericPatch(connection, dutUrl, newInfoDict)