diff options
author | efiacor <fiachra.corcoran@est.tech> | 2021-01-13 16:12:57 +0000 |
---|---|---|
committer | efiacor <fiachra.corcoran@est.tech> | 2021-01-26 16:47:26 +0000 |
commit | f7be006e7cc638788164fb1028d03898138b8c16 (patch) | |
tree | 253d460ca148495d31203b9038b1e24ec209d7e9 /components/pm-subscription-handler/pmsh_service/mod/network_function.py | |
parent | 2510fa240ca7395ff8a36762d5892413ab05fd68 (diff) |
[PMSH] Update sub object on activate
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Change-Id: Id9418301e0cb4d373339b9b3e3476f7db5770f3e
Issue-ID: DCAEGEN2-2152
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service/mod/network_function.py')
-rwxr-xr-x | components/pm-subscription-handler/pmsh_service/mod/network_function.py | 8 |
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'] |