...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "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" : "", "nf-name" : "" "nf-id" : "" "nf-type" : "" "vnf-type" : "" "ipv4-oam-address" : "" "ipv6-oam-address" : "" "vf-module-name" : "" "vf-module-id" : "" "service_instance_id" : "" "sriov_automation" : "" "vservers" : [ { "vserver-id" : "" "vserver-name" : "" "l-interfaces" : [ { "interface-id" : "" "interface-name" : "" "macaddr" : "" "network-id" : "" "network-name" : "" "ipv4-addresses" : "" "ipv6-addresses" : "" } ] } ] } |
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 |
...
zone_info = ["zone_id", "zone_name"]
cloud_info = ["vim_id". "cloud_region_version", "cloud_owner"]
vlan_info = ["host_id", "vlan_key", "port_key"]
complex_info = []
...
"physical_location_id". "complex_name", "latitude", "longitude", "state", "country", "city", "region", ]
Base candidate class
inventory_provider, inventory_type, candidate_id, uniqueness, cost, service_resource_id
Example of how a cloud inventory type should be defined
- class cloud → extends from candidate base class
- location_info → dict()
- compex_info → dict()
- cloud_info → dict()
- other_permitted_fields_for_cloud_cnd → dict()