...
You can copy the file to the pod using the following command
kubectl cp subnetCapability.json -n onap <so-apih-pod-name>: /app
|
SO Database Update
Insert ORCHESTRATION_URI into service_recipe, SERVICE_MODEL_UUID replaced by CST.ModelId.
INSERT INTO `catalogdb`.`service_recipe`(`ACTION`, `VERSION_STR`, `DESCRIPTION`, `ORCHESTRATION_URI`, `SERVICE_PARAM_XSD`, `RECIPE_TIMEOUT`, `SERVICE_TIMEOUT_INTERIM`, `SERVICE_MODEL_UUID`) VALUES ( 'createInstance' , '1' , 'Custom recipe to create communication service-instance if no custom BPMN flow is found' , '/mso/async/services/CreateCommunicationService' , NULL, 180, NULL, 'c9252b26-f9cd-4e6c-988c-4d6ff39c6dda' );
INSERT INTO `catalogdb`.`service_recipe`(`ACTION`, `VERSION_STR`, `DESCRIPTION`, `ORCHESTRATION_URI`, `SERVICE_PARAM_XSD`, `RECIPE_TIMEOUT`, `SERVICE_TIMEOUT_INTERIM`, `SERVICE_MODEL_UUID`) VALUES ( 'deleteInstance' , '1' , 'Custom recipe to delete communication service if no custom BPMN flow is found' , '/mso/async/services/DeleteCommunicationService' , NULL, 180, NULL, 'c9252b26-f9cd-4e6c-988c-4d6ff39c6dda' );
INSERT INTO `catalogdb`.`service_recipe`(`ACTION`, `VERSION_STR`, `DESCRIPTION`, `ORCHESTRATION_URI`, `SERVICE_PARAM_XSD`, `RECIPE_TIMEOUT`, `SERVICE_TIMEOUT_INTERIM`, `SERVICE_MODEL_UUID`) VALUES ( 'activateInstance' , '1.0' , 'activate communication service' , '/mso/async/services/ActivateCommunicationService' , NULL, 180, NULL, 'c9252b26-f9cd-4e6c-988c-4d6ff39c6dda' );
|
Insert ORCHESTRATION_URI into service_recipe, SERVICE_MODEL_UUID is ServiceProfile.ModelId
INSERT INTO `catalogdb`.`service_recipe`(`ACTION`, `VERSION_STR`, `DESCRIPTION`, `ORCHESTRATION_URI`, `SERVICE_PARAM_XSD`, `RECIPE_TIMEOUT`,
`SERVICE_TIMEOUT_INTERIM`, `SERVICE_MODEL_UUID`) VALUES ( 'createInstance' , '1' , 'Custom recipe to create slice\r\nservice-instance if no custom BPMN flow is found' , '/mso/async/services/CreateSliceService' , NULL, 180, NULL, 'bfca8b32-3404-4e5c-a441-dc42b6823e88' );
INSERT INTO `catalogdb`.`service_recipe`(`ACTION`, `VERSION_STR`, `DESCRIPTION`, `ORCHESTRATION_URI`, `SERVICE_PARAM_XSD`, `RECIPE_TIMEOUT`, `SERVICE_TIMEOUT_INTERIM`, `SERVICE_MODEL_UUID`) VALUES ( 'deleteInstance' , '1' , 'Custom recipe to create slice\r\nservice-instance if no custom BPMN flow is found' , '/mso/async/services/DeleteSliceService' , NULL, 180, NULL, 'bfca8b32-3404-4e5c-a441-dc42b6823e88' );
INSERT INTO `catalogdb`.`service_recipe`(`ACTION`, `VERSION_STR`, `DESCRIPTION`, `ORCHESTRATION_URI`, `SERVICE_PARAM_XSD`, `RECIPE_TIMEOUT`, `SERVICE_TIMEOUT_INTERIM`, `SERVICE_MODEL_UUID`) VALUES ( 'activateInstance' , '1.0' , 'Gr api recipe to activate service-instance' , '/mso/async/services/ActivateSliceService' , NULL, 180, NULL, 'bfca8b32-3404-4e5c-a441-dc42b6823e88' );
|
5. Policy Creation Steps
...
View file |
---|
name | policies.zip |
---|
height | 150 |
---|
|
Copy the policy files
unzip policies.zip
kubectl cp policies -n onap <oof-pod-name>:/opt/osdf
kubectl exec -ti -n onap <oof-pod-name> bash
cd policies/nsi
python3 policy_utils.py create_policy_types policy_types
python3 policy_utils.py create_and_push_policies nst_policies
python3 policy_utils.py generate_nsi_policies NSTO1
python3 policy_utils.py create_and_push_policies gen_nsi_policies
cd policies/nssi
python3 policy_utils.py generate_nsi_policies TESTRANTOPNSST
python3 policy_utils.py create_and_push_policies gen_nssi_policies
python3 policy_utils.py generate_nssi_policies Tn_ONAP_internal_BH minimize latency
python3 policy_utils.py create_and_push_policies gen_nsi_policies
python3 policy_utils.py generate_nssi_policies RAN_NF_NSST minimize latency
python3 policy_utils.py create_and_push_policies gen_nssi_policies
python3 policy_utils.py generate_nssi_policies CN_NSST minimize latency
python3 policy_utils.py create_and_push_policies gen_nssi_policies |
NOTE: For NST Selection based on latency constraint, please make sure you have updated the latency constraint as property in the design time template of NST as below,
...
First, pull down the simulator image from public docker hub.
docker pull dzhanghuawei/pncsimulator:latest
|
Step 2. Start the simulator container(s)
After compiling the pnc-simulator image locally or fetching the docker image from remote registry, execute the command below to start the container:
docker run –p 18181 : 8181 –d –name pncsimu- 18181 –t dzhanghuawei/pncsimulator:latest
|
docker run –p 18182 : 8181 –d –name pncsimu- 18181 –t dzhanghuawei/pncsimulator:latest
|
For demonstration purposes, two domain controllers are required, in our case we use 18181 as SERVER_PORT for domain1 and 18182 for domain2.
After starting the container, you should be able to verify the running container by:
docker container ps –a | grep pncsimu
|
Step 3. Initialize the simulator(s)
...
To initialize the simulator for each domain:
curl –X POST –H "content-type:application/json" http:
|
For demonstration purposes, two domain controllers are required, both need to be properly launched and initialized. The initialization payloads are attached below.
...