...
Expand | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
OverviewThe generic-resource-api is used to assign cloud parameter assignment during instantiation flow. The vf-module instantiation flow begins with the main DG, self-serve-vfmodule-assign, when the svc-action = assign in the rpc request. The main DG will call a series of sub-DGs according to the execution order of all the predefined capability components, such as generate-name, vlan-tag-assignment, eipam-ip-assignment, etc. For IP assignment, the main DG calls the sub-DG, self-serve-eipam-ip-assignment to start the ip assignment process. This wiki serves as the blueprint for capability integration with generic-resource-api for ip assignments, and it is used to integrate EIPAM custom plugin to obtain ip address assignments during vf-module orchestration. PrerequisiteThe following parameters must be set in context memory prior to the self-serve-eipam-ip-assignment sub-DG is called.
Logic1. Unresolved Parameter Resolution- Calls self-serve-capability-param-resolution DG to resolve all the unresolved values in vf-module-parameters.param[].resource-resolution-data.resource-key[].value where resource-resolution-data.capability-name matches this DG name. 2. Call EIPAM Plugin- The EIPAM plugin returns the ip assignment in a context variable, called eipam-ip-block - eipam-ip-block.plans[].requests[].ip-prefix - eipam-ip-block.plans[].requests[].ip-prefix-length - eipam-ip-block.plans[].requests[].ReservedAssignments[0]. ReservedAssignment[3].ReservedKeyIPAddress - Insert an entry to EIPAM_IP_ASSIGNMENTS table 3. Set Heat ParametersThe sub-DG, self-serve-vfmodule-assign will set value of then heat parameters based on the EIPAM - vmxvre_oam_ip_0 = eipam-ip-block.plans[].requests[].ip-prefix - vmxvre_oam_ip_prefix_0 = eipam-ip-block.plans[].requests[].ip-prefix-length - vmxvre_oam_gateway = eipam-ip-block.plans[].requests[].ReservedAssignments[0]. - ReservedAssignment[3].ReservedKeyIPAddress 4. Netbox API call
| ||||||||||||||||
Expand | ||||||||||||||||
| ||||||||||||||||
5. Testing out the DGTo test the DG to resolve multiple IPs, that mock-up data can be used:
OverviewThe generic-resource-api is used to unassign cloud parameters during the vf-module unassign flow. The vf-module unassign flow begins with the main DG, self-serve-vfmodule-unassign, when the svc-action = unassign in the rpc request. The main DG will call a series of sub-DGs according to the execution order of all the predefined capability components, such as generate-name, vlan-tag-assignment, eipam-ip-assignment, etc to unassign cloud parameters. Upon successful unassignment, the main DG will clear the service-data data in MD-SAL PrerequisitesThe following parameters must be set in context memory prior to the self-serve-eipam-ip-assignment sub-DG is called. ss.capability-name
ss.capability-action
vnf-index
vf-module-index
|
Expand | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
OverviewThe generic-resource-api is used to unassign cloud parameters during the vf-module unassign flow. The vf-module unassign flow begins with the main DG, self-serve-vfmodule-unassign, when the svc-action = unassign in the rpc request. The main DG will call a series of sub-DGs according to the execution order of all the predefined capability components, such as generate-name, vlan-tag-assignment, eipam-ip-assignment, etc to unassign cloud parameters. Upon successful unassignment, the main DG will clear the service-data data in MD-SAL PrerequisitesThe following parameters must be set in context memory prior to the self-serve-eipam-ip-assignment sub-DG is called.
Logic1. Set EIPAM_IP_ASSIGNMENTS status
2. Call EIPAM Plugin unassignIp
3. Set Heat Parameters status
4. Netbox API call
5. Testing out the DGTo test the DG to release multiple IPs, that mock-up data can be used:
Logic1. Set EIPAM_IP_ASSIGNMENTS status
2. Call EIPAM Plugin unassignIp
3. Set Heat Parameters status
Netbox Capability: | ||||||||||||||||||||
Action | Verb | URI | JSON payload (Bare minimal) | Params | Type | Comments | JSON response | Note | Delete IP | DELETE | /api/ipam/ip-addresses/{ip-id}/ | - | ip-id | Integer | The ID of the IP address to delete | - | done as part of the VF Module delete action.