Loading proto/context.proto +1 −0 Changes for proto/context.proto: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -261,6 +261,7 @@ enum DeviceDriverEnum { DEVICEDRIVER_OPENROADM = 20; DEVICEDRIVER_RESTCONF_OPENCONFIG = 21; DEVICEDRIVER_CUSTOM_IPOWDM = 22; DEVICEDRIVER_MIKROTIK_ROUTEROS = 23; } enum DeviceOperationalStatusEnum { Loading scripts/run_tests_locally-device-mikrotik-routeros.sh 0 → 100755 +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 src/context/service/database/models/enums/DeviceDriver.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 Loading @@ -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) src/device/service/drivers/__init__.py +17 −1 Changes for src/device/service/drivers/__init__.py: 17 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -270,8 +270,10 @@ if LOAD_ALL_DEVICE_DRIVERS: FilterFieldEnum.DRIVER : DeviceDriverEnum.DEVICEDRIVER_RESTCONF_OPENCONFIG, } ])) if LOAD_ALL_DEVICE_DRIVERS: from .custom_ipowdm.CustomIpowdmDriver import CustomIpowdmDriver # pylint: disable=wrong-import-position # pylint: disable=wrong-import-position from .custom_ipowdm.CustomIpowdmDriver import CustomIpowdmDriver DRIVERS.append( (CustomIpowdmDriver, [ { Loading @@ -282,3 +284,17 @@ if LOAD_ALL_DEVICE_DRIVERS: FilterFieldEnum.DRIVER : DeviceDriverEnum.DEVICEDRIVER_CUSTOM_IPOWDM, } ])) if LOAD_ALL_DEVICE_DRIVERS: # pylint: disable=wrong-import-position from .mikrotik.MikrotikRouterOSDriver import MikrotikRouterOSDriver DRIVERS.append( (MikrotikRouterOSDriver, [ { FilterFieldEnum.DEVICE_TYPE: [ DeviceTypeEnum.PACKET_ROUTER, DeviceTypeEnum.EMULATED_PACKET_ROUTER ], FilterFieldEnum.DRIVER : DeviceDriverEnum.DEVICEDRIVER_MIKROTIK_ROUTEROS, } ])) src/device/service/drivers/mikrotik/MikrotikRouterOSDriver.py 0 → 100644 +830 −0 File added.Preview size limit exceeded, changes collapsed. Show changes Loading
proto/context.proto +1 −0 Changes for proto/context.proto: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -261,6 +261,7 @@ enum DeviceDriverEnum { DEVICEDRIVER_OPENROADM = 20; DEVICEDRIVER_RESTCONF_OPENCONFIG = 21; DEVICEDRIVER_CUSTOM_IPOWDM = 22; DEVICEDRIVER_MIKROTIK_ROUTEROS = 23; } enum DeviceOperationalStatusEnum { Loading
scripts/run_tests_locally-device-mikrotik-routeros.sh 0 → 100755 +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
src/context/service/database/models/enums/DeviceDriver.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 Loading @@ -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)
src/device/service/drivers/__init__.py +17 −1 Changes for src/device/service/drivers/__init__.py: 17 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -270,8 +270,10 @@ if LOAD_ALL_DEVICE_DRIVERS: FilterFieldEnum.DRIVER : DeviceDriverEnum.DEVICEDRIVER_RESTCONF_OPENCONFIG, } ])) if LOAD_ALL_DEVICE_DRIVERS: from .custom_ipowdm.CustomIpowdmDriver import CustomIpowdmDriver # pylint: disable=wrong-import-position # pylint: disable=wrong-import-position from .custom_ipowdm.CustomIpowdmDriver import CustomIpowdmDriver DRIVERS.append( (CustomIpowdmDriver, [ { Loading @@ -282,3 +284,17 @@ if LOAD_ALL_DEVICE_DRIVERS: FilterFieldEnum.DRIVER : DeviceDriverEnum.DEVICEDRIVER_CUSTOM_IPOWDM, } ])) if LOAD_ALL_DEVICE_DRIVERS: # pylint: disable=wrong-import-position from .mikrotik.MikrotikRouterOSDriver import MikrotikRouterOSDriver DRIVERS.append( (MikrotikRouterOSDriver, [ { FilterFieldEnum.DEVICE_TYPE: [ DeviceTypeEnum.PACKET_ROUTER, DeviceTypeEnum.EMULATED_PACKET_ROUTER ], FilterFieldEnum.DRIVER : DeviceDriverEnum.DEVICEDRIVER_MIKROTIK_ROUTEROS, } ]))
src/device/service/drivers/mikrotik/MikrotikRouterOSDriver.py 0 → 100644 +830 −0 File added.Preview size limit exceeded, changes collapsed. Show changes