diff --git a/my_deploy.sh b/my_deploy.sh index 4aa4e43b9b8b53cb86c4843bbd70672fbba7f543..f74d4982ecf7ba79fa42534647758876c8098b1e 100755 --- a/my_deploy.sh +++ b/my_deploy.sh @@ -21,7 +21,6 @@ export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/" # Set the list of components, separated by spaces, you want to build images for, and deploy. export TFS_COMPONENTS="context device pathcomp service slice nbi webui" -# export TFS_COMPONENTS="context device" # Uncomment to activate Monitoring (old) #export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring" diff --git a/src/telemetry/backend/drivers/emulated/EmulatedDriver.py b/src/telemetry/backend/drivers/emulated/EmulatedDriver.py index 650867dbaa45be2b8279cde89b9e0eabe0d4f370..0c5712ffe44202c3e8d53ad42a4b93f5b8f2b5a9 100644 --- a/src/telemetry/backend/drivers/emulated/EmulatedDriver.py +++ b/src/telemetry/backend/drivers/emulated/EmulatedDriver.py @@ -1,3 +1,17 @@ +# Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from telemetry.backend.drivers.core._Driver import _Driver from anytree import Node, Resolver from apscheduler.events import EVENT_JOB_ADDED, EVENT_JOB_REMOVED diff --git a/src/telemetry/backend/drivers/emulated/SyntheticMetricsGenerator.py b/src/telemetry/backend/drivers/emulated/SyntheticMetricsGenerator.py index d6606b2c123f89118fa74de80fb411d5840efa9e..5471fef198604bf87589c350827f49da217f177f 100644 --- a/src/telemetry/backend/drivers/emulated/SyntheticMetricsGenerator.py +++ b/src/telemetry/backend/drivers/emulated/SyntheticMetricsGenerator.py @@ -1,4 +1,17 @@ -from types import NoneType +# Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import numpy as np import random import logging diff --git a/src/telemetry/backend/requirements.in b/src/telemetry/backend/requirements.in index e6a559be714faa31196206dbbdc53788506369b5..196dcc5a114ac96e401118f86e768b71826de181 100644 --- a/src/telemetry/backend/requirements.in +++ b/src/telemetry/backend/requirements.in @@ -12,4 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. +anytree==2.8.0 confluent-kafka==2.3.* +numpy==2.2.1 diff --git a/src/telemetry/backend/tests/messages_emulated.py b/src/telemetry/backend/tests/messages_emulated.py index adf0376e94f3499613aab34abf4b25667d70e4ab..451792327eb17a5cc4581cf436099c7730864039 100644 --- a/src/telemetry/backend/tests/messages_emulated.py +++ b/src/telemetry/backend/tests/messages_emulated.py @@ -1,3 +1,17 @@ +# Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import logging # Configure logging to ensure logs appear on the console logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') diff --git a/src/telemetry/backend/tests/test_emulated.py b/src/telemetry/backend/tests/test_emulated.py index 94eb7656134a74aa1f621342104341aa02171cf3..14d8a8ab925216735c0cd60a0f5da2ee9892a59f 100644 --- a/src/telemetry/backend/tests/test_emulated.py +++ b/src/telemetry/backend/tests/test_emulated.py @@ -1,3 +1,17 @@ +# Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import logging import time import pytest diff --git a/src/telemetry/requirements.in b/src/telemetry/requirements.in index e264104e36637b6285a6503995bf048379461ef5..503468a662599f0225b293d0ef4c4e4313fa3e0f 100644 --- a/src/telemetry/requirements.in +++ b/src/telemetry/requirements.in @@ -12,9 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -anytree==2.8.0 APScheduler==3.10.1 -numpy==2.2.1 psycopg2-binary==2.9.3 python-dateutil==2.8.2 python-json-logger==2.0.2