Versions Compared

Key

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

Table of Contents
maxLevel3

Warning
titleUpdate

In current Network Discovery microservice development (Dublin), southbound REST API sends OpenStack API requests instead of AAI Enricher API requests.

Architecture

Overview

  • Will demonstrate Network Discovery Microservice and Service Decomposition Microservice
  • Relies on supporting Microservices not yet in ONAP, but we can show
    • Standardized API and provide a sense of its extensibility to support discovering of additional components
    • VM attributes from Openstack
    • How this fits into POMBA architecture
    • How this could be leveraged in other use cases

Southbound API

  • The following is the information expected from the southbound interface to network discovery
    • Examples (coming soon)
    • Mocking in SoapUI (soon)

Video

The demo shows a request being sent to POMBA's Network Discovery Context Builder, which makes use of Service Decomposition in order to build a list of resources that comprise the specified service. The context builder then takes advantage of the Network Discovery service to obtain details from the network for each of those resources. The context builder collates the information returned by Network Discovery for each resource before providing the collected data to POMBA's Context Aggregator for inclusion in an audit.

View file
nameONAP_SDNC_Network_Discovery_Demo_2018-09-12.mp4
height400

Captures

Service Decomposition

Network Discovery Context Builder → Service Decomposition

The context builder first needs to determine what resources comprise the service undergoing auditing and so it employs Service Decomposition.

Request
Code Block
languagejs
collapsetrue
http://10.147.112.136:8080/service-decomposition/service/context?serviceInstanceId=c6456519-6acf-4adb-997c-3c363dd4caaf







Service Decomposition → AAI

Service Decomposition needs to send a series of requests to the AAI in order to effectively mine the data source for the service instance's component resources.

Request
Code Block
languagejs
collapsetrue
http://10.147.112.136:80808443/aai/v13/nodes/service-decomposition/service/context?serviceInstanceId=instance/c6456519-6acf-4adb-997c-3c363dd4caaf

Response

collapse
Code Block
languagejs
true

Response

Code Block
languagejs
collapsetrue
{
    "
relationship
service-instance-
list
id": 
{
"c6456519-6acf-4adb-997c-3c363dd4caaf",
    "service-instance-name": "Firewall1",
  
"relationship
  "model-invariant-id": 
[{
"0c5a20de-87ad-442c-9190-f38ab0a6bb7f",
    "model-version-id": "d3d6cf83-d03a-43cc-99ff-206d40bb9a72",
    
"
related
resource-
to
version": "
generic-vnf
1527637758480",
    "relationship-list": {
        "relationship
-data
": [
{

            
"relationship-value": "6700c313-fbb7-4cf9-ac70-0293ec56df68",
{
                "
relationship
related-
key
to": "generic-
vnf.
vnf
-id
"
,
          
}],
      
"related-link": "/aai/v13/network/generic-vnfs/generic-vnf/6700c313-fbb7-4cf9-ac70-0293ec56df68",
                "
related
relationship-
to-property
data": [
                    {
                        "
property
relationship-key": "generic-vnf.vnf-
name
id",
                        "
property
relationship-value": "
PacketGenerator-1"
6700c313-fbb7-4cf9-ac70-0293ec56df68"
                
}]
    }
           
},
     ],
   
{
             "related-to-property": 
"generic-vnf",
[
           
"relationship-data":
 
[{
        
{
      
"relationship-value":
 
"6700c313-fbb7-4cf9-ac70-0293ec56df69",
                 "
relationship
property-key": "generic-vnf.vnf-
id
name"
,
           
}],
             "
related
property-
link
value": "
/aai/v13/network/generic-vnfs/generic-vnf/6700c313-fbb7-4cf9-ac70-0293ec56df69",
PacketGenerator-1"
           
"related-to-property":
 
[{
        }
        
"property-key":
 
"generic-vnf.vnf-name",
       ]
         
"property-value":
 
"PacketGenerator-2"
  },
          
}]
  {
      
}]
     
},
     "
model
related-
version-id
to": "
d3d6cf83-d03a-43cc-99ff-206d40bb9a72",
generic-vnf",
                "
service-instance-id"
related-link": "
c6456519-6acf-4adb-997c-3c363dd4caaf", "resource-version": "1527637758480", "generic-vnfs": [{
/aai/v13/network/generic-vnfs/generic-vnf/8a9ddb25-2e79-449c-a40d-5011bac0da39",
                "
nf
relationship-
role
data": [
"",
         
"service-id":
 
"8ea56b0d-459d-4668-b363-c9567432d8b7",
         
"relationship-list":
 {
      
"relationship":
 
[{
                 "
related
relationship-
to
key": "
service-instance
generic-vnf.vnf-id",
                
"relationship-data":
 
[{
       
"relationship-value": "8a9ddb25-2e79-449c-a40d-5011bac0da39"
                  
"relationship-value": "Demonstration",
  }
                ],
   
"relationship-key":
 
"customer.global-customer-id"
            "related-to-property": [
   
},
                 {
                        "
relationship
property-
value
key": "
vFWCL
generic-vnf.vnf-name",
                        "
relationship
property-
key
value": "
service-subscription.service-type
Firewall-1"
                
},
    }
            
{
    ]
            }
   
"relationship-value":
 
"c6456519-6acf-4adb-997c-3c363dd4caaf",
    ]
    
}
}
Response
Code Block
languagejs
collapsetrue
{
    "relationship-keylist": "service-instance.service-instance-id"{
                }],
