Versions Compared

Key

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

...

{
    "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
    "topology_template": {
        "policies": [
            {
            "operational.modifynssi": {
               "type": "onap.policies.controlloop.operational.common.Drools",
               "type_version": "1.0.0",
               "version": "1.0.0",
               "name": "operational.modifynssi",
               "metadata": {
                  "policy-id": "operational.modifynssi"
               },
               "properties": {
                  "id": "ControlLoop-Slicing-116d7b00-dbeb-4d03-8719-d0a658fa735b",
                  "timeout": 1200,
                  "abatement": false,
                  "trigger": "unique-policy-id-1-modify-nssi",
                  "operations": [
                     {
                        "id": "unique-policy-id-1-modify-nssi",
                        "description": "Modify resource allocation for a slice subnet instance",
                        "operation": {
                           "actor": "SO",
                           "operation": "Modify NSSI",
                           "target": {
                              "targetType": "VNF"
                           }
                        },
                        "timeout": 1200,
                        "retries": 0,
                        "success": "final_success",
                        "failure": "final_failure",
                        "failure_timeout": "final_failure_timeout",
                        "failure_retries": "final_failure_retries",
                        "failure_exception": "final_failure_exception",
                        "failure_guard": "final_failure_guard"
                     }
                  ],
                  "controllerName": "frankfurtusecases"
               }
            }
         }
        ]
    }
}

...

{
  "policies": [
    {
      "policy-id": "operational.modifynssi",
      "policy-version": 1
    }
  ]
}

5. Sample Data

This data should be preloaded to test the closed loop part. The below data are not required to be fed, if the E2E Slice Instantiation is done before. 

RAN Simulator:

Log into the RAN-sim DB and run the below sql file in ransim_db.

ransim-db-closed-loop-sample-data.sql

Config DB:

Run the script as below to preload the config DB data for closed loop. Correct the port in the script, if Config DB running in a different port.

./configdb_requests_script_closedloop.sh <IP of the host machine in which Config DB>

configdb_requests_script_closedloop.sh