def enableForcefullyTakeOwnershipAndResetPorts(connection, sessionUrl): ''' This method is used to take forcefully the ownership of the ports Args: - connection is the connection object that manages the HTTP data transfers between the client and the REST API - sessionUrl is the address of the session on which the test was ran. ''' activeTestUrl = "%s/ixload/test/activeTest" % (sessionUrl) data = {'enableForceOwnership': 'true','enableResetPorts': 'true'} performGenericPatch(connection, activeTestUrl, data)