"relationship": [{
               "related-linkto": "/aai/v11/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFWCL/service-instances/service-instance/c6456519-6acf-4adb-997c-3c363dd4caafgeneric-vnf",
                "relatedrelationship-to-propertydata": [{
   
                "propertyrelationship-keyvalue": "service-instance.service-instance-name6700c313-fbb7-4cf9-ac70-0293ec56df68",
                    "propertyrelationship-valuekey": "Firewall1"
 generic-vnf.vnf-id"
              }],
             }"related-link": "/aai/v13/network/generic-vnfs/generic-vnf/6700c313-fbb7-4cf9-ac70-0293ec56df68",
            "related-to-property": [{
                "relatedproperty-tokey": "l3-networkgeneric-vnf.vnf-name",
                "relationshipproperty-datavalue": [{"PacketGenerator-1"
            }]
       "relationship-value": "HNP1d77c-1094-41ec-b7f3-94bb30951870" },
        {
            "relationshiprelated-keyto": "l3-network.network-id"generic-vnf",
              "relationship-data": [{
 }],                 "relatedrelationship-linkvalue": "/aai/v13/network/l3-networks/l3-network/HNP1d77c-1094-41ec-b7f3-94bb309518706700c313-fbb7-4cf9-ac70-0293ec56df69",
                "relationship-labelkey": "org.onap.relationships.inventory.Uses",generic-vnf.vnf-id"
            }],
    "related-to-property": [{       "related-link": "/aai/v13/network/generic-vnfs/generic-vnf/6700c313-fbb7-4cf9-ac70-0293ec56df69",
            "propertyrelated-keyto-property": "l3-network.network-name",
   [{
                "property-valuekey": "HNPORTALOAM.OAM"generic-vnf.vnf-name",
                 }]"property-value": "PacketGenerator-2"
            },]
        }]
    {},
    "model-version-id": "d3d6cf83-d03a-43cc-99ff-206d40bb9a72",
    "service-instance-id": "c6456519-6acf-4adb-997c-3c363dd4caaf",
    "relatedresource-toversion": "vserver1527637758480",
       "generic-vnfs": [{
        "relationshipnf-datarole": [{"",
           "service-id": "8ea56b0d-459d-4668-b363-c9567432d8b7",
        "relationship-valuelist": "CloudOwner",
       {
            "relationship-key": "cloud-region.cloud-owner" [{
                 },"related-to": "service-instance",
                "relationship-data": [{
                    "relationship-value": "RegionOneDemonstration",
                    "relationship-key": "cloud-regioncustomer.cloudglobal-regioncustomer-id"
                },
                {
                    "relationship-value": "b49b830686654191bb1e952a74b014advFWCL",
                    "relationship-key": "tenantservice-subscription.tenantservice-idtype"
                },
                {
                    "relationship-value": "25fb07abc6456519-04786acf-465e4adb-a021997c-6384ac2996713c363dd4caaf",
                    "relationship-key": "vserver.vserverservice-instance.service-instance-id"
                }],
                "related-link": "/aai/v13v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/b49b830686654191bb1e952a74b014ad/vservers/vserver/25fb07ab-0478-465e-a021-6384ac299671"business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFWCL/service-instances/service-instance/c6456519-6acf-4adb-997c-3c363dd4caaf",
            },         "related-to-property": [{
   {                 "relatedproperty-tokey": "vserverservice-instance.service-instance-name",
                    "relationshipproperty-datavalue": [{"Firewall1"
                }]
   "relationship-value": "CloudOwner",        },
            "relationship-key": "cloud-region.cloud-owner"{
                 }"related-to": "l3-network",
                {"relationship-data": [{
                    "relationship-value": "RegionOneHNP1d77c-1094-41ec-b7f3-94bb30951870",
                    "relationship-key": "cloudl3-regionnetwork.cloud-regionnetwork-id"
                }],
                {
   "related-link": "/aai/v13/network/l3-networks/l3-network/HNP1d77c-1094-41ec-b7f3-94bb30951870",
                "relationship-valuelabel": "b49b830686654191bb1e952a74b014adorg.onap.relationships.inventory.Uses",
   
                "relationshiprelated-to-keyproperty": "tenant.tenant-id"[{
                },    "property-key": "l3-network.network-name",
           {         "property-value": "HNPORTALOAM.OAM"
          "relationship-value": "25fb07ab-0478-465e-a021-6384ac299672",     }]
            },
  "relationship-key": "vserver.vserver-id"         {
       }],         "related-to": "vserver",
      "related-link": "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/b49b830686654191bb1e952a74b014ad/vservers/vserver/25fb07ab-0478-465e-a021-6384ac299672"         "relationship-data": [{
  }]         },         "vnfrelationship-idvalue": "6700c313-fbb7-4cf9-ac70-0293ec56df68CloudOwner",
        "nf-type": "",            "l3relationship-networkskey": [{"cloud-region.cloud-owner"
            "network-role": "HNPORTALOAM.OAM",   },
         "network-technology": "ovs",      {
      "service-id": "V7611HNP-1222-48f1-8085-94aef0c6ef3d51870",             "networkrelationship-idvalue": "HNP1d77c-1222-41ec-b7f3-94bb30951870RegionOne",
                    "neutronrelationship-network-idkey": "491c7cefcloud-a3f4region.cloud-4990region-883e-b0af397466d0id",
             "is-external-network": false,  },
          "is-bound-to-vpn": false,      {
      "is-provider-network": false,             "networkrelationship-typevalue": "OVS_PROVIDER_VLANb49b830686654191bb1e952a74b014ad",
                    "orchestrationrelationship-statuskey": "active",tenant.tenant-id"
             "network-role-instance": 0,  },
          "resource-version": "1526558298075",     {
       "network-name": "HNPORTALOAM.OAM",            "relationship-value": "is-shared-network": false25fb07ab-0478-465e-a021-6384ac299671",
         }],           "provrelationship-statuskey": "PREPROV",vserver.vserver-id"
            "vnf-type": "vFW-vSINK-service/vPKG 0",  }],
      "orchestration-status": "Created",         "nfrelated-naming-codelink": "",/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/b49b830686654191bb1e952a74b014ad/vservers/vserver/25fb07ab-0478-465e-a021-6384ac299671"
           "in-maint": false, },
          "nf-function": "", {
       "model-version-id": "a5565bf4-d55a-4964-8fbc-6a7674a2e676",        "related-to": "vservers": [{vserver",
                "relationship-listdata": [{
                    "relationship-value": [{"CloudOwner",
                    "relatedrelationship-tokey": "generic-vnf",cloud-region.cloud-owner"
                },
           "relationship-data": [{    {
                    "relationship-value": "8a9ddb25-2e79-449c-a40d-5011bac0da39RegionOne",
   
                    "relationship-key": "genericcloud-vnfregion.vnfcloud-region-id"
                },
      }],          {
          "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/8a9ddb25-2e79-449c-a40d-5011bac0da39          "relationship-value": "b49b830686654191bb1e952a74b014ad",
                    "related-to-property": [{relationship-key": "tenant.tenant-id"
                },
           "property-key": "generic-vnf.vnf-name",    {
                    "propertyrelationship-value": "Firewall-1"25fb07ab-0478-465e-a021-6384ac299672",
                     }]"relationship-key": "vserver.vserver-id"
                }],
                {
     "related-link": "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/b49b830686654191bb1e952a74b014ad/vservers/vserver/25fb07ab-0478-465e-a021-6384ac299672"
            }]
     "related-to": "flavor",  },
        "vnf-id": "6700c313-fbb7-4cf9-ac70-0293ec56df68",
        "relationshipnf-datatype": [{"",
           "l3-networks": [{
            "relationshipnetwork-valuerole": "CloudOwnerHNPORTALOAM.OAM",
            "network-technology": "ovs",
            "relationshipservice-keyid": "cloud-region.cloud-owner"V7611HNP-1222-48f1-8085-94aef0c6ef3d51870",
            "network-id": "HNP1d77c-1222-41ec-b7f3-94bb30951870",
        },    "neutron-network-id": "491c7cef-a3f4-4990-883e-b0af397466d0",
            "is-external-network": false,
 {           "is-bound-to-vpn": false,
            "relationshipis-provider-valuenetwork": "RegionOne"false,
            "network-type": "OVS_PROVIDER_VLAN",
            "relationshiporchestration-keystatus": "cloud-region.cloud-region-id"active",
            "network-role-instance": 0,
             }"resource-version": "1526558298075",
            "network-name": "HNPORTALOAM.OAM",
      {      "is-shared-network": false
        }],
        "relationshipprov-valuestatus": "764efb04-5a46-4806-a766-2bdd24559f39PREPROV",
        "vnf-type": "vFW-vSINK-service/vPKG 0",
             "relationshiporchestration-keystatus": "flavor.flavor-idCreated",
        "nf-naming-code": "",
          }]"in-maint": false,
        "nf-function": "",
          "relatedmodel-version-linkid": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39a5565bf4-d55a-4964-8fbc-6a7674a2e676",
        "vservers": [{
            "relatedrelationship-to-propertylist": [{

                       "property-key"relationship": "flavor.flavor-name",
   [{
                    "propertyrelated-valueto": "m1.medium"generic-vnf",
                    }]
"relationship-data": [{
               },             "relationship-value": "8a9ddb25-2e79-449c-a40d-5011bac0da39",
   {                     "relatedrelationship-tokey": "image",generic-vnf.vnf-id"
                    "relationship-data": [{
   }],
                    "relationshiprelated-valuelink": "CloudOwner",
   /aai/v11/network/generic-vnfs/generic-vnf/8a9ddb25-2e79-449c-a40d-5011bac0da39",
                    "relationshiprelated-to-keyproperty": "cloud-region.cloud-owner"[{
                    },    "property-key": "generic-vnf.vnf-name",
               {           "property-value": "Firewall-1"
                    }]
    "relationship-value": "RegionOne",            },
                "relationship-key": "cloud-region.cloud-region-id"{
                     }"related-to": "flavor",
                    "relationship-data": [{
                        "relationship-value": "42fd42f8-cf81-4f4c-a552-d4b124f83b0bCloudOwner",
                        "relationship-key": "imagecloud-region.imagecloud-idowner"
                    }],
                    {
          "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/42fd42f8-cf81-4f4c-a552-d4b124f83b0b",
                    "relatedrelationship-to-propertyvalue": [{"RegionOne",
                        "propertyrelationship-key": "image.image-name",cloud-region.cloud-region-id"
                    },
      "property-value": "unknown"             {
       }]                 }]
"relationship-value": "764efb04-5a46-4806-a766-2bdd24559f39",
           },             "inrelationship-maintkey": false, "flavor.flavor-id"
             "resource-version": "1528481820321",       }],
                    "vserverrelated-namelink": "Firewall-0",/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39",
                    "provrelated-to-statusproperty": "ACTIVE",
[{
           "vserver-id": "25fb07ab-0478-465e-a021-6384ac299671",             "vserverproperty-name2key": "Firewallflavor.flavor-0name",
                "vserver-selflink": "http://10.12.25.2:8774/v2.1/b49b830686654191bb1e952a74b014ad/servers/25fb07ab-0478-465e-a021-6384ac299671",       "property-value": "m1.medium"
    "is-closed-loop-disabled": false         },       }]
 {             "relationship-list": { },
               "relationship": [{
                    "related-to": "generic-vnfimage",
                    "relationship-data": [{
                        "relationship-value": "8a9ddb25-2e79-449c-a40d-5011bac0da39CloudOwner",
                        "relationship-key": "genericcloud-vnfregion.vnfcloud-idowner"
                    }],,
                    {
       "related-link": "/aai/v11/network/generic-vnfs/generic-vnf/8a9ddb25-2e79-449c-a40d-5011bac0da39",
                    "relatedrelationship-to-propertyvalue": [{"RegionOne",
                        "propertyrelationship-key": "genericcloud-vnfregion.vnfcloud-region-nameid",
                        "property-value": "Firewall-1"},
                    {
}]                 },             "relationship-value": "42fd42f8-cf81-4f4c-a552-d4b124f83b0b",
   {                     "relatedrelationship-tokey": "flavorimage.image-id",
                    "relationship-data": [{}],
                     "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/42fd42f8-cf81-4f4c-a552-d4b124f83b0b",
             "relationship-value       "related-to-property": "CloudOwner",[{
                        "relationshipproperty-key": "cloud-regionimage.cloudimage-ownername",
                    },    "property-value": "unknown"
               {     }]
                   "relationship-value": "RegionOne",}]
            },
            "relationshipin-keymaint": "cloud-region.cloud-region-id"false,
                    }"resource-version": "1528481820321",
            "vserver-name": "Firewall-0",
      {         "prov-status": "ACTIVE",
               "relationshipvserver-valueid": "764efb0425fb07ab-5a460478-4806465e-a766a021-2bdd24559f396384ac299671",
            "vserver-name2": "Firewall-0",
            "relationshipvserver-keyselflink": "flavor.flavor-id"http://10.12.25.2:8774/v2.1/b49b830686654191bb1e952a74b014ad/servers/25fb07ab-0478-465e-a021-6384ac299671",
            "is-closed-loop-disabled": false
        }],
        {
            "relatedrelationship-linklist": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39",
   {
                "related-to-propertyrelationship": [{
                        "propertyrelated-keyto": "flavor.flavorgeneric-namevnf",
                        "propertyrelationship-valuedata": "m1.medium"[{
                    }]    "relationship-value": "8a9ddb25-2e79-449c-a40d-5011bac0da39",
           },             "relationship-key": "generic-vnf.vnf-id"
                    {}],
                    "related-tolink": "image/aai/v11/network/generic-vnfs/generic-vnf/8a9ddb25-2e79-449c-a40d-5011bac0da39",
                    "relationshiprelated-to-dataproperty": [{
                        "relationshipproperty-valuekey": "CloudOwnergeneric-vnf.vnf-name",
                        "relationshipproperty-keyvalue": "cloud-region.cloud-ownerFirewall-1"
                    },]
                },
            {    {
                    "relationshiprelated-valueto": "RegionOneflavor",
 
                      "relationship-keydata": [{
                        "relationship-value": "CloudOwner",
                        "relationship-key": "cloud-region.cloud-region-idowner"
                    },
                    {
                        "relationship-value": "42fd42f8-cf81-4f4c-a552-d4b124f83b0bRegionOne",
                        "relationship-key": "image.imagecloud-region.cloud-region-id"
                    }],
                    {
          "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/42fd42f8-cf81-4f4c-a552-d4b124f83b0b",
                    "relatedrelationship-to-property": [{
                        "property-key": "image.image-namevalue": "764efb04-5a46-4806-a766-2bdd24559f39",
                        "propertyrelationship-valuekey": "unknownflavor.flavor-id"
                    }],
                }]             },"related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39",
                    "inrelated-to-maintproperty": false,
[{
           "resource-version": "1528481820321",             "vserverproperty-namekey": "Firewallflavor.flavor-0name",

           "prov-status": "ACTIVE",             "vserverproperty-idvalue": "25fb07ab-0478-465e-a021-6384ac299672",m1.medium"
             "vserver-name2": "Firewall-0",      }]
      "vserver-selflink": "http://10.12.25.2:8774/v2.1/b49b830686654191bb1e952a74b014ad/servers/25fb07ab-0478-465e-a021-6384ac299672",          },
        "is-closed-loop-disabled": false       {
 }],         "resource-version": "1527638176989",         "modelrelated-customization-idto": "4cc1e555-361f-4d69-ae21-9f371ea9f40cimage",
        "vf-modules": {             "vfrelationship-moduledata": [{
                  "vf-module-name      "relationship-value": "vPacketGen-VNF-1128-3CloudOwner",
                "model-version-id        "relationship-key": "d6d4a002cloud-a584-4640-bdce-a50e9bce552b",region.cloud-owner"
                   "heat-stack-id": "vPacketGen-VNF-1128-3/df34f5d6-ed39-4184-b785-51c37cfa8ac2" },
                "resource-version": "1527641224058",    {
              "model-customization-id": "49c8f521-e5ee-4095-bb87-4090166e49ab",         "relationship-value": "RegionOne",
      "is-base-vf-module": true,                 "vfrelationship-module-idkey": "0f792076cloud-f5b3region.cloud-4251region-9fcc-c4d5afae0eb1id",
                "module-index": 0,   },
             "model-invariant-id": "2a8844a8-f5f7-46dd-a732-472c6972a28e",      {
          "orchestration-status": "active"             }]
     "relationship-value": "42fd42f8-cf81-4f4c-a552-d4b124f83b0b",
  },         "vserver": [{             "vserverrelationship-namekey": "Firewallimage.image-1id",
              "vserver-id": "25fb07ab-0478-465e-a021-6384ac299671",     }],
       "model-invariant-id": "0c5a20de-87ad-442c-9190-f38ab0a6bb7f"
        }],         "modelrelated-invariant-idlink": "99f1fd3f-845c-48f5-a0ba-11fbde6ae557/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/42fd42f8-cf81-4f4c-a552-d4b124f83b0b",
        "vnf-name": "PacketGenerator-1",            "isrelated-closedto-loop-disabledproperty": false [{
          },     {         "nfproperty-rolekey": "image.image-name",
          "service-id": "8ea56b0d-459d-4668-b363-c9567432d8b9",              "relationshipproperty-listvalue": {"unknown"
            "relationship": [{       }]
         "related-to": "service-instance",       }]
         "relationship-data": [{        },
            "relationshipin-valuemaint": "Demonstration",
       false,
            "relationshipresource-keyversion": "customer.global-customer-id"1528481820321",
                }"vserver-name": "Firewall-0",
            "prov-status": "ACTIVE",
  {                     "relationship-value"vserver-id": "vFWCL",
       25fb07ab-0478-465e-a021-6384ac299672",
            "relationshipvserver-keyname2": "service-subscription.service-type"Firewall-0",
            "vserver-selflink": "http://10.12.25.2:8774/v2.1/b49b830686654191bb1e952a74b014ad/servers/25fb07ab-0478-465e-a021-6384ac299672",
   },         "is-closed-loop-disabled": false
      {  }],
        "resource-version": "1527638176989",
        "relationshipmodel-customization-valueid": "c64565194cc1e555-6acf361f-4adb4d69-997cae21-3c363dd4caaf9f371ea9f40c",
        "vf-modules": {
            "relationshipvf-keymodule": "service-instance.service-instance-id"[{
                 }]"vf-module-name": "vPacketGen-VNF-1128-3",
                "relatedmodel-version-linkid": "/aai/v11/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFWCL/service-instances/service-instance/c6456519-6acf-4adb-997c-3c363dd4caafd6d4a002-a584-4640-bdce-a50e9bce552b",
                "relatedheat-tostack-propertyid": [{
     "vPacketGen-VNF-1128-3/df34f5d6-ed39-4184-b785-51c37cfa8ac2",
                "propertyresource-keyversion": "service-instance.service-instance-name1527641224058",
   
                "propertymodel-customization-valueid": "Firewall1"49c8f521-e5ee-4095-bb87-4090166e49ab",
                }]
            },
            {"is-base-vf-module": true,
                "relatedvf-module-toid": "l3-network0f792076-f5b3-4251-9fcc-c4d5afae0eb1",
                "relationshipmodule-dataindex": [{0,
                    "relationship-value"model-invariant-id": "HNP1d77c2a8844a8-1094f5f7-41ec46dd-b7f3a732-94bb30951870472c6972a28e",
   
                "relationshiporchestration-keystatus": "l3-network.network-id"
   active"
            }],
        },
        "related-linkvserver": "/aai/v13/network/l3-networks/l3-network/HNP1d77c-1094-41ec-b7f3-94bb30951871",
   [{
            "relationshipvserver-labelname": "org.onap.relationships.inventory.UsesFirewall-1",
                "related-to-property": [{"vserver-id": "25fb07ab-0478-465e-a021-6384ac299671",
                     "property-key"model-invariant-id": "l3-network.network-name",0c5a20de-87ad-442c-9190-f38ab0a6bb7f"
           }],
        "propertymodel-invariant-valueid": "HNPORTALOAM.OAM"99f1fd3f-845c-48f5-a0ba-11fbde6ae557",
        "vnf-name": "PacketGenerator-1",
      }]  "is-closed-loop-disabled": false
    },
    },{
        "nf-role": "",
  {        "service-id": "8ea56b0d-459d-4668-b363-c9567432d8b9",
        "relatedrelationship-tolist": "vserver",{
                "relationship-data"relationship": [{
                    "relationshiprelated-valueto": "CloudOwnerservice-instance",
  
                 "relationship-keydata": "cloud-region.cloud-owner"
                },
                [{
                    "relationship-value": "RegionOneDemonstration",
                    "relationship-key": "cloud-regioncustomer.cloudglobal-regioncustomer-id"
                },
                {
                    "relationship-value": "b49b830686654191bb1e952a74b014advFWCL",
                    "relationship-key": "tenantservice-subscription.tenantservice-idtype"
                },
                {
                    "relationship-value": "25fb07abc6456519-04786acf-465e4adb-a021997c-6384ac2996713c363dd4caaf",
                    "relationship-key": "vserver.vserverservice-instance.service-instance-id"
                }],
                "related-link": "/aai/v13v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/b49b830686654191bb1e952a74b014ad/vservers/vserver/b494cd6e-b9f3-45e0-afe7-e1d1a5f5d74b"business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFWCL/service-instances/service-instance/c6456519-6acf-4adb-997c-3c363dd4caaf",
                "related-to-property": [{
  }]         },         "vnfproperty-idkey": "6700c313service-fbb7instance.service-4cf9instance-ac70-0293ec56df69name",
          "nf-type": "",         "l3property-networksvalue": "Firewall1"
 [{             "network-role": "HNPORTALOAM.OAM",
 }]
           "network-technology": "ovs" },
            "service-id": "V7611HNP-1222-48f1-8085-94aef0c6ef3d51870",{
                "networkrelated-idto": "HNP1d77c-1222-41ec-b7f3-94bb30951870l3-network",
                "neutronrelationship-network-iddata": "491c7cef-a3f4-4990-883e-b0af397466d0", [{
              "is-external-network": false,     "relationship-value": "HNP1d77c-1094-41ec-b7f3-94bb30951870",
      "is-bound-to-vpn": false,             "is-provider-network": false,relationship-key": "l3-network.network-id"
              "network-type": "OVS_PROVIDER_VLAN",  }],
                "orchestrationrelated-statuslink": "active",/aai/v13/network/l3-networks/l3-network/HNP1d77c-1094-41ec-b7f3-94bb30951871",
                "networkrelationship-role-instancelabel": 0,"org.onap.relationships.inventory.Uses",
             "resource-version": "1526558298075",   "related-to-property": [{
                    "networkproperty-namekey": "HNPORTALOAM.OAMl3-network.network-name",
            "is-shared-network": false         }],
"property-value": "HNPORTALOAM.OAM"
       "prov-status": "PREPROV",         "vnf-type": "vFW-vSINK-service/vPKG 0",}]
           "orchestration-status": "Created", },
         "nf-naming-code": "",  {
      "in-maint": false,         "nfrelated-functionto": "vserver",

       "model-version-id": "a5565bf4-d55a-4964-8fbc-6a7674a2e676",         "vserversrelationship-data": [{
                    "relationship-listvalue": {"CloudOwner",
                  "  "relationship-key": [{"cloud-region.cloud-owner"
                    "related-to": "generic-vnf",
   },
                "relationship-data": [{
   
                    "relationship-value": "8a9ddb25-2e79-449c-a40d-5011bac0da39RegionOne",
   
                    "relationship-key": "genericcloud-vnfregion.vnfcloud-region-id"
                },
             }],   {
                    "relatedrelationship-linkvalue": "/aai/v11/network/generic-vnfs/generic-vnf/8a9ddb25-2e79-449c-a40d-5011bac0da39b49b830686654191bb1e952a74b014ad",
                    "related-to-property": [{relationship-key": "tenant.tenant-id"
                },
           "property-key": "generic-vnf.vnf-name",    {
                    "propertyrelationship-value": "Firewall-1"25fb07ab-0478-465e-a021-6384ac299671",
                    }]"relationship-key": "vserver.vserver-id"
                }],
                {"related-link": "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/b49b830686654191bb1e952a74b014ad/vservers/vserver/b494cd6e-b9f3-45e0-afe7-e1d1a5f5d74b"
            }]
       "related-to },
        "vnf-id": "flavor6700c313-fbb7-4cf9-ac70-0293ec56df69",
          "nf-type": "",
         "relationshipl3-datanetworks": [{
            "network-role": "HNPORTALOAM.OAM",
            "relationshipnetwork-valuetechnology": "CloudOwnerovs",
            "service-id": "V7611HNP-1222-48f1-8085-94aef0c6ef3d51870",
            "relationshipnetwork-keyid": "cloud-region.cloud-owner"HNP1d77c-1222-41ec-b7f3-94bb30951870",
            "neutron-network-id": "491c7cef-a3f4-4990-883e-b0af397466d0",
       },     "is-external-network": false,
            "is-bound-to-vpn": false,
 {           "is-provider-network": false,
            "relationshipnetwork-valuetype": "RegionOneOVS_PROVIDER_VLAN",
            "orchestration-status": "active",
          "relationship-key":  "cloudnetwork-region.cloud-region-id"
role-instance": 0,
                   }"resource-version": "1526558298075",
            "network-name": "HNPORTALOAM.OAM",
      {      "is-shared-network": false
        }],
        "relationshipprov-valuestatus": "764efb04-5a46-4806-a766-2bdd24559f39PREPROV",
        "vnf-type":       "vFW-vSINK-service/vPKG 0",
        "relationshiporchestration-keystatus": "flavor.flavor-idCreated",
        "nf-naming-code": "",
          }]"in-maint": false,
           "nf-function": "",
        "relatedmodel-version-linkid": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39a5565bf4-d55a-4964-8fbc-6a7674a2e676",
         "vservers": [{
            "relatedrelationship-to-propertylist": [{
       
                "property-keyrelationship": "flavor.flavor-name",
[{
                       "propertyrelated-valueto": "m1.medium"generic-vnf",
                    }]
"relationship-data": [{
               },           "relationship-value": "8a9ddb25-2e79-449c-a40d-5011bac0da39",
     {                     "relatedrelationship-tokey": "image",generic-vnf.vnf-id"
                    "relationship-data": [{
 }],
                      "relationshiprelated-valuelink": "CloudOwner/aai/v11/network/generic-vnfs/generic-vnf/8a9ddb25-2e79-449c-a40d-5011bac0da39",
                        "relationship-key"related-to-property": "cloud-region.cloud-owner"[{
                    },    "property-key": "generic-vnf.vnf-name",
               {         "property-value": "Firewall-1"
              "relationship-value": "RegionOne",     }]
                },
  "relationship-key": "cloud-region.cloud-region-id"             {
       },             "related-to": "flavor",
      {              "relationship-data": [{
                        "relationship-value": "42fd42f8-cf81-4f4c-a552-d4b124f83b0bCloudOwner",
                        "relationship-key": "imagecloud-region.imagecloud-idowner"
                    }],
                    {
  "related-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/42fd42f8-cf81-4f4c-a552-d4b124f83b0b",                     "relatedrelationship-to-propertyvalue": [{"RegionOne",
                        "propertyrelationship-key": "image.image-name",cloud-region.cloud-region-id"
                    },
     "property-value": "unknown"               {
       }]                 }]
"relationship-value": "764efb04-5a46-4806-a766-2bdd24559f39",
           },             "inrelationship-maintkey": false,"flavor.flavor-id"
             "resource-version": "1528481820321",      }],
      "vserver-name": "Firewall-0",             "provrelated-statuslink": "ACTIVE",/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39",
              "vserver-id": "b494cd6e-b9f3-45e0-afe7-e1d1a5f5d74b",
      "related-to-property": [{
           "vserver-name2": "Firewall-0",             "vserverproperty-selflinkkey": "http://10.12.25.2:8774/v2.1/b49b830686654191bb1e952a74b014ad/servers/25fb07ab-0478-465e-a021-6384ac299671",
      flavor.flavor-name",
     "is-closed-loop-disabled": false         }],         "resourceproperty-versionvalue": "1527638176989",m1.medium"
          "model-customization-id": "4cc1e555-361f-4d69-ae21-9f371ea9f40c",         "vf-modules": {}]
                },
 "vf-module": [{              {
  "vf-module-name": "vPacketGen-VNF-1128-3",                 "modelrelated-version-idto": "d6d4a002-a584-4640-bdce-a50e9bce552bimage",
                    "heatrelationship-stack-iddata": "vPacketGen-VNF-1128-3/df34f5d6-ed39-4184-b785-51c37cfa8ac2", [{
                        "resourcerelationship-versionvalue": "1527641224058CloudOwner",
                        "modelrelationship-customization-idkey": "49c8f521cloud-e5ee-4095-bb87-4090166e49ab",
  region.cloud-owner"
             "is-base-vf-module": true,       },
         "vf-module-id": "0f792076-f5b3-4251-9fcc-c4d5afae0eb1",          {
      "module-index": 0,                 "modelrelationship-invariant-idvalue": "2a8844a8-f5f7-46dd-a732-472c6972a28eRegionOne",
                        "orchestrationrelationship-statuskey": "activecloud-region.cloud-region-id"
            }]
        },
         "vserver": [{          {
  "vserver-name": "Firewall-1",             "vserver-id        "relationship-value": "25fb07ab42fd42f8-0478cf81-465e4f4c-a021a552-6384ac299672d4b124f83b0b",
            "model-invariant-id": "0c5a20de-87ad-442c-9190-f38ab0a6bb7f"            "relationship-key":  }],"image.image-id"
         "model-invariant-id": "99f1fd3f-845c-48f5-a0ba-11fbde6ae557",         "vnf-name": "PacketGenerator-2", }],
         "is-closed-loop-disabled": false     }],     "modelrelated-invariant-id": "0c5a20de-link": "/aai/v11/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/42fd42f8-cf81-4f4c-a552-d4b124f83b0b",
                    "related-to-property": [{
                        "property-key": "image.image-name",
                        "property-value": "unknown"
                    }]
                }]
            },
            "in-maint": false,
            "resource-version": "1528481820321",
            "vserver-name": "Firewall-0",
            "prov-status": "ACTIVE",
            "vserver-id": "b494cd6e-b9f3-45e0-afe7-e1d1a5f5d74b",
            "vserver-name2": "Firewall-0",
            "vserver-selflink": "http://10.12.25.2:8774/v2.1/b49b830686654191bb1e952a74b014ad/servers/25fb07ab-0478-465e-a021-6384ac299671",
            "is-closed-loop-disabled": false
        }],
        "resource-version": "1527638176989",
        "model-customization-id": "4cc1e555-361f-4d69-ae21-9f371ea9f40c",
        "vf-modules": {
            "vf-module": [{
                "vf-module-name": "vPacketGen-VNF-1128-3",
                "model-version-id": "d6d4a002-a584-4640-bdce-a50e9bce552b",
                "heat-stack-id": "vPacketGen-VNF-1128-3/df34f5d6-ed39-4184-b785-51c37cfa8ac2",
                "resource-version": "1527641224058",
                "model-customization-id": "49c8f521-e5ee-4095-bb87-4090166e49ab",
                "is-base-vf-module": true,
                "vf-module-id": "0f792076-f5b3-4251-9fcc-c4d5afae0eb1",
                "module-index": 0,
                "model-invariant-id": "2a8844a8-f5f7-46dd-a732-472c6972a28e",
                "orchestration-status": "active"
            }]
        },
        "vserver": [{
            "vserver-name": "Firewall-1",
            "vserver-id": "25fb07ab-0478-465e-a021-6384ac299672",
            "model-invariant-id": "0c5a20de-87ad-442c-9190-f38ab0a6bb7f"
        }],
        "model-invariant-id": "99f1fd3f-845c-48f5-a0ba-11fbde6ae557",
        "vnf-name": "PacketGenerator-2",
        "is-closed-loop-disabled": false
    }],
    "model-invariant-id": "0c5a20de-87ad-442c-9190-f38ab0a6bb7f",
    "service-instance-name": "Firewall1"
}

