summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/pmsh_service/mod/policy_response_handler.py
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2020-12-11 16:19:47 +0000
committerefiacor <fiachra.corcoran@est.tech>2021-01-12 11:35:09 +0000
commit5e0e87f7e86f511511d37f90242300296e7b5dc4 (patch)
treed8ed3fc96a28cbdcd347565837e8a3fb6bcf2742 /components/pm-subscription-handler/pmsh_service/mod/policy_response_handler.py
parent1e6f4d9c7ea75302f4b902dbbe13642b6d20d716 (diff)
[PMSH] Add retry mech for DELETE_FAILED NFs
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: I3980f0bb43c67e192828172dafe4e7be102dcc98 Issue-ID: DCAEGEN2-2152
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service/mod/policy_response_handler.py')
-rw-r--r--components/pm-subscription-handler/pmsh_service/mod/policy_response_handler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/pm-subscription-handler/pmsh_service/mod/policy_response_handler.py b/components/pm-subscription-handler/pmsh_service/mod/policy_response_handler.py
index 73a5e7e8..09c97047 100644
--- a/components/pm-subscription-handler/pmsh_service/mod/policy_response_handler.py
+++ b/components/pm-subscription-handler/pmsh_service/mod/policy_response_handler.py
@@ -30,6 +30,10 @@ policy_response_handle_functions = {
AdministrativeState.UNLOCKED.value: {
'success': Subscription.update_sub_nf_status,
'failed': Subscription.update_sub_nf_status
+ },
+ AdministrativeState.LOCKING.value: {
+ 'success': NetworkFunction.delete,
+ 'failed': Subscription.update_sub_nf_status
}
}