Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

DistributeTrafficCheck

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
ActionDistributeTrafficCheck
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 CDTYes

"payload": "{

    \"configuration-parameters\": {

        \"PlaybookName\": \"ansible_vfw_distributetraffic_check@0.00.yml\",

        \"NodeList\": \"[vfw-1]\",

        \"EnvParameters\": {

            \"IsPostCheck\": true,

            \"ConfigurationFile\": \"distribution_config.txt\"

        },

        \"FileParameters\" : {

            \"distribution_config.txt\" : \"{

                \"distributionPolicy\" : \"{...}\",

                \"distributionPoints\" : \"{...}\"

            }\"

        },

        \"Timeout\": 3600

    }

}"


Exemplary CDT template for Ansible protocol:

{
       "PlaybookName": ${playbook},
       "NodeList": ${node_list},
       "EnvParameters": {
           "IsPostCheck": ${is_post_check},
           "ConfigurationFile": ${distribution_config_file}
       },
       "FileParameters": {
           ${distribution_config_file} : ${distribution_config_file_content}
       },
       "Timeout": 3600
}

EnvParameters includes protocol specific parameters for Ansible playbook or Chef cookbook. Here with information if the Check is performed before or after traffic distribution (IsPostCheck) and with further information about the distribution that will be performed (PreCheck) or for the one that was already performed (PostCheck). EnvParameters has two mandatory parameters: "IsPostCheck" and the second one that folds information about name of file with configuration of traffic distrribution. FileParameters section specifies content of file that will be uploaded to Ansible server, the file will be loaded by playbook as Input parameters. This file holds information provided by the OOF in DistributeTraffic optimization Response:

DistributeTrafficCheck Response

The response does not include any payload parameters.

Success: A successful distribute check returns a success status code 400 when pre- or post- check conditions are satisfied

Success: A successful distribute check returns a success status code 401 when pre- or post- check conditions are not satisfied

  • No labels