Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

APIs

  1. API to create third party Domain Controller

    Code Block
    languagetext
    titleCreate Third Party SDNC
    collapsetrue
    PUT /external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/{thirdparty-sdnc-id}
    
    {"thirdparty-sdnc-id":"{thirdparty-sdnc-id}",
    "location":"",
    "product-name":""}
    
    


  2. API to create network-resource

    Code Block
    languagetext
    titleNetwork-resource creation
    collapsetrue
    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"
                   }
                ]
             }
          ]
       }
    }
    
    


  3. API to create PNF

    Code Block
    languagetext
    titlePnf creation Request
    collapsetrue
    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"
             }
          ]
       }
    }
    
    


  4. API to create Physical-Link

    Code Block
    languagetext
    titlePhysical-link creation
    collapsetrue
    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"
                   }
                ]
             }
          ]
       }
    }


  5. API to create logical-link discovered from topology

    Code Block
    languagetext
    titleLogical-link creation
    collapsetrue
    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"
                   }
                ]
             }
          ]
       }
    }