Base Candidate Class
Attribute | Required | Content | Values | Description |
---|---|---|---|---|
inventory_provider | Y | String | aai | |
inventory_type | Y | String | Cloud, Service, Vfmodule, Transport, NSSI | |
candidate_id | Y | String | ||
uniqueness | Y | Boolean | ||
cost | Y | String |
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
MODEL
Attribute | Required | Content | Values | Description |
---|---|---|---|---|
location_info | Y | Object | location_id, location_type | |
complex_info | Y | Object | physical_location_id, complex_name, latitude, longitude, state, country, city, region | |
cloud_info | N | Object | cloud_region_version, cloud_owner | |
other attributes | Object | flavors, sriov_automation |
Service object
EXAMPLE
MODEL
Attribute | Required | Content | Values | Description |
---|---|---|---|---|
location_info | Y | Object | location_id, location_type | |
vlan_info | Y | Object | vlan_key, port_key | |
cloud_info | N | Object | cloud_region_version, cloud_owner, vim_id | |
Vfmodule object
EXAMPLE
MODEL
Attribute | Required | Content | Values | Description |
---|---|---|---|---|
location_info | Y | Object | location_id, location_type | |
cloud_info | Y | Object | cloud_region_version, cloud_owner, vim_id | |
vlan_info | N | Object | vlan_key, port_key | |
vserver_info | Object |
Transport object
EXAMPLE
MODEL
Attribute | Required | Content | Values | Description |
---|---|---|---|---|
location_info | Y | Object | location_id, location_type | |
complex_info | Y | Object | physical_location_id, complex_name, latitude, longitude, state, country, city, region | |
zone_info | N | Object | zone_id , zone_name |
NSSI object
EXAMPLE
MODEL
Attribute | Required | Content | Values | Description |
---|---|---|---|---|
sliceprofile_info | Y | Object | ||
nsi_info | Y | 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()
- Base candidate class