Resolve "(CTTC) New MikroTik RouterOS SBI Driver for L2 EVPNs"

Closes #365 (closed)

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
@@ -261,6 +261,7 @@ enum DeviceDriverEnum {
  DEVICEDRIVER_OPENROADM = 20;
  DEVICEDRIVER_RESTCONF_OPENCONFIG = 21;
  DEVICEDRIVER_CUSTOM_IPOWDM = 22;
  DEVICEDRIVER_MIKROTIK_ROUTEROS = 23;
}

enum DeviceOperationalStatusEnum {
+24 −0
Changes for scripts/run_tests_locally-device-mikrotik-routeros.sh: 24 added lines, 0 removed lines.
Original line number Diff line number Diff line
#!/bin/bash
# Copyright 2022-2026 ETSI 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.


PROJECTDIR=`pwd`

cd $PROJECTDIR/src
RCFILE=$PROJECTDIR/coverage/.coveragerc

# Run unitary tests and analyze coverage of code at same time
coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO -o log_cli=true --verbose \
     tests/mikrotik_routeros/test_bgp.py
+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
@@ -45,6 +45,7 @@ class ORM_DeviceDriverEnum(enum.Enum):
    OPENROADM             = DeviceDriverEnum.DEVICEDRIVER_OPENROADM
    RESTCONF_OPENCONFIG   = DeviceDriverEnum.DEVICEDRIVER_RESTCONF_OPENCONFIG
    CUSTOM_IPOWDM         = DeviceDriverEnum.DEVICEDRIVER_CUSTOM_IPOWDM
    MIKROTIK_ROUTEROS     = DeviceDriverEnum.DEVICEDRIVER_MIKROTIK_ROUTEROS

grpc_to_enum__device_driver = functools.partial(
    grpc_to_enum, DeviceDriverEnum, ORM_DeviceDriverEnum)
+830 −0

File added.

Preview size limit exceeded, changes collapsed.

+14 −0
Changes for src/device/service/drivers/mikrotik/__init__.py: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Copyright 2022-2026 ETSI 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.
Loading
Loading