Network Discovery

Network Discovery Context Builder → Network Discovery

The context builder next needs to send multiple requests – one for each resource provided by Service Decomposition – to Network Discovery in order to obtain the values of associated attributes.

Request (Network Resource)
Code Block
languagejs
collapsetrue
http://10.147.112.148:8080/network-discovery/v1/network/resource?id?requestId=d4ec9585-eb78-4450-b52c-dc3fa6194667___3?resourceType=l3-network?resourceId=HNP1d77c-1222-41ec-b7f3-94bb30951870?notificationURL=http://10.147.112.148:8080/network-discovery/v1/network/resource






Network Discovery → AAI Enricher

For each resource passed to it, Network Discovery simply hands off the discovery work to the AAI Enricher, which utilizes addons to query live networks. (Note: Enricher is not in ONAP at this time but the responses could be mocked.)

Request

mocked.)

Request
Code Block
languagejs
collapsetrue
https://d2enrichment:9505/enricher/v11/network/l3-networks/l3-network/HNP1d77c-1222-41ec-b7f3-94bb30951870?sot=!aai


Response
Code Block
languagejsxml
collapsetrue
httpse.g.


<l3-network xmlns="http://d2enrichment:9505/enricher/v11/network/l3-networks/l3-network/HNP1d77c-1222-41ec-b7f3-94bb30951870?sot=!aai
Response
org.openecomp.aai.inventory/v10">
  <network-id>HNP1d77c-1222-41ec-b7f3-94bb30951870</network-id>
  <network-name>networkname</network-name>
  <is-shared-network>true</is-shared-network>
  <in-maint>false</in-maint>
  <retrieval-timestamp>2018-09-12 01:02:03 +0000</retrieval-timestamp>
