def importConfig(connection, sessionUrl, srcFilePath, destRxfPath): ''' This method will perform a POST request to load a repository. 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 to save the rxf for - srcFilePath is the location for crf file on the machine that holds the IxLoad instance - destRxfPath is the location where to save the rxf on the machine that holds the IxLoad instance ''' importConfigUrl = "%s/ixload/test/operations/importConfig" % (sessionUrl) srcFilePath = srcFilePath.replace("\\", "\\\\") data = {"srcFile": srcFilePath, "destRxf": destRxfPath} performGenericOperation(connection, importConfigUrl, data)