...
- ConfigScaleIn Payload may be different than ConfigScaleOut
- ConfigScaleIn and ConfigScaleOutNeeds to support both Ansible and NetConf
- Payloads needs to be the same whether using Ansible or Netconf
- SO does not know what protocol is being used for configuration.
Comments
- CDT chooses and stores which config protocol for each VNF
- Assume SO continues to pass through VID/Policy payload. It does not interpret the payload
- Current payload for ConfigScaleOut
- "payload":"{\"request-parameters\":{\"host-ip-address\":\"10.0.150.1\",\"vf-module-id\": \"scaleOut\"},\"configuration-parameters\":{\"ip-addr\":\"192.168.10.217\", \"oam-ip-addr\":\"10.0.150.9\",\"enabled\":\"true\"}}"
- Need to make the Ansible DG generic across all VNFs
- Current Ansible Template
- {
"InventoryNames": "VM",
"PlaybookName": "${()=(book_name)}",
"NodeList": [{
"vm-info": [{
"ne_id": "${()=(ne_id)}",
"fixed_ip_address": "${()=(fixed_ip_address)}"
}],
"site": "site",
"vnfc-type": "vpgn"
}],
"EnvParameters": {
"ConfigFileName": "../traffic_distribution_config.json",
"vnf_instance": "vfwdt",
},
"FileParameters": {
"traffic_distribution_config.json": "${()=(file_parameter_content)}"
},
"Timeout": 3600
} - above is found in: https://docs.onap.org/en/latest/submodules/integration.git/docs/docs_vFWDT.html#configuration-of-vnf-in-the-appc-cdt-tool
- ScaleIn payload will be: "payload":"{\"request-parameters\":{\"host-ip-address\":\"10.0.150.1\",\"vf-module-id\": \"scaleOut\"},\"configuration-parameters\":{\"ip-addr\":\"192.168.10.217\"}}"
Distribute Traffic Payload
{
"input": {
"action": "DistributeTrafficCheck",
"payload": "{\\"configuration-parameters\\": {\\"ne_id\\": \\"vfwl01pgne842\\", \\"fixed_ip_address\\": \\"10.0.198.103\\", \\"file_parameter_content\\": \\"\\", \\"book_name\\": \\"vpgn/latest/ansible/distributetrafficcheck/site.yml\\"}}",
"common-header": {
"api-ver": "2.00",
"timestamp": "2019-11-12T14:56:51.244Z",
"flags": {
"force": "TRUE",
"mode": "NORMAL",
"ttl": 36000
},
"request-id": "56e420fb-54bf-4a36-b617-fc5ff776f30d",
"originator-id": "vfw-dt-demo",
"sub-request-id": "8149b0e3-b3b9-46b4-b174-0cf84edb6027"
},
"action-identifiers": {
"vnf-id": "5a2e2254-94f9-4a60-bbbf-dd0928337c69"
}
}
}
Questions
- What is the format of the ConfigScale payload?