...
Table of Contents |
---|
APIs
API to create third party Domain Controller
Code Block language text title Create Third Party SDNC collapse true PUT /external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/{thirdparty-sdnc-id} {"thirdparty-sdnc-id":"{thirdparty-sdnc-id}", "location":"", "product-name":""}
API to create network-resource
Code Block language text title Network-resource creation collapse true PUT https://AAI_SERVICE_IP:8443/aai/v16/network/network-resources/network-resource/{network-id} Produces: application/json { "network-id":"{network-id}", "network-type":"OpenroadmTopology", "relationship-list":{ "relationship":[ { "related-to":"esr-thirdparty-sdnc", "relationship-label":"org.onap.relationships.inventory.AppliesTo", "related-link":"/aai/v16/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/NCETDomain51", "relationship-data":[ { "relationship-key":"esr-thirdparty-sdnc.thirdparty-sdnc-id", "relationship-value":"NCETDomain51" } ] } ] } }
API to create PNF
Code Block language text title Pnf creation Request collapse true PUT https://AAI_SERVICE_IP:8443/aai/v16/network/pnfs/pnf/11.11.11.11 { "pnf-name":"11.11.11.11", "pnf-id":"11.11.11.11", "eqip-type":"ROADM", "in-maint":true, "resource-version":"1542606699578", "operational-status":"up", "relationship-list":{ "relationship":[ { "related-to":"network-resource", "relationship-label":"tosca.relationships.network.LinksTo", "related-link":"/aai/v16/network/network-resources/network-resource/{network-id}", "relationship-data":[ { "relationship-key":"network-resource.network-id", "relationship-value":"network-id" } ] } ] }, "p-interfaces":{ "p-interface":[ { "interface-name":"nodeId-11.11.11.11-ltpId-15", "port-description":"", "network-ref":"up", "interface-type":"", "in-maint":true, "operational-status":"down", "network-interface-type":"UNI", "speed-value":"down", "speed-units":"down" } ] } }
API to create Physical-Link
Code Block language text title Physical-link creation collapse true PUT https://AAI_SERVICE_IP:8443/aai/v16/network/pysical-links/physical-link/{link-name} { "link-name":"{link-name}", "speed-value":"", "speed-units":"", "relationship-list":{ "relationship":[ { "related-to":"p-interface", "relationship-label":" tosca.relationships.network.LinksTo", "related-link":"/aai/v16/network/pnfs/pnf/11.11.11.11/p-interfaces/p-interface/nodeId-11.11.11.11-ltpId-15", "relationship-data":[ { "relationship-key":"pnf.pnf-name", "relationship-value":"11.11.11.11" }, { "relationship-key":"p-interface.interface-name", "relationship-value":" nodeId-11.11.11.11-ltpId-15" } ] }, { "related-to":"p-interface", "relationship-label":" tosca.relationships.network.LinksTo", "related-link":"/aai/v14/network/pnfs/pnf/14.14.14.14/p-interfaces/p-interface/nodeId-14.14.14.14-ltpId-16", "relationship-data":[ { "relationship-key":"pnf.pnf-name", "relationship-value":"14.14.14.14" }, { "relationship-key":"p-interface.interface-name", "relationship-value":" nodeId-14.14.14.14-ltpId-16" } ] } ] } }
API to create logical-link discovered from topology
Code Block language text title Logical-link creation collapse true PUT https://AAI_SERVICE_IP:8443/aai/v16/network/logical-links/logical-link/{link-name} { "link-name":"{link-name}", "link-type":"", "in-maint":"{link-name}", "operational-status":"{link-name}", "speed-value":"", "speed-units":"", "relationship-list":{ "relationship":[ { "related-to":"p-interface", "relationship-label":" tosca.relationships.network.LinksTo", "related-link":"/aai/v16/network/pnfs/pnf/11.11.11.11/p-interfaces/p-interface/nodeId-11.11.11.11-ltpId-15", "relationship-data":[ { "relationship-key":"pnf.pnf-name", "relationship-value":"11.11.11.11" }, { "relationship-key":"p-interface.interface-name", "relationship-value":" nodeId-11.11.11.11-ltpId-15" } ] }, { "related-to":"p-interface", "relationship-label":" tosca.relationships.network.LinksTo", "related-link":"/aai/v14/network/pnfs/pnf/14.14.14.14/p-interfaces/p-interface/nodeId-14.14.14.14-ltpId-16", "relationship-data":[ { "relationship-key":"pnf.pnf-name", "relationship-value":"14.14.14.14" }, { "relationship-key":"p-interface.interface-name", "relationship-value":" nodeId-14.14.14.14-ltpId-16" } ] } ] } }