def startAllRsvpTeLsps(self): """ Description Start all RSVP-TE LSPS (Tunnels). """ queryData = {'from': '/', 'nodes': [{'node': 'topology', 'properties': ['name'], 'where': []}, {'node': 'deviceGroup', 'properties': [], 'where': []}, {'node': 'ethernet', 'properties': [], 'where': []}, {'node': 'ipv4', 'properties': [], 'where': []}, {'node': 'rsvpteLsps', 'properties': [], 'where': []}] } queryResponse = self.ixnObj.query(data=queryData) for topologyObj in queryResponse.json()['result'][0]['topology']: for deviceGroupObj in topologyObj['deviceGroup']: if deviceGroupObj['ethernet'][0]['ipv4'][0]['rsvpteLsps'] != []: for rsvpTeLspsObj in deviceGroupObj['ethernet'][0]['ipv4'][0]['rsvpteLsps']: data = {'arg1': [rsvpTeLspsObj['href']]} self.ixnObj.post(self.ixnObj.httpHeader+rsvpTeLspsObj['href']+'/operations/start', data=data)