def LoadConfigFileReassignPortsNgpfHlPy(configFile, ixNetworkTclServer, tclServer, chassisIp, portList, userName ): ''' Load a saved configuration file and reassign ports. The benefit of this API is that you could apply the same configuration in any testbed, and use different Ixia ports. configFile: The full path to the config file on your Linux network portList format: 1/3. Not 1/1/3 ''' connectStatus = ixia_ngpf.connect ( config_file = configFile, ixnetwork_tcl_server = ixNetworkTclServer, tcl_server = tclServer, device = chassisIp, port_list = portList, username = userName, break_locks = '1', ) if connectStatus['status'] != '1': return 1 else: return connectStatus