summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/pmsh_service/mod/subscription_handler.py
diff options
context:
space:
mode:
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service/mod/subscription_handler.py')
-rw-r--r--components/pm-subscription-handler/pmsh_service/mod/subscription_handler.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/components/pm-subscription-handler/pmsh_service/mod/subscription_handler.py b/components/pm-subscription-handler/pmsh_service/mod/subscription_handler.py
index 29f9121d..5fbb9a6c 100644
--- a/components/pm-subscription-handler/pmsh_service/mod/subscription_handler.py
+++ b/components/pm-subscription-handler/pmsh_service/mod/subscription_handler.py
@@ -18,9 +18,7 @@
from jsonschema import ValidationError
from mod import logger, aai_client
-from mod.aai_event_handler import process_aai_events
from mod.network_function import NetworkFunctionFilter
-from mod.pmsh_utils import PeriodicTask
from mod.subscription import AdministrativeState
@@ -73,7 +71,6 @@ class SubscriptionHandler:
def _activate(self, new_administrative_state):
if not self.app_conf.nf_filter:
self.app_conf.nf_filter = NetworkFunctionFilter(**self.app_conf.subscription.nfFilter)
- self._start_aai_event_thread()
self.app_conf.subscription.update_sub_params(new_administrative_state,
self.app_conf.subscription.fileBasedGP,
self.app_conf.subscription.fileLocation,
@@ -91,15 +88,6 @@ class SubscriptionHandler:
self.app_conf.subscription.delete_subscription_from_nfs(nfs, self.mr_pub)
self.app_conf.subscription.update_subscription_status()
- def _start_aai_event_thread(self):
- logger.info('Starting polling for NF info on AAI-EVENT topic on DMaaP MR.')
- self.aai_event_thread = PeriodicTask(20, process_aai_events, args=(self.aai_sub,
- self.mr_pub,
- self.app,
- self.app_conf))
- self.aai_event_thread.name = 'aai_event_thread'
- self.aai_event_thread.start()
-
def stop_aai_event_thread(self):
if self.aai_event_thread is not None:
self.aai_event_thread.cancel()