Commit 711b810f authored by Andrea Sgambelluri's avatar Andrea Sgambelluri
Browse files

feat: implement CNIT control for lite coherent transceiver

- Add CD compensation calculation based on span lengths
- Update OpticalController for lite coherent transceiver support
- Add test configurations for CNIT control
- Update service handling for coherent transceiver
parent 4c178a91
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -20,10 +20,14 @@
export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/"

# Set the list of components, separated by spaces, you want to build images for, and deploy.
<<<<<<< HEAD
export TFS_COMPONENTS="context device pathcomp service nbi webui"
=======
export TFS_COMPONENTS="context device pathcomp opticalcontroller service slice nbi webui"
>>>>>>> 6c35217c8 (Adapated the Optical controller to compute chromatic dispersion compenstation from the span lengths)

# Uncomment to activate Monitoring (old)
#export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring"
export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring"

# Uncomment to activate Monitoring Framework (new)
#export TFS_COMPONENTS="${TFS_COMPONENTS} kpi_manager kpi_value_writer kpi_value_api telemetry analytics automation"

src-lite.zip

0 → 100644
+24.5 MiB

File added.

No diff preview for this file type.

+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import grpc, logging, json , traceback
import grpc, logging, time, json , traceback
from common.method_wrappers.Decorator import MetricsPool, safe_and_metered_rpc_method
from common.method_wrappers.ServiceExceptions import NotFoundException
from common.proto.context_pb2 import (
+1 −0
Original line number Diff line number Diff line
@@ -667,6 +667,7 @@ def extract_resources(config : dict, device : Device) -> list[list[dict], dict]:
            resources.append(is_key_existed('operational-mode',    keys_dic=config['new_config']))
            resources.append(is_key_existed('line-port',           keys_dic=config['new_config']))
            resources.append(is_key_existed('status',              keys_dic=config['new_config'], key_name_to_use="admin-state"))
            resources.append(is_key_existed('chromatic_dispersion',keys_dic=config['new_config'], key_name_to_use='chromatic-dispersion'))
            resources.append(is_key_existed('band_type',           keys_dic=config['new_config'], key_name_to_use='name'))
            resources.append(is_key_existed('ob_id',               keys_dic=config['new_config'], key_name_to_use='optical-band-parent'))
            resources.append(is_key_existed('bidir',               keys_dic=config['new_config']))
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
# limitations under the License.

import time
import json
import json, time
import logging, pytz, re, threading
from typing import Any, List, Tuple, Union
from apscheduler.executors.pool import ThreadPoolExecutor
Loading