Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Base Candidate Class 

AttributeRequiredContentValuesDescription
inventory_providerYString

aai


inventory_typeY

String

Cloud, Service, Vfmodule, Transport, NSSI


candidate_idYString

uniquenessYBoolean

costYString

Inventory Types

 1) Cloud

 2) Service

 3) Vfmodule

 4) Transport

 5) NSSI

All the candidate for every inventory types extend from the candidate base class

(Should the fields in models (cloud_info, complex_info, location_info ..) come from the configuration (or) should be defined in the models itself as instance variables  (or) should the fields be derived from AAI)

Cloud object

EXAMPLE

{  			
"inventory_provider" : "",
"inventory_type" : "",
"candidate_id" : "",
"uniqueness" : "",
"cost" : "",
"service_resource_id" : ""

"location_id" : "",
"location_type" : "",

"vim-id" : "",
"cloud_region_version" : "",
"cloud_owner" : "",   

"physical_location_id" : "",
"complex_name" : "",
"latitude" : "",
"longitude" : "",
"city" : "",
"state" : "",
"region" : "",
"country" : "",

"sriov_automation" : "",
"flavors" : ""
}

MODEL

AttributeRequiredContentValuesDescription
location_infoYObject

location_id, location_type


complex_infoY

Object

physical_location_id, complex_name, latitude, longitude, state, country, city, region


cloud_infoNObjectcloud_region_version, cloud_owner
other attributes
Objectflavors,  sriov_automation 

Service object

EXAMPLE

{  			
"inventory_provider" : "",
"inventory_type" : "",
"candidate_id" : "",
"uniqueness" : "",
"cost" : "",
"service_resource_id" : "",

"location_id" : "",
"location_type" : "",

"vim-id" : "",
"cloud_region_version" : "",
"cloud_owner" : "",   

"host_id" : "",
"vlan_key" : "",
"port_key" : "",

"sriov_automation" : "",

}

MODEL

AttributeRequiredContentValuesDescription
location_infoYObject

location_id, location_type


vlan_infoY

Object

vlan_key, port_key


cloud_infoNObjectcloud_region_version, cloud_owner, vim_id





Vfmodule object

EXAMPLE

{  			
"inventory_provider" : "",
"inventory_type" : "",
"candidate_id" : "",
"uniqueness" : "",
"cost" : "",
"service_resource_id" : "",

"location_id" : "",
"location_type" : "",

"physical_location_id" : "",
"complex_name" : "",
"latitude" : "",
"longitude" : "",
"city" : "",
"state" : "",
"region" : "",
"country" : "",

"vim-id" : "",
"cloud_region_version" : "",
"cloud_owner" : "",   

"host_id" : "",
"vlan_key" : "",
"port_key" : "",

"sriov_automation" : "",

}

MODEL

AttributeRequiredContentValuesDescription
location_infoYObject

location_id, location_type


cloud_infoY

Object

cloud_region_version, cloud_owner, vim_id


vlan_infoNObjectvlan_key, port_key
vserver_info
Object

Transport object

EXAMPLE

{  			
"inventory_provider" : "",
"inventory_type" : "",
"candidate_id" : "",
"uniqueness" : "",
"cost" : "",
"service_resource_id" : "",

"location_id" : "",
"location_type" : "",

"physical_location_id" : "",
"complex_name" : "",
"latitude" : "",
"longitude" : "",
"city" : "",
"state" : "",
"region" : "",
"country" : "",
"vim-id" : "",
"cloud_region_version" : "",
"cloud_owner" : "",   

"zone_id" : "",
"zone_name" : "",

"sriov_automation" : "",

}

MODEL

AttributeRequiredContentValuesDescription
location_infoYObject

location_id, location_type


complex_infoY

Object

physical_location_id, complex_name, latitude, longitude, state, country, city, region


zone_infoNObjectzone_id , zone_name

NSSI object

EXAMPLE

{  			
"inventory_provider" : "",
"inventory_type" : "",
"candidate_id" : "",
"uniqueness" : "",
"cost" : "",
"service_resource_id" : "",

}

MODEL

AttributeRequiredContentValuesDescription
sliceprofile_infoYObject



nsi_infoY

Object



CONFIGURATION

Applicable fields of all the models should be present in the configuration

location_info = ["location_id", "location_type"]

zone_info = ["zone_id", "zone_name"]

cloud_info = []

vlan_info = []

complex_info = []


  • Example of how a cloud inventory type should be defined
    • Base candidate class
      • inventory_provider,inventory_type,candidate_id,uniqueness,cost,service_resource_id
    • class cloud → extends from candidate base class
      • location_info → dict()
      • compex_info → dict()
      • cloud_info → dict()
  • No labels