summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/pmsh_service/mod/aai_event_handler.py
diff options
context:
space:
mode:
authoremartin <ephraim.martin@est.tech>2020-03-27 16:31:48 +0000
committeremartin <ephraim.martin@est.tech>2020-03-27 16:46:55 +0000
commit01dfa52c169aa902e2cd8f58b65daaaf3af5e8e8 (patch)
treec4bb0a8146026cee8d0f14695e047b314935ba84 /components/pm-subscription-handler/pmsh_service/mod/aai_event_handler.py
parent551cc5be912bb377931d3e38d41af11d53bf0e63 (diff)
Fix bug where PMSH pushes config to non-active pnf
Issue-ID: DCAEGEN2-2173 Signed-off-by: emartin <ephraim.martin@est.tech> Change-Id: Ib93a71e825f621721b5acda059cadcb7824f997d
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service/mod/aai_event_handler.py')
-rwxr-xr-xcomponents/pm-subscription-handler/pmsh_service/mod/aai_event_handler.py7
1 files changed, 1 insertions, 6 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 ee75fbf5..e40060f0 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
@@ -33,11 +33,6 @@ class AAIEvent(Enum):
UPDATE = 'UPDATE'
-class OrchestrationStatus(Enum):
- ACTIVE = 'Active'
- INVENTORIED = 'Inventoried'
-
-
def process_aai_events(mr_sub, subscription, mr_pub, app, app_conf):
"""
Processes AAI UPDATE events for each filtered xNFs where orchestration status is set to Active.
@@ -64,7 +59,7 @@ def process_aai_events(mr_sub, subscription, mr_pub, app, app_conf):
'vnf-name']
new_status = aai_xnf['orchestration-status']
- if NetworkFunctionFilter(**subscription.nfFilter).is_nf_in_filter(xnf_name):
+ if NetworkFunctionFilter(**subscription.nfFilter).is_nf_in_filter(xnf_name, new_status):
_process_event(action, new_status, xnf_name, subscription, mr_pub, app_conf)