def releasePorts(self, portList): """ Description Release the specified ports in a list. Parameter portList: : A list of ports in a list, to release in format of... [[ixChassisIp, str(cardNum), str(portNum)], [], [] ...] """ vportList = [] for port in portList: vport = self.getVports([port]) if vport == []: continue vportList.append(vport[0]) url = self.ixnObj.sessionUrl+'/vport/operations/releaseport' response = self.ixnObj.post(url, data={'arg1': vportList}) self.ixnObj.waitForComplete(response, url+'/'+response.json()['id'], timeout=120)