From 4f50234c62f32cdeb7b6d5e71ab79f5b14579fe5 Mon Sep 17 00:00:00 2001 From: Robert Latta <robert.latta@geant.org> Date: Mon, 8 Mar 2021 14:29:08 +0000 Subject: [PATCH] updated test and data to cover vmportrelate circuits --- test/data/ims_port_id_services_data.json | 2652 ++++++++++++---------- test/test_ims_data.py | 29 +- 2 files changed, 1423 insertions(+), 1258 deletions(-) diff --git a/test/data/ims_port_id_services_data.json b/test/data/ims_port_id_services_data.json index 50632a61..675f86cb 100644 --- a/test/data/ims_port_id_services_data.json +++ b/test/data/ims_port_id_services_data.json @@ -1,1301 +1,1455 @@ [ - { - "acquisitiondate": null, - "antennafeeders": null, - "bicableports": null, - "blocked": 0, - "cableports": null, - "calculatedlength": null, - "carriercircuits": null, - "channelreservations": null, - "circuitaliases": null, - "circuitattachments": null, - "circuitcoordinates": null, - "circuitcounts": null, - "circuitdomains": null, - "circuitmanagementsystems": null, - "circuitmergingrelatedcircuits": null, - "circuitprotectionprotections": null, - "circuitprotectionworkers": null, - "circuitrequestor": "", - "circuittypeid": 0, - "coscircuits": null, - "createdate": "2020-02-27T21:21:12", - "createuser": null, - "createuserid": 6727, - "csc": null, - "cscid": null, - "customer": null, - "customerid": 57658, - "ddfodfports": null, - "ddfodfpositionfromto": null, - "ddfodfpositions": null, - "deliverdate": "2020-02-28T20:22:43", - "designref": "", - "dsls": null, - "errors": null, - "extrainfo": "", - "extrainfoimportant": 0, - "fitstatus": "", - "floorplanlines": null, - "frameatms": null, - "framessizerequired": null, - "framing": "", - "geocircuitspiped": null, - "geodataisineditmode": null, - "geoworkersandprotections": null, - "haserrors": false, - "id": 663060, - "internalporta": null, - "internalportaid": 224137, - "internalportb": null, - "internalportbid": null, - "internalports": [ - { - "adminstatus": 1, - "card": null, - "cardid": null, - "childinternalports": null, - "circuit": null, - "circuitalist": null, - "circuitblist": null, - "circuitid": 663060, - "comments": "SRV_GLOBAL CUSTOMER ORG_A #ORG_A_AP2 | ASN2200 |", - "condbase": "", - "directionid": 0, - "domain": null, - "domainid": 2686, - "errors": null, - "haserrors": false, - "id": 224507, - "internalporttemplate": null, - "internalporttemplateid": null, - "ipaddresses": null, - "iprelates": null, - "linestatus": 1, - "macaddress": "", - "mtu": 9167, - "name": "AE14.160", - "node": { - "acpowerconsumption": null, - "alarms": null, - "angle": null, - "batterybackuphoursordered": null, - "bridgedomains": null, - "builddate": "2020-02-25T13:39:04", - "cards": null, - "configuration": "", - "createuser": null, - "createuserid": 8338, - "customer": null, - "customerid": 57640, - "dcpowerconsumption": null, - "directionangle": null, + [ + { + "acquisitiondate": null, + "antennafeeders": null, + "bicableports": null, + "blocked": 0, + "cableports": null, + "calculatedlength": null, + "carriercircuits": null, + "channelreservations": null, + "circuitaliases": null, + "circuitattachments": null, + "circuitcoordinates": null, + "circuitcounts": null, + "circuitdomains": null, + "circuitmanagementsystems": null, + "circuitmergingrelatedcircuits": null, + "circuitprotectionprotections": null, + "circuitprotectionworkers": null, + "circuitrequestor": "", + "circuittypeid": 0, + "coscircuits": null, + "createdate": "2020-02-27T21:21:12", + "createuser": null, + "createuserid": 6727, + "csc": null, + "cscid": null, + "customer": null, + "customerid": 57658, + "ddfodfports": null, + "ddfodfpositionfromto": null, + "ddfodfpositions": null, + "deliverdate": "2020-02-28T20:22:43", + "designref": "", + "dsls": null, + "errors": null, + "extrainfo": "", + "extrainfoimportant": 0, + "fitstatus": "", + "floorplanlines": null, + "frameatms": null, + "framessizerequired": null, + "framing": "", + "geocircuitspiped": null, + "geodataisineditmode": null, + "geoworkersandprotections": null, + "haserrors": false, + "id": 663060, + "internalporta": null, + "internalportaid": 224137, + "internalportb": null, + "internalportbid": null, + "internalports": [ + { + "adminstatus": 1, + "card": null, + "cardid": null, + "childinternalports": null, + "circuit": null, + "circuitalist": null, + "circuitblist": null, + "circuitid": 663060, + "comments": "SRV_GLOBAL CUSTOMER ORG_A #ORG_A_AP2 | ASN2200 |", + "condbase": "", + "directionid": 0, "domain": null, "domainid": 2686, - "equipmentdefinition": null, - "equipmentdefinitionid": 6959, "errors": null, - "extrainfo": "", - "extrainfoimportant": 0, - "fuseconsumption": null, - "hardwarebuildnumber": null, - "hardwarerevision": "REV 01", "haserrors": false, - "heatemission": null, - "heightinrack": null, - "id": 129531, - "inservicedate": "2020-02-25T15:34:21", - "internalports": [], - "inventorystatusid": 3, - "ipaddress": "", + "id": 224507, + "internalporttemplate": null, + "internalporttemplateid": null, + "ipaddresses": null, "iprelates": null, - "leftinrack": 0, - "managementsystem": null, - "managementsystemid": 2356, - "mplsprot": "", - "name": "MX1.GEN.CH", - "networkaddress": "", - "networkmapnodeobject": null, - "networkrole": "", - "nodealiases": null, - "nodeattachments": null, - "nodecounts": null, - "order": null, - "orderid": null, - "outofservicedate": null, - "parentnode": null, - "parentnodeid": null, - "plmidate": null, - "ploosdate": null, - "ports": null, - "powerconsume": 0, - "rack": null, - "rackframe": null, - "rackframeid": null, - "rackid": 113087, - "rackside": null, - "range": null, - "ratebatterybackup": null, - "ratedieselgeneratorbackup": null, - "ratevolume": null, - "reconcilenodes": null, - "relatedorders": null, - "requestor": "", - "ring": null, - "ringid": 4230, - "rowversion": "2020-12-03T20:07:03", - "sectors": null, - "serialnumber": "JN11F26A5AFA", - "servicecontract": "", - "shelves": null, - "shouldnotberatedacpower": null, - "shouldnotberateddcpower": null, - "shouldnotberateddiesel": null, - "shouldnotberatedvolume": null, + "linestatus": 1, + "macaddress": "", + "mtu": 9167, + "name": "AE14.160", + "node": { + "acpowerconsumption": null, + "alarms": null, + "angle": null, + "batterybackuphoursordered": null, + "bridgedomains": null, + "builddate": "2020-02-25T13:39:04", + "cards": null, + "configuration": "", + "createuser": null, + "createuserid": 8338, + "customer": null, + "customerid": 57640, + "dcpowerconsumption": null, + "directionangle": null, + "domain": null, + "domainid": 2686, + "equipmentdefinition": null, + "equipmentdefinitionid": 6959, + "errors": null, + "extrainfo": "", + "extrainfoimportant": 0, + "fuseconsumption": null, + "hardwarebuildnumber": null, + "hardwarerevision": "REV 01", + "haserrors": false, + "heatemission": null, + "heightinrack": null, + "id": 129531, + "inservicedate": "2020-02-25T15:34:21", + "internalports": [], + "inventorystatusid": 3, + "ipaddress": "", + "iprelates": null, + "leftinrack": 0, + "managementsystem": null, + "managementsystemid": 2356, + "mplsprot": "", + "name": "MX1.GEN.CH", + "networkaddress": "", + "networkmapnodeobject": null, + "networkrole": "", + "nodealiases": null, + "nodeattachments": null, + "nodecounts": null, + "order": null, + "orderid": null, + "outofservicedate": null, + "parentnode": null, + "parentnodeid": null, + "plmidate": null, + "ploosdate": null, + "ports": null, + "powerconsume": 0, + "rack": null, + "rackframe": null, + "rackframeid": null, + "rackid": 113087, + "rackside": null, + "range": null, + "ratebatterybackup": null, + "ratedieselgeneratorbackup": null, + "ratevolume": null, + "reconcilenodes": null, + "relatedorders": null, + "requestor": "", + "ring": null, + "ringid": 4230, + "rowversion": "2020-12-03T20:07:03", + "sectors": null, + "serialnumber": "JN11F26A5AFA", + "servicecontract": "", + "shelves": null, + "shouldnotberatedacpower": null, + "shouldnotberateddcpower": null, + "shouldnotberateddiesel": null, + "shouldnotberatedvolume": null, + "site": null, + "siteid": 445235, + "sla": "", + "softwareversion": "18.4R3-S4.2", + "stockitem": null, + "stockitemid": null, + "subnodelist": null, + "systemaccountnoderelations": null, + "ups": null, + "upsinfo": "", + "variant": "", + "vminternalportrelatelist": null, + "vmportrelatelist": null + }, + "nodeid": 129531, + "parentinternalport": null, + "parentinternalportid": 224137, + "portstatus": "", + "projectnumber": "", + "projectstatus": 1, + "recidcondbase": null, + "reconcilecircuitinternalports": null, + "reservedby": "", + "reserveddate": null, + "reservednumber": "", + "rowversion": "2020-12-03T20:07:56", + "sequencenumber": 1, + "shelf": null, + "shelfid": 186100, "site": null, "siteid": 445235, - "sla": "", - "softwareversion": "18.4R3-S4.2", - "stockitem": null, - "stockitemid": null, - "subnodelist": null, - "systemaccountnoderelations": null, - "ups": null, - "upsinfo": "", - "variant": "", - "vminternalportrelatelist": null, - "vmportrelatelist": null - }, - "nodeid": 129531, - "parentinternalport": null, - "parentinternalportid": 224137, - "portstatus": "", - "projectnumber": "", - "projectstatus": 1, - "recidcondbase": null, - "reconcilecircuitinternalports": null, - "reservedby": "", - "reserveddate": null, - "reservednumber": "", - "rowversion": "2020-12-03T20:07:56", - "sequencenumber": 1, - "shelf": null, - "shelfid": 186100, - "site": null, - "siteid": 445235, - "tobeceasedrelatedinternalportid": null, - "txrx": null, - "virtualswitchid": null, - "vminternalportrelatelist": null - } - ], - "inventorystatusid": 3, - "ipranges": null, - "isprotected": 0, - "linecoding": "", - "linkcosts": null, - "lossmeasured": null, - "measuredlength": null, - "mergecircuitmergingrelatedcircuits": null, - "migrationdate": "2020-12-03T20:07:56", - "mspprotections": null, - "mspworkers": null, - "name": "ORG_A_AP2", - "nodea": null, - "nodeaid": 129531, - "nodeb": null, - "nodebid": null, - "oldcircuits": null, - "oldname": "", - "olocircuits": null, - "order": null, - "orderid": null, - "outofservicedate": null, - "plmidate": null, - "ploosdate": null, - "porta": null, - "portaid": null, - "portb": null, - "portbid": null, - "portchannelrelations": null, - "portreservations": null, - "ports": [], - "product": null, - "productid": 3804, - "projectnumber": "", - "projectstatus": null, - "protectiontype": "", - "protectiontypec": "", - "prottypea": "", - "prottypez": "", - "pwcircuits": null, - "pwmaincircuits": null, - "reconcilecircuits": null, - "relatedorders": null, - "ringsections": null, - "rowversion": "2021-01-12T09:03:43", - "rtdcontract": "", - "rtdmaincalc": "", - "rtdmainmeasured": "", - "rtdsparecalc": "", - "rtdsparemeasured": "", - "sellingunit": "", - "sequencenumber": "", - "servicecircuits": null, - "serviceparts": "JUNIPER", - "sitea": null, - "siteaid": 445235, - "siteb": null, - "sitebid": 445235, - "sla": null, - "slacks": null, - "slaid": null, - "speed": { - "aendmandatory": 1, - "carrierchannelaliases": null, - "carrierlayerrules": null, - "channelview": "NORMAL", - "circuitnametemplate": "", - "circuits": [], - "circuittypeoption": 0, - "defaultcustomer": null, - "defaultcustomerid": 57744, - "defaultproduct": null, - "defaultproductid": 3677, - "defaultserviceparts": "", - "defaultvendor": "", - "drawsubcircuit": 0, - "e2echeck": 0, + "tobeceasedrelatedinternalportid": null, + "txrx": null, + "virtualswitchid": null, + "vminternalportrelatelist": null + } + ], + "inventorystatusid": 3, + "ipranges": null, + "isprotected": 0, + "linecoding": "", + "linkcosts": null, + "lossmeasured": null, + "measuredlength": null, + "mergecircuitmergingrelatedcircuits": null, + "migrationdate": "2020-12-03T20:07:56", + "mspprotections": null, + "mspworkers": null, + "name": "ORG_A_AP2", + "nodea": null, + "nodeaid": 129531, + "nodeb": null, + "nodebid": null, + "oldcircuits": null, + "oldname": "", + "olocircuits": null, + "order": null, + "orderid": null, + "outofservicedate": null, + "plmidate": null, + "ploosdate": null, + "porta": null, + "portaid": null, + "portb": null, + "portbid": null, + "portchannelrelations": null, + "portreservations": null, + "ports": [], + "product": null, + "productid": 3804, + "projectnumber": "", + "projectstatus": null, + "protectiontype": "", + "protectiontypec": "", + "prottypea": "", + "prottypez": "", + "pwcircuits": null, + "pwmaincircuits": null, + "reconcilecircuits": null, + "relatedorders": null, + "ringsections": null, + "rowversion": "2021-01-12T09:03:43", + "rtdcontract": "", + "rtdmaincalc": "", + "rtdmainmeasured": "", + "rtdsparecalc": "", + "rtdsparemeasured": "", + "sellingunit": "", + "sequencenumber": "", + "servicecircuits": null, + "serviceparts": "JUNIPER", + "sitea": null, + "siteaid": 445235, + "siteb": null, + "sitebid": 445235, + "sla": null, + "slacks": null, + "slaid": null, + "speed": { + "aendmandatory": 1, + "carrierchannelaliases": null, + "carrierlayerrules": null, + "channelview": "NORMAL", + "circuitnametemplate": "", + "circuits": [], + "circuittypeoption": 0, + "defaultcustomer": null, + "defaultcustomerid": 57744, + "defaultproduct": null, + "defaultproductid": 3677, + "defaultserviceparts": "", + "defaultvendor": "", + "drawsubcircuit": 0, + "e2echeck": 0, + "errors": null, + "extrainfo": "", + "graphicalx": null, + "graphicaly": null, + "haserrors": false, + "id": 3044, + "isgeo": 0, + "kbits": null, + "layouttype": "NORMAL", + "maxgraphicallayerdepth": 2, + "multipoint": 0, + "name": "ETHS", + "oloproducts": null, + "olospeedallowed": "", + "optical": 0, + "products": null, + "rowversion": "2020-02-07T14:50:26", + "showcircuitaddnewmenu": 1, + "showsubcircuitmenu": 1, + "showvlanid": 0, + "speedcolor": null, + "speedtype": "S", + "subchannelaliases": null, + "subchannelfrom": 0, + "subchannelto": 4095, + "subchanneltype": "", + "subcircuitlayerrules": null, + "test": 0, + "usesubcapacity": 0, + "wizardusable": 0, + "zendmandatory": 1 + }, + "speedid": 3044, + "spofcircuits": null, + "spofresultcircuits": null, + "spofresultcomparecircuits": null, + "spofresultprotectioncircuits": null, + "spofresultprotectioncircuits2": null, + "spofresultsubprotectioncircuits": null, + "spofresultsubprotectioncircuits2": null, + "spofresultsubworkercircuits": null, + "spofresultsubworkercircuits2": null, + "spofresultworkercircuits": null, + "spofresultworkercircuits2": null, + "stdornonstd": 0, + "structuretype": "", + "subcircuits": null, + "tested": 0, + "vendor": "JUNIPER", + "vlanid": null, + "vminternalportrelatelist": null, + "vmportrelatelist": null, + "wtoptunnelprotections": null, + "wtoptunnelworkers": null + }, + { + "acquisitiondate": null, + "antennafeeders": null, + "bicableports": null, + "blocked": 0, + "cableports": null, + "calculatedlength": null, + "carriercircuits": null, + "channelreservations": null, + "circuitaliases": null, + "circuitattachments": null, + "circuitcoordinates": null, + "circuitcounts": null, + "circuitdomains": null, + "circuitmanagementsystems": null, + "circuitmergingrelatedcircuits": null, + "circuitprotectionprotections": null, + "circuitprotectionworkers": null, + "circuitrequestor": "", + "circuittypeid": 0, + "coscircuits": null, + "createdate": "2020-02-27T21:21:54", + "createuser": null, + "createuserid": 6727, + "csc": null, + "cscid": null, + "customer": null, + "customerid": 57664, + "ddfodfports": null, + "ddfodfpositionfromto": null, + "ddfodfpositions": null, + "deliverdate": "2020-02-28T20:15:58", + "designref": "", + "dsls": null, "errors": null, "extrainfo": "", - "graphicalx": null, - "graphicaly": null, + "extrainfoimportant": 0, + "fitstatus": "", + "floorplanlines": null, + "frameatms": null, + "framessizerequired": null, + "framing": "", + "geocircuitspiped": null, + "geodataisineditmode": null, + "geoworkersandprotections": null, "haserrors": false, - "id": 3044, - "isgeo": 0, - "kbits": null, - "layouttype": "NORMAL", - "maxgraphicallayerdepth": 2, - "multipoint": 0, - "name": "ETHS", - "oloproducts": null, - "olospeedallowed": "", - "optical": 0, - "products": null, - "rowversion": "2020-02-07T14:50:26", - "showcircuitaddnewmenu": 1, - "showsubcircuitmenu": 1, - "showvlanid": 0, - "speedcolor": null, - "speedtype": "S", - "subchannelaliases": null, - "subchannelfrom": 0, - "subchannelto": 4095, - "subchanneltype": "", - "subcircuitlayerrules": null, - "test": 0, - "usesubcapacity": 0, - "wizardusable": 0, - "zendmandatory": 1 - }, - "speedid": 3044, - "spofcircuits": null, - "spofresultcircuits": null, - "spofresultcomparecircuits": null, - "spofresultprotectioncircuits": null, - "spofresultprotectioncircuits2": null, - "spofresultsubprotectioncircuits": null, - "spofresultsubprotectioncircuits2": null, - "spofresultsubworkercircuits": null, - "spofresultsubworkercircuits2": null, - "spofresultworkercircuits": null, - "spofresultworkercircuits2": null, - "stdornonstd": 0, - "structuretype": "", - "subcircuits": null, - "tested": 0, - "vendor": "JUNIPER", - "vlanid": null, - "vminternalportrelatelist": null, - "vmportrelatelist": null, - "wtoptunnelprotections": null, - "wtoptunnelworkers": null - }, - { - "acquisitiondate": null, - "antennafeeders": null, - "bicableports": null, - "blocked": 0, - "cableports": null, - "calculatedlength": null, - "carriercircuits": null, - "channelreservations": null, - "circuitaliases": null, - "circuitattachments": null, - "circuitcoordinates": null, - "circuitcounts": null, - "circuitdomains": null, - "circuitmanagementsystems": null, - "circuitmergingrelatedcircuits": null, - "circuitprotectionprotections": null, - "circuitprotectionworkers": null, - "circuitrequestor": "", - "circuittypeid": 0, - "coscircuits": null, - "createdate": "2020-02-27T21:21:54", - "createuser": null, - "createuserid": 6727, - "csc": null, - "cscid": null, - "customer": null, - "customerid": 57664, - "ddfodfports": null, - "ddfodfpositionfromto": null, - "ddfodfpositions": null, - "deliverdate": "2020-02-28T20:15:58", - "designref": "", - "dsls": null, - "errors": null, - "extrainfo": "", - "extrainfoimportant": 0, - "fitstatus": "", - "floorplanlines": null, - "frameatms": null, - "framessizerequired": null, - "framing": "", - "geocircuitspiped": null, - "geodataisineditmode": null, - "geoworkersandprotections": null, - "haserrors": false, - "id": 663104, - "internalporta": null, - "internalportaid": 224419, - "internalportb": null, - "internalportbid": null, - "internalports": [ - { - "adminstatus": 1, - "card": null, - "cardid": null, - "childinternalports": null, - "circuit": null, - "circuitalist": null, - "circuitblist": null, - "circuitid": 663104, - "comments": "SRV_IAS CUSTOMER ORG_B #ORG_B_AP2_IAS IASPS | ASN8517", - "condbase": "", - "directionid": 0, - "domain": null, - "domainid": 2686, - "errors": null, - "haserrors": false, - "id": 224464, - "internalporttemplate": null, - "internalporttemplateid": null, - "ipaddresses": null, - "iprelates": null, - "linestatus": 1, - "macaddress": "", - "mtu": null, - "name": "AE27.333", - "node": { - "acpowerconsumption": null, - "alarms": null, - "angle": null, - "batterybackuphoursordered": null, - "bridgedomains": null, - "builddate": "2020-02-25T13:39:01", - "cards": null, - "configuration": "", - "createuser": null, - "createuserid": 8338, - "customer": null, - "customerid": 57640, - "dcpowerconsumption": null, - "directionangle": null, + "id": 663104, + "internalporta": null, + "internalportaid": 224419, + "internalportb": null, + "internalportbid": null, + "internalports": [ + { + "adminstatus": 1, + "card": null, + "cardid": null, + "childinternalports": null, + "circuit": null, + "circuitalist": null, + "circuitblist": null, + "circuitid": 663104, + "comments": "SRV_IAS CUSTOMER ORG_B #ORG_B_AP2_IAS IASPS | ASN8517", + "condbase": "", + "directionid": 0, "domain": null, "domainid": 2686, - "equipmentdefinition": null, - "equipmentdefinitionid": 6959, "errors": null, - "extrainfo": "", - "extrainfoimportant": 0, - "fuseconsumption": null, - "hardwarebuildnumber": null, - "hardwarerevision": "REV 01", "haserrors": false, - "heatemission": null, - "heightinrack": null, - "id": 129526, - "inservicedate": "2020-02-25T15:34:52", - "internalports": [], - "inventorystatusid": 3, - "ipaddress": "", + "id": 224464, + "internalporttemplate": null, + "internalporttemplateid": null, + "ipaddresses": null, "iprelates": null, - "leftinrack": 0, - "managementsystem": null, - "managementsystemid": 2356, - "mplsprot": "", - "name": "MX1.FRA.DE", - "networkaddress": "", - "networkmapnodeobject": null, - "networkrole": "", - "nodealiases": null, - "nodeattachments": null, - "nodecounts": null, - "order": null, - "orderid": null, - "outofservicedate": null, - "parentnode": null, - "parentnodeid": null, - "plmidate": null, - "ploosdate": null, - "ports": null, - "powerconsume": 0, - "rack": null, - "rackframe": null, - "rackframeid": null, - "rackid": 113101, - "rackside": null, - "range": null, - "ratebatterybackup": null, - "ratedieselgeneratorbackup": null, - "ratevolume": null, - "reconcilenodes": null, - "relatedorders": null, - "requestor": "", - "ring": null, - "ringid": 4230, - "rowversion": "2020-10-22T01:35:58", - "sectors": null, - "serialnumber": "JN11F20B6AFA", - "servicecontract": "", - "shelves": null, - "shouldnotberatedacpower": null, - "shouldnotberateddcpower": null, - "shouldnotberateddiesel": null, - "shouldnotberatedvolume": null, + "linestatus": 1, + "macaddress": "", + "mtu": null, + "name": "AE27.333", + "node": { + "acpowerconsumption": null, + "alarms": null, + "angle": null, + "batterybackuphoursordered": null, + "bridgedomains": null, + "builddate": "2020-02-25T13:39:01", + "cards": null, + "configuration": "", + "createuser": null, + "createuserid": 8338, + "customer": null, + "customerid": 57640, + "dcpowerconsumption": null, + "directionangle": null, + "domain": null, + "domainid": 2686, + "equipmentdefinition": null, + "equipmentdefinitionid": 6959, + "errors": null, + "extrainfo": "", + "extrainfoimportant": 0, + "fuseconsumption": null, + "hardwarebuildnumber": null, + "hardwarerevision": "REV 01", + "haserrors": false, + "heatemission": null, + "heightinrack": null, + "id": 129526, + "inservicedate": "2020-02-25T15:34:52", + "internalports": [], + "inventorystatusid": 3, + "ipaddress": "", + "iprelates": null, + "leftinrack": 0, + "managementsystem": null, + "managementsystemid": 2356, + "mplsprot": "", + "name": "MX1.FRA.DE", + "networkaddress": "", + "networkmapnodeobject": null, + "networkrole": "", + "nodealiases": null, + "nodeattachments": null, + "nodecounts": null, + "order": null, + "orderid": null, + "outofservicedate": null, + "parentnode": null, + "parentnodeid": null, + "plmidate": null, + "ploosdate": null, + "ports": null, + "powerconsume": 0, + "rack": null, + "rackframe": null, + "rackframeid": null, + "rackid": 113101, + "rackside": null, + "range": null, + "ratebatterybackup": null, + "ratedieselgeneratorbackup": null, + "ratevolume": null, + "reconcilenodes": null, + "relatedorders": null, + "requestor": "", + "ring": null, + "ringid": 4230, + "rowversion": "2020-10-22T01:35:58", + "sectors": null, + "serialnumber": "JN11F20B6AFA", + "servicecontract": "", + "shelves": null, + "shouldnotberatedacpower": null, + "shouldnotberateddcpower": null, + "shouldnotberateddiesel": null, + "shouldnotberatedvolume": null, + "site": null, + "siteid": 445254, + "sla": "", + "softwareversion": "18.4R3-S4.2", + "stockitem": null, + "stockitemid": null, + "subnodelist": null, + "systemaccountnoderelations": null, + "ups": null, + "upsinfo": "", + "variant": "", + "vminternalportrelatelist": null, + "vmportrelatelist": null + }, + "nodeid": 129526, + "parentinternalport": null, + "parentinternalportid": 224419, + "portstatus": "", + "projectnumber": "", + "projectstatus": 1, + "recidcondbase": null, + "reconcilecircuitinternalports": null, + "reservedby": "", + "reserveddate": null, + "reservednumber": "", + "rowversion": "2020-11-09T17:39:11", + "sequencenumber": 1, + "shelf": null, + "shelfid": 186115, "site": null, "siteid": 445254, - "sla": "", - "softwareversion": "18.4R3-S4.2", - "stockitem": null, - "stockitemid": null, - "subnodelist": null, - "systemaccountnoderelations": null, - "ups": null, - "upsinfo": "", - "variant": "", - "vminternalportrelatelist": null, - "vmportrelatelist": null - }, - "nodeid": 129526, - "parentinternalport": null, - "parentinternalportid": 224419, - "portstatus": "", - "projectnumber": "", - "projectstatus": 1, - "recidcondbase": null, - "reconcilecircuitinternalports": null, - "reservedby": "", - "reserveddate": null, - "reservednumber": "", - "rowversion": "2020-11-09T17:39:11", - "sequencenumber": 1, - "shelf": null, - "shelfid": 186115, - "site": null, - "siteid": 445254, - "tobeceasedrelatedinternalportid": null, - "txrx": null, - "virtualswitchid": null, - "vminternalportrelatelist": null - } - ], - "inventorystatusid": 3, - "ipranges": null, - "isprotected": 0, - "linecoding": "", - "linkcosts": null, - "lossmeasured": null, - "measuredlength": null, - "mergecircuitmergingrelatedcircuits": null, - "migrationdate": "2020-10-07T17:49:04", - "mspprotections": null, - "mspworkers": null, - "name": "ORG_B_AP2_IAS", - "nodea": null, - "nodeaid": 129526, - "nodeb": null, - "nodebid": null, - "oldcircuits": null, - "oldname": "", - "olocircuits": null, - "order": null, - "orderid": null, - "outofservicedate": null, - "plmidate": null, - "ploosdate": null, - "porta": null, - "portaid": null, - "portb": null, - "portbid": null, - "portchannelrelations": null, - "portreservations": null, - "ports": [], - "product": null, - "productid": 3810, - "projectnumber": "", - "projectstatus": null, - "protectiontype": "", - "protectiontypec": "", - "prottypea": "", - "prottypez": "", - "pwcircuits": null, - "pwmaincircuits": null, - "reconcilecircuits": null, - "relatedorders": null, - "ringsections": null, - "rowversion": "2021-01-12T08:57:36", - "rtdcontract": "", - "rtdmaincalc": "", - "rtdmainmeasured": "", - "rtdsparecalc": "", - "rtdsparemeasured": "", - "sellingunit": "", - "sequencenumber": "", - "servicecircuits": null, - "serviceparts": "JUNIPER", - "sitea": null, - "siteaid": 445254, - "siteb": null, - "sitebid": 445254, - "sla": null, - "slacks": null, - "slaid": null, - "speed": { - "aendmandatory": 1, - "carrierchannelaliases": null, - "carrierlayerrules": null, - "channelview": "NORMAL", - "circuitnametemplate": "", - "circuits": [], - "circuittypeoption": 0, - "defaultcustomer": null, - "defaultcustomerid": 57744, - "defaultproduct": null, - "defaultproductid": 3677, - "defaultserviceparts": "", - "defaultvendor": "", - "drawsubcircuit": 0, - "e2echeck": 0, + "tobeceasedrelatedinternalportid": null, + "txrx": null, + "virtualswitchid": null, + "vminternalportrelatelist": null + } + ], + "inventorystatusid": 3, + "ipranges": null, + "isprotected": 0, + "linecoding": "", + "linkcosts": null, + "lossmeasured": null, + "measuredlength": null, + "mergecircuitmergingrelatedcircuits": null, + "migrationdate": "2020-10-07T17:49:04", + "mspprotections": null, + "mspworkers": null, + "name": "ORG_B_AP2_IAS", + "nodea": null, + "nodeaid": 129526, + "nodeb": null, + "nodebid": null, + "oldcircuits": null, + "oldname": "", + "olocircuits": null, + "order": null, + "orderid": null, + "outofservicedate": null, + "plmidate": null, + "ploosdate": null, + "porta": null, + "portaid": null, + "portb": null, + "portbid": null, + "portchannelrelations": null, + "portreservations": null, + "ports": [], + "product": null, + "productid": 3810, + "projectnumber": "", + "projectstatus": null, + "protectiontype": "", + "protectiontypec": "", + "prottypea": "", + "prottypez": "", + "pwcircuits": null, + "pwmaincircuits": null, + "reconcilecircuits": null, + "relatedorders": null, + "ringsections": null, + "rowversion": "2021-01-12T08:57:36", + "rtdcontract": "", + "rtdmaincalc": "", + "rtdmainmeasured": "", + "rtdsparecalc": "", + "rtdsparemeasured": "", + "sellingunit": "", + "sequencenumber": "", + "servicecircuits": null, + "serviceparts": "JUNIPER", + "sitea": null, + "siteaid": 445254, + "siteb": null, + "sitebid": 445254, + "sla": null, + "slacks": null, + "slaid": null, + "speed": { + "aendmandatory": 1, + "carrierchannelaliases": null, + "carrierlayerrules": null, + "channelview": "NORMAL", + "circuitnametemplate": "", + "circuits": [], + "circuittypeoption": 0, + "defaultcustomer": null, + "defaultcustomerid": 57744, + "defaultproduct": null, + "defaultproductid": 3677, + "defaultserviceparts": "", + "defaultvendor": "", + "drawsubcircuit": 0, + "e2echeck": 0, + "errors": null, + "extrainfo": "", + "graphicalx": null, + "graphicaly": null, + "haserrors": false, + "id": 3044, + "isgeo": 0, + "kbits": null, + "layouttype": "NORMAL", + "maxgraphicallayerdepth": 2, + "multipoint": 0, + "name": "ETHS", + "oloproducts": null, + "olospeedallowed": "", + "optical": 0, + "products": null, + "rowversion": "2020-02-07T14:50:26", + "showcircuitaddnewmenu": 1, + "showsubcircuitmenu": 1, + "showvlanid": 0, + "speedcolor": null, + "speedtype": "S", + "subchannelaliases": null, + "subchannelfrom": 0, + "subchannelto": 4095, + "subchanneltype": "", + "subcircuitlayerrules": null, + "test": 0, + "usesubcapacity": 0, + "wizardusable": 0, + "zendmandatory": 1 + }, + "speedid": 3044, + "spofcircuits": null, + "spofresultcircuits": null, + "spofresultcomparecircuits": null, + "spofresultprotectioncircuits": null, + "spofresultprotectioncircuits2": null, + "spofresultsubprotectioncircuits": null, + "spofresultsubprotectioncircuits2": null, + "spofresultsubworkercircuits": null, + "spofresultsubworkercircuits2": null, + "spofresultworkercircuits": null, + "spofresultworkercircuits2": null, + "stdornonstd": 0, + "structuretype": "", + "subcircuits": null, + "tested": 0, + "vendor": "JUNIPER", + "vlanid": null, + "vminternalportrelatelist": null, + "vmportrelatelist": null, + "wtoptunnelprotections": null, + "wtoptunnelworkers": null + }, + { + "acquisitiondate": null, + "antennafeeders": null, + "bicableports": null, + "blocked": 0, + "cableports": null, + "calculatedlength": null, + "carriercircuits": null, + "channelreservations": null, + "circuitaliases": null, + "circuitattachments": null, + "circuitcoordinates": null, + "circuitcounts": null, + "circuitdomains": null, + "circuitmanagementsystems": null, + "circuitmergingrelatedcircuits": null, + "circuitprotectionprotections": null, + "circuitprotectionworkers": null, + "circuitrequestor": "", + "circuittypeid": 0, + "coscircuits": null, + "createdate": "2020-08-24T13:25:00", + "createuser": null, + "createuserid": 8338, + "csc": null, + "cscid": null, + "customer": null, + "customerid": 57744, + "ddfodfports": null, + "ddfodfpositionfromto": null, + "ddfodfpositions": null, + "deliverdate": "2020-08-24T13:25:01", + "designref": "", + "dsls": null, "errors": null, "extrainfo": "", - "graphicalx": null, - "graphicaly": null, + "extrainfoimportant": 0, + "fitstatus": "", + "floorplanlines": null, + "frameatms": null, + "framessizerequired": null, + "framing": "", + "geocircuitspiped": null, + "geodataisineditmode": null, + "geoworkersandprotections": null, "haserrors": false, - "id": 3044, - "isgeo": 0, - "kbits": null, - "layouttype": "NORMAL", - "maxgraphicallayerdepth": 2, - "multipoint": 0, - "name": "ETHS", - "oloproducts": null, - "olospeedallowed": "", - "optical": 0, - "products": null, - "rowversion": "2020-02-07T14:50:26", - "showcircuitaddnewmenu": 1, - "showsubcircuitmenu": 1, - "showvlanid": 0, - "speedcolor": null, - "speedtype": "S", - "subchannelaliases": null, - "subchannelfrom": 0, - "subchannelto": 4095, - "subchanneltype": "", - "subcircuitlayerrules": null, - "test": 0, - "usesubcapacity": 0, - "wizardusable": 0, - "zendmandatory": 1 - }, - "speedid": 3044, - "spofcircuits": null, - "spofresultcircuits": null, - "spofresultcomparecircuits": null, - "spofresultprotectioncircuits": null, - "spofresultprotectioncircuits2": null, - "spofresultsubprotectioncircuits": null, - "spofresultsubprotectioncircuits2": null, - "spofresultsubworkercircuits": null, - "spofresultsubworkercircuits2": null, - "spofresultworkercircuits": null, - "spofresultworkercircuits2": null, - "stdornonstd": 0, - "structuretype": "", - "subcircuits": null, - "tested": 0, - "vendor": "JUNIPER", - "vlanid": null, - "vminternalportrelatelist": null, - "vmportrelatelist": null, - "wtoptunnelprotections": null, - "wtoptunnelworkers": null - }, - { - "acquisitiondate": null, - "antennafeeders": null, - "bicableports": null, - "blocked": 0, - "cableports": null, - "calculatedlength": null, - "carriercircuits": null, - "channelreservations": null, - "circuitaliases": null, - "circuitattachments": null, - "circuitcoordinates": null, - "circuitcounts": null, - "circuitdomains": null, - "circuitmanagementsystems": null, - "circuitmergingrelatedcircuits": null, - "circuitprotectionprotections": null, - "circuitprotectionworkers": null, - "circuitrequestor": "", - "circuittypeid": 0, - "coscircuits": null, - "createdate": "2020-08-24T13:25:00", - "createuser": null, - "createuserid": 8338, - "csc": null, - "cscid": null, - "customer": null, - "customerid": 57744, - "ddfodfports": null, - "ddfodfpositionfromto": null, - "ddfodfpositions": null, - "deliverdate": "2020-08-24T13:25:01", - "designref": "", - "dsls": null, - "errors": null, - "extrainfo": "", - "extrainfoimportant": 0, - "fitstatus": "", - "floorplanlines": null, - "frameatms": null, - "framessizerequired": null, - "framing": "", - "geocircuitspiped": null, - "geodataisineditmode": null, - "geoworkersandprotections": null, - "haserrors": false, - "id": 679324, - "internalporta": null, - "internalportaid": null, - "internalportb": null, - "internalportbid": null, - "internalports": [], - "inventorystatusid": 3, - "ipranges": null, - "isprotected": 0, - "linecoding": "", - "linkcosts": null, - "lossmeasured": null, - "measuredlength": null, - "mergecircuitmergingrelatedcircuits": null, - "migrationdate": "2021-01-18T15:18:16", - "mspprotections": null, - "mspworkers": null, - "name": "AMSTERDAM-LONDON-100GBE-001(ETH)", - "nodea": null, - "nodeaid": 129528, - "nodeb": null, - "nodebid": 129079, - "oldcircuits": null, - "oldname": "", - "olocircuits": null, - "order": null, - "orderid": null, - "outofservicedate": null, - "plmidate": null, - "ploosdate": null, - "porta": null, - "portaid": 6424553, - "portb": null, - "portbid": 6419340, - "portchannelrelations": null, - "portreservations": null, - "ports": [ - { - "adminstatus": 1, - "alarms": null, - "bicablecircuitid": null, - "biterrors": null, - "blocked": 0, - "cablecircuit": null, - "cablecircuitid": 672194, - "cablecircuitpathdetails": null, - "calculatedsequencenumber": null, - "card": null, - "cardid": 2233861, - "childports": null, - "circuit": null, - "circuitalist": null, - "circuitblist": null, - "circuitid": 679324, - "comments": "PHY INFRASTRUCTURE BACKBONE P_AE8 SRF0000001 | CORIANT G30 LINK", - "connectedto": 0, - "directionid": 0, - "domain": null, - "domainid": 2686, - "errors": null, - "fullhalfduplex": "", - "fysicalidconnecteddbase": null, - "haserrors": false, - "id": 6419340, - "imsconnecteddbase": "", - "ipaddresses": null, - "iprelates": null, - "linestatus": 1, - "macaddress": "AC:4B:C8:99:67:C4", - "monperf": "", - "mpdate": null, - "mtu": 9192, - "name": "ET-4/0/2", - "node": { - "acpowerconsumption": null, + "id": 679324, + "internalporta": null, + "internalportaid": null, + "internalportb": null, + "internalportbid": null, + "internalports": [], + "inventorystatusid": 3, + "ipranges": null, + "isprotected": 0, + "linecoding": "", + "linkcosts": null, + "lossmeasured": null, + "measuredlength": null, + "mergecircuitmergingrelatedcircuits": null, + "migrationdate": "2021-01-18T15:18:16", + "mspprotections": null, + "mspworkers": null, + "name": "AMSTERDAM-LONDON-100GBE-001(ETH)", + "nodea": null, + "nodeaid": 129528, + "nodeb": null, + "nodebid": 129079, + "oldcircuits": null, + "oldname": "", + "olocircuits": null, + "order": null, + "orderid": null, + "outofservicedate": null, + "plmidate": null, + "ploosdate": null, + "porta": null, + "portaid": 6424553, + "portb": null, + "portbid": 6419340, + "portchannelrelations": null, + "portreservations": null, + "ports": [ + { + "adminstatus": 1, "alarms": null, - "angle": null, - "batterybackuphoursordered": null, - "bridgedomains": null, - "builddate": "2020-02-12T09:06:10", - "cards": null, - "configuration": "", - "createuser": null, - "createuserid": 6727, - "customer": null, - "customerid": 57640, - "dcpowerconsumption": null, - "directionangle": null, + "bicablecircuitid": null, + "biterrors": null, + "blocked": 0, + "cablecircuit": null, + "cablecircuitid": 672194, + "cablecircuitpathdetails": null, + "calculatedsequencenumber": null, + "card": null, + "cardid": 2233861, + "childports": null, + "circuit": null, + "circuitalist": null, + "circuitblist": null, + "circuitid": 679324, + "comments": "PHY INFRASTRUCTURE BACKBONE P_AE8 SRF0000001 | CORIANT G30 LINK", + "connectedto": 0, + "directionid": 0, "domain": null, "domainid": 2686, - "equipmentdefinition": null, - "equipmentdefinitionid": 6959, "errors": null, - "extrainfo": "", - "extrainfoimportant": 0, - "fuseconsumption": null, - "hardwarebuildnumber": null, - "hardwarerevision": "REV 01", + "fullhalfduplex": "", + "fysicalidconnecteddbase": null, "haserrors": false, - "heatemission": null, - "heightinrack": null, - "id": 129079, - "inservicedate": "2020-02-20T20:16:36", - "internalports": null, - "inventorystatusid": 3, - "ipaddress": "", + "id": 6419340, + "imsconnecteddbase": "", + "ipaddresses": null, "iprelates": null, - "leftinrack": 0, - "managementsystem": null, - "managementsystemid": 2356, - "mplsprot": "", - "name": "MX1.LON.UK", - "networkaddress": "", - "networkmapnodeobject": null, - "networkrole": "", - "nodealiases": null, - "nodeattachments": null, - "nodecounts": null, - "order": null, - "orderid": null, - "outofservicedate": null, - "parentnode": null, - "parentnodeid": null, - "plmidate": null, - "ploosdate": null, - "ports": [], - "powerconsume": 0, - "rack": null, - "rackframe": null, - "rackframeid": null, - "rackid": 113261, - "rackside": null, - "range": null, - "ratebatterybackup": null, - "ratedieselgeneratorbackup": null, - "ratevolume": null, - "reconcilenodes": null, - "relatedorders": null, - "requestor": "", - "ring": null, - "ringid": 4230, - "rowversion": "2020-12-10T19:48:41", - "sectors": null, - "serialnumber": "JN11FD747AFA", - "servicecontract": "", - "shelves": null, - "shouldnotberatedacpower": null, - "shouldnotberateddcpower": null, - "shouldnotberateddiesel": null, - "shouldnotberatedvolume": null, + "linestatus": 1, + "macaddress": "AC:4B:C8:99:67:C4", + "monperf": "", + "mpdate": null, + "mtu": 9192, + "name": "ET-4/0/2", + "node": { + "acpowerconsumption": null, + "alarms": null, + "angle": null, + "batterybackuphoursordered": null, + "bridgedomains": null, + "builddate": "2020-02-12T09:06:10", + "cards": null, + "configuration": "", + "createuser": null, + "createuserid": 6727, + "customer": null, + "customerid": 57640, + "dcpowerconsumption": null, + "directionangle": null, + "domain": null, + "domainid": 2686, + "equipmentdefinition": null, + "equipmentdefinitionid": 6959, + "errors": null, + "extrainfo": "", + "extrainfoimportant": 0, + "fuseconsumption": null, + "hardwarebuildnumber": null, + "hardwarerevision": "REV 01", + "haserrors": false, + "heatemission": null, + "heightinrack": null, + "id": 129079, + "inservicedate": "2020-02-20T20:16:36", + "internalports": null, + "inventorystatusid": 3, + "ipaddress": "", + "iprelates": null, + "leftinrack": 0, + "managementsystem": null, + "managementsystemid": 2356, + "mplsprot": "", + "name": "MX1.LON.UK", + "networkaddress": "", + "networkmapnodeobject": null, + "networkrole": "", + "nodealiases": null, + "nodeattachments": null, + "nodecounts": null, + "order": null, + "orderid": null, + "outofservicedate": null, + "parentnode": null, + "parentnodeid": null, + "plmidate": null, + "ploosdate": null, + "ports": [], + "powerconsume": 0, + "rack": null, + "rackframe": null, + "rackframeid": null, + "rackid": 113261, + "rackside": null, + "range": null, + "ratebatterybackup": null, + "ratedieselgeneratorbackup": null, + "ratevolume": null, + "reconcilenodes": null, + "relatedorders": null, + "requestor": "", + "ring": null, + "ringid": 4230, + "rowversion": "2020-12-10T19:48:41", + "sectors": null, + "serialnumber": "JN11FD747AFA", + "servicecontract": "", + "shelves": null, + "shouldnotberatedacpower": null, + "shouldnotberateddcpower": null, + "shouldnotberateddiesel": null, + "shouldnotberatedvolume": null, + "site": null, + "siteid": 445244, + "sla": "", + "softwareversion": "18.4R3-S4.2", + "stockitem": null, + "stockitemid": null, + "subnodelist": null, + "systemaccountnoderelations": null, + "ups": null, + "upsinfo": "", + "variant": "", + "vminternalportrelatelist": null, + "vmportrelatelist": null + }, + "nodeid": 129079, + "odfddfdetail": null, + "parentport": null, + "parentportid": null, + "porttemplate": null, + "porttemplateid": 22102, + "projectnumber": "", + "projectstatus": 1, + "protocol": "", + "rc": "", + "reconcilecircuitports": null, + "reservedby": "", + "reserveddate": null, + "reservednumber": "", + "rowversion": "2021-01-14T08:32:01", + "sequencenumber": 4, + "shelf": null, + "shelfid": 185827, + "shut": "", "site": null, "siteid": 445244, - "sla": "", - "softwareversion": "18.4R3-S4.2", - "stockitem": null, - "stockitemid": null, - "subnodelist": null, - "systemaccountnoderelations": null, - "ups": null, - "upsinfo": "", - "variant": "", - "vminternalportrelatelist": null, + "softwareport": "", + "status": "ACTIVE", + "subnet": "", + "tobeceasedrelatedportid": null, + "traffics": null, + "txrx": null, "vmportrelatelist": null }, - "nodeid": 129079, - "odfddfdetail": null, - "parentport": null, - "parentportid": null, - "porttemplate": null, - "porttemplateid": 22102, - "projectnumber": "", - "projectstatus": 1, - "protocol": "", - "rc": "", - "reconcilecircuitports": null, - "reservedby": "", - "reserveddate": null, - "reservednumber": "", - "rowversion": "2021-01-14T08:32:01", - "sequencenumber": 4, - "shelf": null, - "shelfid": 185827, - "shut": "", - "site": null, - "siteid": 445244, - "softwareport": "", - "status": "ACTIVE", - "subnet": "", - "tobeceasedrelatedportid": null, - "traffics": null, - "txrx": null, - "vmportrelatelist": null - }, - { - "adminstatus": 0, - "alarms": null, - "bicablecircuitid": null, - "biterrors": null, - "blocked": 0, - "cablecircuit": null, - "cablecircuitid": 672194, - "cablecircuitpathdetails": null, - "calculatedsequencenumber": null, - "card": null, - "cardid": 2238120, - "childports": null, - "circuit": null, - "circuitalist": null, - "circuitblist": null, - "circuitid": 679324, - "comments": "", - "connectedto": 0, - "directionid": 0, - "domain": null, - "domainid": null, - "errors": null, - "fullhalfduplex": "", - "fysicalidconnecteddbase": null, - "haserrors": false, - "id": 6423111, - "imsconnecteddbase": "", - "ipaddresses": null, - "iprelates": null, - "linestatus": 0, - "macaddress": "", - "monperf": "", - "mpdate": null, - "mtu": null, - "name": "1/1/3", - "node": { - "acpowerconsumption": null, + { + "adminstatus": 0, "alarms": null, - "angle": null, - "batterybackuphoursordered": null, - "bridgedomains": null, - "builddate": "2020-02-20T17:14:36", - "cards": null, - "configuration": "", - "createuser": null, - "createuserid": 8417, - "customer": null, - "customerid": 57640, - "dcpowerconsumption": null, - "directionangle": null, + "bicablecircuitid": null, + "biterrors": null, + "blocked": 0, + "cablecircuit": null, + "cablecircuitid": 672194, + "cablecircuitpathdetails": null, + "calculatedsequencenumber": null, + "card": null, + "cardid": 2238120, + "childports": null, + "circuit": null, + "circuitalist": null, + "circuitblist": null, + "circuitid": 679324, + "comments": "", + "connectedto": 0, + "directionid": 0, "domain": null, - "domainid": 2706, - "equipmentdefinition": null, - "equipmentdefinitionid": 7031, + "domainid": null, "errors": null, - "extrainfo": "", - "extrainfoimportant": 0, - "fuseconsumption": null, - "hardwarebuildnumber": null, - "hardwarerevision": "", + "fullhalfduplex": "", + "fysicalidconnecteddbase": null, "haserrors": false, - "heatemission": null, - "heightinrack": 2200, - "id": 129367, - "inservicedate": "2020-02-20T19:20:54", - "internalports": null, - "inventorystatusid": 3, - "ipaddress": "", + "id": 6423111, + "imsconnecteddbase": "", + "ipaddresses": null, "iprelates": null, - "leftinrack": 250, - "managementsystem": null, - "managementsystemid": 2362, - "mplsprot": "", - "name": "GRV1.LON.UK.GEANT.NET", - "networkaddress": "", - "networkmapnodeobject": null, - "networkrole": "", - "nodealiases": null, - "nodeattachments": null, - "nodecounts": null, - "order": null, - "orderid": null, - "outofservicedate": null, - "parentnode": null, - "parentnodeid": null, - "plmidate": null, - "ploosdate": null, - "ports": [], - "powerconsume": 0, - "rack": null, - "rackframe": null, - "rackframeid": null, - "rackid": 113261, - "rackside": 0, - "range": null, - "ratebatterybackup": null, - "ratedieselgeneratorbackup": null, - "ratevolume": null, - "reconcilenodes": null, - "relatedorders": null, - "requestor": "", - "ring": null, - "ringid": 4230, - "rowversion": "2020-06-01T14:42:36", - "sectors": null, - "serialnumber": "7Q3370024", - "servicecontract": "", - "shelves": null, - "shouldnotberatedacpower": null, - "shouldnotberateddcpower": null, - "shouldnotberateddiesel": null, - "shouldnotberatedvolume": null, + "linestatus": 0, + "macaddress": "", + "monperf": "", + "mpdate": null, + "mtu": null, + "name": "1/1/3", + "node": { + "acpowerconsumption": null, + "alarms": null, + "angle": null, + "batterybackuphoursordered": null, + "bridgedomains": null, + "builddate": "2020-02-20T17:14:36", + "cards": null, + "configuration": "", + "createuser": null, + "createuserid": 8417, + "customer": null, + "customerid": 57640, + "dcpowerconsumption": null, + "directionangle": null, + "domain": null, + "domainid": 2706, + "equipmentdefinition": null, + "equipmentdefinitionid": 7031, + "errors": null, + "extrainfo": "", + "extrainfoimportant": 0, + "fuseconsumption": null, + "hardwarebuildnumber": null, + "hardwarerevision": "", + "haserrors": false, + "heatemission": null, + "heightinrack": 2200, + "id": 129367, + "inservicedate": "2020-02-20T19:20:54", + "internalports": null, + "inventorystatusid": 3, + "ipaddress": "", + "iprelates": null, + "leftinrack": 250, + "managementsystem": null, + "managementsystemid": 2362, + "mplsprot": "", + "name": "GRV1.LON.UK.GEANT.NET", + "networkaddress": "", + "networkmapnodeobject": null, + "networkrole": "", + "nodealiases": null, + "nodeattachments": null, + "nodecounts": null, + "order": null, + "orderid": null, + "outofservicedate": null, + "parentnode": null, + "parentnodeid": null, + "plmidate": null, + "ploosdate": null, + "ports": [], + "powerconsume": 0, + "rack": null, + "rackframe": null, + "rackframeid": null, + "rackid": 113261, + "rackside": 0, + "range": null, + "ratebatterybackup": null, + "ratedieselgeneratorbackup": null, + "ratevolume": null, + "reconcilenodes": null, + "relatedorders": null, + "requestor": "", + "ring": null, + "ringid": 4230, + "rowversion": "2020-06-01T14:42:36", + "sectors": null, + "serialnumber": "7Q3370024", + "servicecontract": "", + "shelves": null, + "shouldnotberatedacpower": null, + "shouldnotberateddcpower": null, + "shouldnotberateddiesel": null, + "shouldnotberatedvolume": null, + "site": null, + "siteid": 445244, + "sla": "", + "softwareversion": "", + "stockitem": null, + "stockitemid": null, + "subnodelist": null, + "systemaccountnoderelations": null, + "ups": null, + "upsinfo": "", + "variant": "", + "vminternalportrelatelist": null, + "vmportrelatelist": null + }, + "nodeid": 129367, + "odfddfdetail": null, + "parentport": null, + "parentportid": null, + "porttemplate": null, + "porttemplateid": 23163, + "projectnumber": "", + "projectstatus": 1, + "protocol": "", + "rc": "", + "reconcilecircuitports": null, + "reservedby": "", + "reserveddate": null, + "reservednumber": "", + "rowversion": "2021-01-14T08:32:01", + "sequencenumber": 3, + "shelf": null, + "shelfid": null, + "shut": "", "site": null, "siteid": 445244, - "sla": "", - "softwareversion": "", - "stockitem": null, - "stockitemid": null, - "subnodelist": null, - "systemaccountnoderelations": null, - "ups": null, - "upsinfo": "", - "variant": "", - "vminternalportrelatelist": null, + "softwareport": "", + "status": "ACTIVE", + "subnet": "", + "tobeceasedrelatedportid": null, + "traffics": null, + "txrx": null, "vmportrelatelist": null }, - "nodeid": 129367, - "odfddfdetail": null, - "parentport": null, - "parentportid": null, - "porttemplate": null, - "porttemplateid": 23163, - "projectnumber": "", - "projectstatus": 1, - "protocol": "", - "rc": "", - "reconcilecircuitports": null, - "reservedby": "", - "reserveddate": null, - "reservednumber": "", - "rowversion": "2021-01-14T08:32:01", - "sequencenumber": 3, - "shelf": null, - "shelfid": null, - "shut": "", - "site": null, - "siteid": 445244, - "softwareport": "", - "status": "ACTIVE", - "subnet": "", - "tobeceasedrelatedportid": null, - "traffics": null, - "txrx": null, - "vmportrelatelist": null - }, - { - "adminstatus": 0, - "alarms": null, - "bicablecircuitid": null, - "biterrors": null, - "blocked": 0, - "cablecircuit": null, - "cablecircuitid": 672193, - "cablecircuitpathdetails": null, - "calculatedsequencenumber": null, - "card": null, - "cardid": 2238035, - "childports": null, - "circuit": null, - "circuitalist": null, - "circuitblist": null, - "circuitid": 679324, - "comments": "", - "connectedto": 0, - "directionid": 0, - "domain": null, - "domainid": null, - "errors": null, - "fullhalfduplex": "", - "fysicalidconnecteddbase": null, - "haserrors": false, - "id": 6423107, - "imsconnecteddbase": "", - "ipaddresses": null, - "iprelates": null, - "linestatus": 0, - "macaddress": "", - "monperf": "", - "mpdate": null, - "mtu": null, - "name": "1/1/3", - "node": { - "acpowerconsumption": null, + { + "adminstatus": 0, "alarms": null, - "angle": null, - "batterybackuphoursordered": null, - "bridgedomains": null, - "builddate": "2020-02-20T17:14:33", - "cards": null, - "configuration": "", - "createuser": null, - "createuserid": 8417, - "customer": null, - "customerid": 57640, - "dcpowerconsumption": null, - "directionangle": null, + "bicablecircuitid": null, + "biterrors": null, + "blocked": 0, + "cablecircuit": null, + "cablecircuitid": 672193, + "cablecircuitpathdetails": null, + "calculatedsequencenumber": null, + "card": null, + "cardid": 2238035, + "childports": null, + "circuit": null, + "circuitalist": null, + "circuitblist": null, + "circuitid": 679324, + "comments": "", + "connectedto": 0, + "directionid": 0, "domain": null, - "domainid": 2706, - "equipmentdefinition": null, - "equipmentdefinitionid": 7031, + "domainid": null, "errors": null, - "extrainfo": "", - "extrainfoimportant": 0, - "fuseconsumption": null, - "hardwarebuildnumber": null, - "hardwarerevision": "", + "fullhalfduplex": "", + "fysicalidconnecteddbase": null, "haserrors": false, - "heatemission": null, - "heightinrack": null, - "id": 129366, - "inservicedate": "2020-02-20T19:20:38", - "internalports": null, - "inventorystatusid": 3, - "ipaddress": "", + "id": 6423107, + "imsconnecteddbase": "", + "ipaddresses": null, "iprelates": null, - "leftinrack": 0, - "managementsystem": null, - "managementsystemid": 2362, - "mplsprot": "", - "name": "GRV1.AMS.NL.GEANT.NET", - "networkaddress": "", - "networkmapnodeobject": null, - "networkrole": "", - "nodealiases": null, - "nodeattachments": null, - "nodecounts": null, - "order": null, - "orderid": null, - "outofservicedate": null, - "parentnode": null, - "parentnodeid": null, - "plmidate": null, - "ploosdate": null, - "ports": [], - "powerconsume": 0, - "rack": null, - "rackframe": null, - "rackframeid": null, - "rackid": null, - "rackside": null, - "range": null, - "ratebatterybackup": null, - "ratedieselgeneratorbackup": null, - "ratevolume": null, - "reconcilenodes": null, - "relatedorders": null, - "requestor": "", - "ring": null, - "ringid": 4230, - "rowversion": "2020-04-21T18:34:59", - "sectors": null, - "serialnumber": "7Q3340110", - "servicecontract": "", - "shelves": null, - "shouldnotberatedacpower": null, - "shouldnotberateddcpower": null, - "shouldnotberateddiesel": null, - "shouldnotberatedvolume": null, + "linestatus": 0, + "macaddress": "", + "monperf": "", + "mpdate": null, + "mtu": null, + "name": "1/1/3", + "node": { + "acpowerconsumption": null, + "alarms": null, + "angle": null, + "batterybackuphoursordered": null, + "bridgedomains": null, + "builddate": "2020-02-20T17:14:33", + "cards": null, + "configuration": "", + "createuser": null, + "createuserid": 8417, + "customer": null, + "customerid": 57640, + "dcpowerconsumption": null, + "directionangle": null, + "domain": null, + "domainid": 2706, + "equipmentdefinition": null, + "equipmentdefinitionid": 7031, + "errors": null, + "extrainfo": "", + "extrainfoimportant": 0, + "fuseconsumption": null, + "hardwarebuildnumber": null, + "hardwarerevision": "", + "haserrors": false, + "heatemission": null, + "heightinrack": null, + "id": 129366, + "inservicedate": "2020-02-20T19:20:38", + "internalports": null, + "inventorystatusid": 3, + "ipaddress": "", + "iprelates": null, + "leftinrack": 0, + "managementsystem": null, + "managementsystemid": 2362, + "mplsprot": "", + "name": "GRV1.AMS.NL.GEANT.NET", + "networkaddress": "", + "networkmapnodeobject": null, + "networkrole": "", + "nodealiases": null, + "nodeattachments": null, + "nodecounts": null, + "order": null, + "orderid": null, + "outofservicedate": null, + "parentnode": null, + "parentnodeid": null, + "plmidate": null, + "ploosdate": null, + "ports": [], + "powerconsume": 0, + "rack": null, + "rackframe": null, + "rackframeid": null, + "rackid": null, + "rackside": null, + "range": null, + "ratebatterybackup": null, + "ratedieselgeneratorbackup": null, + "ratevolume": null, + "reconcilenodes": null, + "relatedorders": null, + "requestor": "", + "ring": null, + "ringid": 4230, + "rowversion": "2020-04-21T18:34:59", + "sectors": null, + "serialnumber": "7Q3340110", + "servicecontract": "", + "shelves": null, + "shouldnotberatedacpower": null, + "shouldnotberateddcpower": null, + "shouldnotberateddiesel": null, + "shouldnotberatedvolume": null, + "site": null, + "siteid": 445253, + "sla": "", + "softwareversion": "", + "stockitem": null, + "stockitemid": null, + "subnodelist": null, + "systemaccountnoderelations": null, + "ups": null, + "upsinfo": "", + "variant": "", + "vminternalportrelatelist": null, + "vmportrelatelist": null + }, + "nodeid": 129366, + "odfddfdetail": null, + "parentport": null, + "parentportid": null, + "porttemplate": null, + "porttemplateid": 23163, + "projectnumber": "", + "projectstatus": 1, + "protocol": "", + "rc": "", + "reconcilecircuitports": null, + "reservedby": "", + "reserveddate": null, + "reservednumber": "", + "rowversion": "2021-01-14T08:32:01", + "sequencenumber": 2, + "shelf": null, + "shelfid": null, + "shut": "", "site": null, "siteid": 445253, - "sla": "", - "softwareversion": "", - "stockitem": null, - "stockitemid": null, - "subnodelist": null, - "systemaccountnoderelations": null, - "ups": null, - "upsinfo": "", - "variant": "", - "vminternalportrelatelist": null, + "softwareport": "", + "status": "ACTIVE", + "subnet": "", + "tobeceasedrelatedportid": null, + "traffics": null, + "txrx": null, "vmportrelatelist": null - }, - "nodeid": 129366, - "odfddfdetail": null, - "parentport": null, - "parentportid": null, - "porttemplate": null, - "porttemplateid": 23163, + } + ], + "product": null, + "productid": 3677, + "projectnumber": "", + "projectstatus": null, + "protectiontype": "S-A", + "protectiontypec": "", + "prottypea": "", + "prottypez": "", + "pwcircuits": null, + "pwmaincircuits": null, + "reconcilecircuits": null, + "relatedorders": null, + "ringsections": null, + "rowversion": "2021-01-18T15:18:18", + "rtdcontract": "", + "rtdmaincalc": "", + "rtdmainmeasured": "", + "rtdsparecalc": "", + "rtdsparemeasured": "", + "sellingunit": "", + "sequencenumber": "", + "servicecircuits": null, + "serviceparts": "JUNIPER", + "sitea": null, + "siteaid": 445253, + "siteb": null, + "sitebid": 445244, + "sla": null, + "slacks": null, + "slaid": null, + "speed": { + "aendmandatory": 1, + "carrierchannelaliases": null, + "carrierlayerrules": null, + "channelview": "NORMAL", + "circuitnametemplate": "", + "circuits": [], + "circuittypeoption": 0, + "defaultcustomer": null, + "defaultcustomerid": 57744, + "defaultproduct": null, + "defaultproductid": 3677, + "defaultserviceparts": "", + "defaultvendor": "", + "drawsubcircuit": 0, + "e2echeck": 0, + "errors": null, + "extrainfo": "", + "graphicalx": null, + "graphicaly": null, + "haserrors": false, + "id": 3065, + "isgeo": 0, + "kbits": null, + "layouttype": "", + "maxgraphicallayerdepth": 2, + "multipoint": 0, + "name": "100GBE", + "oloproducts": null, + "olospeedallowed": "", + "optical": 0, + "products": null, + "rowversion": "2020-02-11T16:51:39", + "showcircuitaddnewmenu": 1, + "showsubcircuitmenu": 1, + "showvlanid": 0, + "speedcolor": 16751052, + "speedtype": "S", + "subchannelaliases": null, + "subchannelfrom": 0, + "subchannelto": 4095, + "subchanneltype": "", + "subcircuitlayerrules": null, + "test": 0, + "usesubcapacity": 0, + "wizardusable": 0, + "zendmandatory": 1 + }, + "speedid": 3065, + "spofcircuits": null, + "spofresultcircuits": null, + "spofresultcomparecircuits": null, + "spofresultprotectioncircuits": null, + "spofresultprotectioncircuits2": null, + "spofresultsubprotectioncircuits": null, + "spofresultsubprotectioncircuits2": null, + "spofresultsubworkercircuits": null, + "spofresultsubworkercircuits2": null, + "spofresultworkercircuits": null, + "spofresultworkercircuits2": null, + "stdornonstd": 0, + "structuretype": "", + "subcircuits": null, + "tested": 0, + "vendor": "JUNIPER", + "vlanid": null, + "vminternalportrelatelist": null, + "vmportrelatelist": null, + "wtoptunnelprotections": null, + "wtoptunnelworkers": null + } + ], + [ + { + "circuit": { + "acquisitiondate": null, + "antennafeeders": null, + "bicableports": null, + "blocked": 0, + "cableports": null, + "calculatedlength": null, + "carriercircuits": null, + "channelreservations": null, + "circuitaliases": null, + "circuitattachments": null, + "circuitcoordinates": null, + "circuitcounts": null, + "circuitdomains": null, + "circuitmanagementsystems": null, + "circuitmergingrelatedcircuits": null, + "circuitprotectionprotections": null, + "circuitprotectionworkers": null, + "circuitrequestor": "", + "circuittypeid": 0, + "coscircuits": null, + "createdate": "2020-12-31T15:32:04", + "createuser": null, + "createuserid": 8338, + "csc": null, + "cscid": null, + "customer": null, + "customerid": 57640, + "ddfodfports": null, + "ddfodfpositionfromto": null, + "ddfodfpositions": null, + "deliverdate": "2020-12-31T15:32:05", + "designref": "", + "dsls": null, + "errors": null, + "extrainfo": "", + "extrainfoimportant": 0, + "fitstatus": "", + "floorplanlines": null, + "frameatms": null, + "framessizerequired": null, + "framing": "", + "geocircuitspiped": null, + "geodataisineditmode": null, + "geoworkersandprotections": null, + "haserrors": false, + "id": 702560, + "internalporta": null, + "internalportaid": null, + "internalportb": null, + "internalportbid": null, + "internalports": null, + "inventorystatusid": 3, + "ipranges": null, + "isprotected": 0, + "linecoding": "", + "linkcosts": null, + "lossmeasured": null, + "measuredlength": null, + "mergecircuitmergingrelatedcircuits": null, + "migrationdate": "2021-02-06T15:48:12", + "mspprotections": null, + "mspworkers": null, + "name": "VMPORT Circuit 1", + "nodea": null, + "nodeaid": null, + "nodeb": null, + "nodebid": 129616, + "oldcircuits": null, + "oldname": "", + "olocircuits": null, + "order": null, + "orderid": null, + "outofservicedate": null, + "plmidate": null, + "ploosdate": null, + "porta": null, + "portaid": null, + "portb": null, + "portbid": 6430661, + "portchannelrelations": null, + "portreservations": null, + "ports": null, + "product": null, + "productid": 3800, "projectnumber": "", - "projectstatus": 1, - "protocol": "", - "rc": "", - "reconcilecircuitports": null, - "reservedby": "", - "reserveddate": null, - "reservednumber": "", - "rowversion": "2021-01-14T08:32:01", - "sequencenumber": 2, - "shelf": null, - "shelfid": null, - "shut": "", - "site": null, - "siteid": 445253, - "softwareport": "", - "status": "ACTIVE", - "subnet": "", - "tobeceasedrelatedportid": null, - "traffics": null, - "txrx": null, - "vmportrelatelist": null - } - ], - "product": null, - "productid": 3677, - "projectnumber": "", - "projectstatus": null, - "protectiontype": "S-A", - "protectiontypec": "", - "prottypea": "", - "prottypez": "", - "pwcircuits": null, - "pwmaincircuits": null, - "reconcilecircuits": null, - "relatedorders": null, - "ringsections": null, - "rowversion": "2021-01-18T15:18:18", - "rtdcontract": "", - "rtdmaincalc": "", - "rtdmainmeasured": "", - "rtdsparecalc": "", - "rtdsparemeasured": "", - "sellingunit": "", - "sequencenumber": "", - "servicecircuits": null, - "serviceparts": "JUNIPER", - "sitea": null, - "siteaid": 445253, - "siteb": null, - "sitebid": 445244, - "sla": null, - "slacks": null, - "slaid": null, - "speed": { - "aendmandatory": 1, - "carrierchannelaliases": null, - "carrierlayerrules": null, - "channelview": "NORMAL", - "circuitnametemplate": "", - "circuits": [], - "circuittypeoption": 0, - "defaultcustomer": null, - "defaultcustomerid": 57744, - "defaultproduct": null, - "defaultproductid": 3677, - "defaultserviceparts": "", - "defaultvendor": "", - "drawsubcircuit": 0, - "e2echeck": 0, + "projectstatus": null, + "protectiontype": "", + "protectiontypec": "", + "prottypea": "", + "prottypez": "", + "pwcircuits": null, + "pwmaincircuits": null, + "reconcilecircuits": null, + "relatedorders": null, + "ringsections": null, + "rowversion": "2021-03-07T20:55:48", + "rtdcontract": "", + "rtdmaincalc": "", + "rtdmainmeasured": "", + "rtdsparecalc": "", + "rtdsparemeasured": "", + "sellingunit": "", + "sequencenumber": "", + "servicecircuits": null, + "serviceparts": "JUNIPER", + "sitea": null, + "siteaid": 445244, + "siteb": null, + "sitebid": 445244, + "sla": null, + "slacks": null, + "slaid": null, + "speed": null, + "speedid": 3044, + "spofcircuits": null, + "spofresultcircuits": null, + "spofresultcomparecircuits": null, + "spofresultprotectioncircuits": null, + "spofresultprotectioncircuits2": null, + "spofresultsubprotectioncircuits": null, + "spofresultsubprotectioncircuits2": null, + "spofresultsubworkercircuits": null, + "spofresultsubworkercircuits2": null, + "spofresultworkercircuits": null, + "spofresultworkercircuits2": null, + "stdornonstd": 0, + "structuretype": "", + "subcircuits": null, + "tested": 0, + "vendor": "GEANT", + "vlanid": null, + "vminternalportrelatelist": null, + "vmportrelatelist": [], + "wtoptunnelprotections": null, + "wtoptunnelworkers": null + }, + "circuitid": 702560, "errors": null, - "extrainfo": "", - "graphicalx": null, - "graphicaly": null, "haserrors": false, - "id": 3065, - "isgeo": 0, - "kbits": null, - "layouttype": "", - "maxgraphicallayerdepth": 2, - "multipoint": 0, - "name": "100GBE", - "oloproducts": null, - "olospeedallowed": "", - "optical": 0, - "products": null, - "rowversion": "2020-02-11T16:51:39", - "showcircuitaddnewmenu": 1, - "showsubcircuitmenu": 1, - "showvlanid": 0, - "speedcolor": 16751052, - "speedtype": "S", - "subchannelaliases": null, - "subchannelfrom": 0, - "subchannelto": 4095, - "subchanneltype": "", - "subcircuitlayerrules": null, - "test": 0, - "usesubcapacity": 0, - "wizardusable": 0, - "zendmandatory": 1 - }, - "speedid": 3065, - "spofcircuits": null, - "spofresultcircuits": null, - "spofresultcomparecircuits": null, - "spofresultprotectioncircuits": null, - "spofresultprotectioncircuits2": null, - "spofresultsubprotectioncircuits": null, - "spofresultsubprotectioncircuits2": null, - "spofresultsubworkercircuits": null, - "spofresultsubworkercircuits2": null, - "spofresultworkercircuits": null, - "spofresultworkercircuits2": null, - "stdornonstd": 0, - "structuretype": "", - "subcircuits": null, - "tested": 0, - "vendor": "JUNIPER", - "vlanid": null, - "vminternalportrelatelist": null, - "vmportrelatelist": null, - "wtoptunnelprotections": null, - "wtoptunnelworkers": null - } + "id": 172, + "node": null, + "nodeid": 130517, + "port": null, + "portid": 6419453, + "reconcilevmportrelates": null, + "rowversion": "2021-01-14T15:32:51" + } + ], + [] ] diff --git a/test/test_ims_data.py b/test/test_ims_data.py index 5613b4f0..e3297b4f 100644 --- a/test/test_ims_data.py +++ b/test/test_ims_data.py @@ -118,27 +118,29 @@ def test_get_port_id_services(mocker): 'get_filtered_entities', side_effect=[[ {'selection': 'GEANT IP'}, - {'selection': 'GEANT PEERING'} + {'selection': 'GEANT PEERING'}, + {'selection': 'PRODUCT A'} ]] ) - mocker.patch.object( - inventory_provider.db.ims.IMS, - 'get_all_entities', - side_effect=[ + se = [ [ {'id': 57658, 'name': 'ORG A'}, {'id': 57664, 'name': 'ORG B'}, + {'id': 57640, 'name': 'ORG C'}, {'id': 57744, 'name': 'ETH'}, ], [ + {'id': 3800, 'name': 'PRODUCT A'}, {'id': 3804, 'name': 'GEANT IP'}, {'id': 3810, 'name': 'GEANT PEERING'}, {'id': 3677, 'name': 'ETHERNET'}, - ], - d, - [], - [] + ] ] + se.extend(d) + mocker.patch.object( + inventory_provider.db.ims.IMS, + 'get_all_entities', + side_effect=se ) ds = inventory_provider.db.ims.IMS( @@ -196,6 +198,15 @@ def test_get_port_id_services(mocker): 'service_type': 'ETHERNET', 'project': 'ETH', 'port_a_id': 6423111 + }, + { + 'id': 702560, + 'name': 'VMPORT Circuit 1', + 'status': 'operational', + 'circuit_type': 'service', + 'service_type': 'PRODUCT A', + 'project': 'ORG C', + 'port_a_id': 6419453 } ] assert res == predicted -- GitLab