When an ONAP instance is deployed over a VIM/Cloud instance, the VIM/Cloud instance will be registered by default. However, it is somehow tricky to add additional VIM/Cloud instance to ONAP instance with Amsterdam Release. This page is trying to share the practice to do so and the goal is to allow users deploy VNF/VF-Modules to the additional VIM/Cloud instance.
There are 3 places to store information of a VIM/Cloud instance: A&AI, SO, Robot. And it is very important to associate the VIM/Cloud instance with subscriber's service subscription, otherwise you will not able to deploy the subscriber's VNF/VF-Modules to that VIM/Cloud instance
Register VIM/Cloud instance into A&AI
Prerequisite: Complex object and Subscribe object are created in the AAI
Complex object in A&AI represent the physical location of a VIM/Cloud instance, that is the one-to-many association between them, so creating the complex object is out of scope of this practice. But I can share the POST man script to do create complex named clli2:
The VIM/Cloud instance are represented as a cloud region object in A&AI. So registering a VIM/Cloud instance into A&AI basically refers to following actions:
action 1: create a cloud region object
action 2: create child object of cloud region object to represent the resources of that VIM/Cloud instance
action 3: associate this cloud region object with a complex object
action 4: associate this cloud region object with a subscriber's service subscription
Register VIM/Cloud instance into SO
Change Robot service to operate with the VIM/Cloud instance
The cloud-owner is "CloudOwner" and cloud-region-id is specified via the parameters "openstack_region" for deploying this ONAP instance.