/
ConfigScaleIn Action

ConfigScaleIn Action



Requirements

  1. ConfigScaleIn Payload may be different than ConfigScaleOut

  2. ConfigScaleIn and ConfigScaleOutNeeds to support both Ansible and NetConf

  3. Payloads needs to be the same whether using Ansible or Netconf

    1. SO does not know what protocol is being used for configuration.



Comments

  1. CDT chooses and stores which config protocol for each VNF

  2. Assume SO continues to pass through VID/Policy payload.  It does not interpret the payload

  3. Current payload for ConfigScaleOut

    1. "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\"}}"

  4. Need to make the Ansible DG generic across all  VNFs

  5. Current Ansible Template

  6. {
        "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
    }

  7. 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

  8. 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\"}}"

  9. 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

  1. What is the format of the ConfigScale payload?