Openroadm flex grid

Closes #341 (closed)

Edited by Lluis Gifre Renom

Merge request reports

Loading
+1 −0
Changes for proto/context.proto: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -251,6 +251,7 @@ enum DeviceDriverEnum {
  DEVICEDRIVER_MORPHEUS = 17;
  DEVICEDRIVER_RYU = 18;
  DEVICEDRIVER_GNMI_NOKIA_SRLINUX = 19;
  DEVICEDRIVER_OPENROADM = 20;
}

enum DeviceOperationalStatusEnum {
+12 −0
Changes for src/common/tools/context_queries/OpticalConfig.py: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -67,6 +67,18 @@ def opticalconfig_get_uuid(
        ('name', device_name),
    ], extra_details=['At least one is required to produce a OpticalConfig UUID'])

def opticalconfig_uuid_get_duuid(
    device_uuid , allow_random : bool = False
) -> str:
     
    if (len(device_uuid)>0):
        return get_uuid_from_string(f"{device_uuid}_opticalconfig")
    if allow_random: return get_uuid_random()

    raise InvalidArgumentsException([
        ('DeviceId ', device_id),
    ], extra_details=['device_id is required to produce a OpticalConfig UUID'])


def ob_get_uuid(
    ob_name:str , allow_random : bool = False
+1 −0
Changes for src/common/DeviceTypes.py: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ class DeviceTypeEnum(Enum):
    EMULATED_OPEN_LINE_SYSTEM       = 'emu-open-line-system'
    EMULATED_OPTICAL_ROADM          = 'emu-optical-roadm'
    EMULATED_OPTICAL_TRANSPONDER    = 'emu-optical-transponder'
    EMULATED_OPEN_ROADM             = 'emu-optical-openroadm'
    EMULATED_OPTICAL_SPLITTER       = 'emu-optical-splitter'        # passive component required for XR Constellation
    EMULATED_P4_SWITCH              = 'emu-p4-switch'
    EMULATED_PACKET_RADIO_ROUTER    = 'emu-packet-radio-router'
+1 −1
Changes for src/context/service/database/models/OpticalConfig/RoadmModel.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ class ORInterfaceModel (_Base):
    __tablename__        =  'open_roadm_interface'

    interface_uuid       =  Column(String,  primary_key = True)
    name                 =  Column(String,  nullable = False, unique = True)
    name                 =  Column(String,  nullable = False)
    type                 =  Column(String,  nullable = True)
    administrative_state =  Column(String,  nullable = True)
    circuit_pack_name    =  Column(String,  nullable = True)
+1 −0
Changes for src/context/service/database/models/enums/DeviceDriver.py: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@ class ORM_DeviceDriverEnum(enum.Enum):
    MORPHEUS              = DeviceDriverEnum.DEVICEDRIVER_MORPHEUS
    RYU                   = DeviceDriverEnum.DEVICEDRIVER_RYU
    GNMI_NOKIA_SRLINUX    = DeviceDriverEnum.DEVICEDRIVER_GNMI_NOKIA_SRLINUX
    OPENROADM             = DeviceDriverEnum.DEVICEDRIVER_OPENROADM

grpc_to_enum__device_driver = functools.partial(
    grpc_to_enum, DeviceDriverEnum, ORM_DeviceDriverEnum)
Loading
Loading