diff options
author | 2020-03-31 14:28:35 +0100 | |
---|---|---|
committer | 2020-04-02 10:42:12 +0100 | |
commit | c3ab68bdccbff73659ceb1fe196e2d53d141e38f (patch) | |
tree | b6eb475b4c99f552cf9ad264764f5e25b6081fc9 /components/pm-subscription-handler/pmsh_service | |
parent | 78c11b8fcafd3bfb178fb568548cd29cafad8719 (diff) |
[PMSH] Bug fix on aai_event_handler
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Change-Id: I97e1137f10b28cd4d5d2d95860fbf7fc5306ae38
Issue-ID: DCAEGEN2-2181
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service')
-rwxr-xr-x | components/pm-subscription-handler/pmsh_service/mod/aai_event_handler.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/pm-subscription-handler/pmsh_service/mod/aai_event_handler.py b/components/pm-subscription-handler/pmsh_service/mod/aai_event_handler.py index e40060f0..07de7d68 100755 --- a/components/pm-subscription-handler/pmsh_service/mod/aai_event_handler.py +++ b/components/pm-subscription-handler/pmsh_service/mod/aai_event_handler.py @@ -21,6 +21,7 @@ from enum import Enum from mod import pmsh_logging as logger from mod.network_function import NetworkFunction, NetworkFunctionFilter +from mod.subscription import AdministrativeState class XNFType(Enum): @@ -70,6 +71,7 @@ def _process_event(action, new_status, xnf_name, subscription, mr_pub, app_conf) if local_xnf is None: logger.debug(f'Activating subscription for network function {xnf_name}') + subscription.administrativeState = AdministrativeState.UNLOCKED.value subscription.process_subscription([NetworkFunction( nf_name=xnf_name, orchestration_status=new_status)], mr_pub, app_conf) else: |