afb30f7cbac693ee5ef442a285e6c91e2581e20b
[demo.git] / heat / vFW_CNF_CDS / templates / policy / README.txt
1 `policy.sh` script allows to create and push naming policy for CNF usecase. Execution of script can be checked by calling `./policy.sh -h`. As pdp doesn't expose it's service externally, this folder needs to be copied to some ONAP pod with bash and curl available (for example, mariadb-galera) and executed within.
2 Scope of changes and reasoning behind is described in related ticket: https://jira.onap.org/browse/SDNC-1109.
3
4 Example execution flow:
5 ```
6 cd ..
7 kubectl cp policy onap-mariadb-galera-mariadb-galera-0:/tmp/policy
8 kubectl exec -it onap-mariadb-galera-mariadb-galera-0 bash
9 cd /tmp/policy
10 ./policy.sh get #See that CNF naming policy is not uploaded yet
11 ./policy.sh create #Create and push CNF naming policy
12 ./policy.sh get #Verify that now it's visible
13 ```