Versions Compared

Key

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

...

DistributeTrafficCheck

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

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


Request Payload Parameters:
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 CDTNoYes“payload”: “{"configuration-parameters":{ "config_file_name":"/opt/onap/ccsdk/Playbooks/dt/config", "playbook":"ansible_vfw_distributetraffic@0.00.yml", "node_list":"[vpkg-1]" } }”

...

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

         "dt-destinations": [{

         "ConfigFileNameIsPostCheck": "${config_file_name}"
     },
true/false,

                "vfw_ip": „192.168.10.110",

                "vsink_ip": „192.168.20.240"

            }]

    },

    "Timeout": 3600
}

EnvParameters includes protocol specific parameters, here with name of configuration file having additional parameters for 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 strategy.

...

DistributeTrafficCheck Response

The response does not include any payload parameters.

...

Failure: A failed distribute check returns a failure code 401 and the failure message from the Ansible or Chef server in the response payload block.

...