def startAllOspfv2(self): """ Description Start all OSPFv2. """ queryData = {'from': '/', 'nodes': [{'node': 'topology', 'properties': ['name'], 'where': []}, {'node': 'deviceGroup', 'properties': [], 'where': []}, {'node': 'ethernet', 'properties': [], 'where': []}, {'node': 'ipv4', 'properties': [], 'where': []}, {'node': 'ospfv2', '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]['ospfv2'] != []: for ospfObj in deviceGroupObj['ethernet'][0]['ipv4'][0]['ospfv2']: data = {'arg1': [ospfObj['href']]} self.ixnObj.post(self.ixnObj.httpHeader+ospfObj['href']+'/operations/start', data=data)