</l3-network>
Response (Network Resource)
Code Block
language
xml
js
collapsetrue
[requestId=9d9bbc4a-787a-44d3-8ac4-37daed95b252___13, code=200, message=OK, ackFinalIndicator=true, resources=[Resource [id=HNP1d77c-1222-41ec-b7f3-94bb30951870, name=null, type=l3-network, dataQuality=DataQuality [status=error, errorText=ENRICHER-312, Unknown SoT as Enricher could not recognize the SoT reference.], attributeList=null]]]




Request (VM Resource)
Code Block
languagejs
collapsetrue

     

Network Discovery → AAI Enricher

Request
Code Block
languagejs
collapsetrue


Response
Code Block
language
js
xml
collapsetrue
[requestId=9d9bbc4a-787a-44d3-8ac4-37daed95b252___13, code=200, message=OK, ackFinalIndicator=true, resources=[Resource [id=HNP1d77c-1222-41ec-b7f3-94bb30951870, name=null, type=l3-network, dataQuality=DataQuality [status=error, errorText=ENRICHER-312, Unknown SoT as Enricher could not recognize the SoT reference.], attributeList=null]]]
e.g.


<vserver xmlns="http://org.openecomp.aai.invetory/v10">
  <vserver-id>9168b536-cd40-4630-b43f-b259807c6e87</vserver-id>
  <vserver-name>new-server-test</vserver-name>
  <locked>false</locked>
  <hostname>kll0123</hostname>
  <image-id>70a599e0-31e7-49b7-b260-868f441e862b</image-id>
  <retrieval-timestamp>2018-09-04 01:23:45 +0000</retrieval-timestamp>
</vserver>
Response (VM Resource)
Code Block
languagejs
collapsetrue