summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/pmsh_service/mod/network_function.py
diff options
context:
space:
mode:
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service/mod/network_function.py')
-rwxr-xr-xcomponents/pm-subscription-handler/pmsh_service/mod/network_function.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/pm-subscription-handler/pmsh_service/mod/network_function.py b/components/pm-subscription-handler/pmsh_service/mod/network_function.py
index 02656356..83130a8e 100755
--- a/components/pm-subscription-handler/pmsh_service/mod/network_function.py
+++ b/components/pm-subscription-handler/pmsh_service/mod/network_function.py
@@ -1,5 +1,5 @@
# ============LICENSE_START===================================================
-# Copyright (C) 2020 Nordix Foundation.
+# Copyright (C) 2020-2021 Nordix Foundation.
# ============================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -18,7 +18,6 @@
import re
-import mod.aai_client
from mod import logger, db
from mod.api.db_models import NetworkFunctionModel
@@ -89,8 +88,9 @@ class NetworkFunction:
def set_nf_model_params(self, app_conf):
params_set = True
try:
- sdnc_model_data = mod.aai_client.get_aai_model_data(app_conf, self.model_invariant_id,
- self.model_version_id, self.nf_name)
+ from mod.aai_client import get_aai_model_data
+ sdnc_model_data = get_aai_model_data(app_conf, self.model_invariant_id,
+ self.model_version_id, self.nf_name)
try:
self.sdnc_model_name = sdnc_model_data['sdnc-model-name']