2022-09-25 00:39:51 +02:00
|
|
|
"""
|
|
|
|
|
This file is part of Linspector (https://linspector.org/)
|
2022-09-27 06:07:55 +02:00
|
|
|
Copyright (c) 2022 Johannes Findeisen <you@hanez.org>. All Rights Reserved.
|
2022-09-28 08:27:51 +02:00
|
|
|
See LICENSE (MIT)
|
2022-09-25 00:39:51 +02:00
|
|
|
"""
|
2022-09-28 08:27:51 +02:00
|
|
|
from fritzconnection.lib.fritzstatus import FritzStatus
|
2022-09-25 00:39:51 +02:00
|
|
|
|
2022-09-28 02:04:50 +02:00
|
|
|
from linspector.core.service import Service
|
|
|
|
|
|
2022-09-25 00:39:51 +02:00
|
|
|
|
2022-10-06 02:42:15 +02:00
|
|
|
def create(configuration, environment, log):
|
|
|
|
|
return FritzboxUplinkService(configuration, environment, log)
|
2022-09-27 21:18:47 +02:00
|
|
|
|
|
|
|
|
|
2022-09-28 02:04:50 +02:00
|
|
|
class FritzboxUplinkService(Service):
|
2022-10-06 02:42:15 +02:00
|
|
|
def __init__(self, configuration, environment, log):
|
|
|
|
|
super().__init__(configuration, environment, log)
|
2022-09-25 00:39:51 +02:00
|
|
|
self.__configuration = configuration
|
|
|
|
|
self.__environment = environment
|
2022-10-06 02:42:15 +02:00
|
|
|
self.__log = log
|
2022-09-27 06:07:55 +02:00
|
|
|
|
2022-10-01 08:43:19 +02:00
|
|
|
def execute(self, **kwargs):
|
2022-10-06 02:42:15 +02:00
|
|
|
self.__log('debug', 'FritzboxUplinkService object ' + str(self) + ' using kwargs: ' + str(kwargs))
|
2022-09-28 08:27:51 +02:00
|
|
|
return
|