Versions Compared

Key

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

The document describes the steps that can be used to create and onboard optimization policies for the Network Slice and Subnet models onto the Policy module in ONAP. These policies will be used by OOF during the optimization(NSI and NSSI selection).

View file
namensi_policies.zip
height250

Prerequisites

Make sure that the policy and OOF modules are deployed and all the pods are up and running. You can check the pod status using the following command

...

  • policy_types (dir) - The directory contains the addtional policy types that needs to be created for the Network slicing use case.
  • nst_policies (dir) -  The directory contains the policies required for NST selection.
  • nsi_polices (dir) - The directory contains the policy templates required for NSI selection.
  • nssi_policies (dir) - The directory contains the policy templates required for NSSI selection.
  • policy_utils.py - The python script which can be used to generate, create and delete policies

...

Code Block
languagebash
themeEmacs
titleGenerate policies
# for NST selection, we need not generate any policies, since it will same for all the requests

# for nsi policies
python3 policy_utils.py generate_nsi_policies <service_name(nst)>

# for nssi policies
python3 policy_utils.py generate_nssi_policies <service_name(nsst)> minimize latency

...

Code Block
languagebash
themeEmacs
titleGenerate policies
# for nst policies
python3 policy_utils.py create_and_push_policies nst_policies

# for nsi policies
python3 policy_utils.py create_and_push_policies gen_nsi_policies

# for nssi policies
python3 policy_utils.py create_and_push_policies gen_nssi_policies

...

Code Block
languagebash
themeEmacs
titleGenerate policies
# for nst policies
python3 policy_utils.py delete_policies nst_policies

# for nsi policies
python3 policy_utils.py delete_policies gen_nsi_policies

# for nssi policies
python3 policy_utils.py delete_policies gen_nssi_policies

...