Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This command runs a VNF check (post- or pre-check) for distribute traffic specifically and returns the result.

Target URL/restconf/operations/appc-provider-lcm:distribute-traffic-check
ActionDIstributeTrafficCheckDistributeTrafficCheck
Action-IdentifiersVnf-id
Payload ParametersSee below
Revision HistoryUnchanged in this release

...

ParameterDescriptionRequired?Example
configuration-parametersA set of instance specific configuration parameters should be specified. If provided, APP-C replaces variables in the configuration template with the values supplied. The parameters are associated with request template defined with CDTYes

“payload”: “{"configuration-parameters": { "

config_file_name":"/opt/onap/ccsdk/Playbooks/dt/config", "playbook":"ansible_vfw_distributetraffic@0.00.yml", "node_list":"[vpkg-1]"

PlaybookName": "ansible_vfw_distributetraffic_check@0.00.yml", "NodeList": "[vfw-1]", "EnvParameters": { "IsPostCheck": true, "DtDestinations": [{ "vfw_ip": „192.168.10.110", "vsink_ip": „192.168.20.240" }]}, "Timeout": 3600 } }”


Exemplary CDT template for Ansible protocol:

{
    "PlaybookName": ${playbook},
    "NodeList": ${node_list},
    "EnvParameters": {

...

        "IsPostCheck": true,        
"IsPostCheckDtDestinations": true/false,

...

[{
"vfw_ip": „192.168.10.110",

...

            "vsink_ip": „192.168.20.240"

...

        }]

...

    },
"Timeout": 3600
}

EnvParameters includes protocol specific parameters , here for Ansible playbook or Chef cookbook. Here with information if the Check is performed before or after traffic distribution . Ansible playbook or Chef cookbook. Distribute Traffic config file can have such parameters like traffic destinations, distribution weights or rollback strategyand with further information about the distribution that will be performed (for PreCheck) or for the one that was already performed (PostCheck). EnvParameters has one mandatory parameters: "IsPostCheck" and the second one that is optional: "DtDestinations". Parameters in "DtDestinations" will depend on the VNF.

DistributeTrafficCheck Response

...