Ganesh,

"vnfPolicy_ServiceCORE" was an example of a policy name. When you generate 
policies for your service using command "python3 policy_utils.py 
generate_nsi_policies TESTRANTOPNSST" what it does is, it fills the templates 
from directory nsi_policies and put them in gen_nsi_policies. So now in your 
gen_nsi_policies you have a lot of json files - policy files with names filled 
for your service. When you try to delete the policy using "python3 
policy_utils.py delete_policies gen_nsi_policies" it is pushing *the same* 
files with to the policy framework with delete request and check if the name 
specified in this file match the existing policy, if it does - delete. So 
before deleting any policy what you have to do first is to generate them for 
your service using "python3 policy_utils.py generate_nsi_policies 
TESTRANTOPNSST" (or any other depending on your service) and after that use 
"python3 policy_utils.py delete_policies gen_nsi_policies". Repeat this steps 
for all your policies. After you do this, run the automated script.

Kind regards,
Maciej Lisowski


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#23854): https://lists.onap.org/g/onap-discuss/message/23854
Mute This Topic: https://lists.onap.org/mt/89183247/21656
Mute #oof:https://lists.onap.org/g/onap-discuss/mutehashtag/oof
Mute #policy:https://lists.onap.org/g/onap-discuss/mutehashtag/policy
Mute #so:https://lists.onap.org/g/onap-discuss/mutehashtag/so
Mute #slicing:https://lists.onap.org/g/onap-discuss/mutehashtag/slicing
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to