summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/pmsh_service/mod/aai_event_handler.py
diff options
context:
space:
mode:
authoregernug <gerard.nugent@est.tech>2020-08-19 14:57:36 +0100
committeregernug <gerard.nugent@est.tech>2020-09-08 09:28:01 +0100
commit2e3c407d0fcf8c73c5fd6714d6013e37930c92cb (patch)
treec9cac72011779bcd6ffdb7658653a08958fa524c /components/pm-subscription-handler/pmsh_service/mod/aai_event_handler.py
parente783ede93e1c0f2f76a332fc82f6e6a7f40f04fc (diff)
[PMSH] Enhance Filtering Mechanism
Issue-ID: DCAEGEN2-2151 Signed-off-by: egernug <gerard.nugent@est.tech> Change-Id: Ib6c207ac08a54dea06346596ff11c980fa4cf5e8
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.py4
1 files changed, 3 insertions, 1 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 60b69602..92369322 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
@@ -59,8 +59,10 @@ def process_aai_events(mr_sub, mr_pub, app, app_conf):
xnf_name = aai_entity['pnf-name'] if entity_type == XNFType.PNF.value \
else aai_entity['vnf-name']
new_status = aai_entity['orchestration-status']
+ model_invariant_id = aai_entity['model-invariant-id']
+ model_version_id = aai_entity['model-version-id']
- if app_conf.nf_filter.is_nf_in_filter(xnf_name, new_status):
+ if app_conf.nf_filter.is_nf_in_filter(xnf_name, model_invariant_id, model_version_id, new_status):
_process_event(action, new_status, xnf_name, mr_pub, app_conf)
except Exception as e:
logger.error(f'Failed to process AAI event: {e}', exc_info=True)