Loading src/common/type_checkers/Assertions.py +2 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,8 @@ def validate_device_driver_enum(message): 'DEVICEDRIVER_RYU', 'DEVICEDRIVER_GNMI_NOKIA_SRLINUX', 'DEVICEDRIVER_OPENROADM', 'DEVICEDRIVER_GNMI_OPENCONFIG', 'DEVICEDRIVER_RESTCONF_OPENCONFIG', 'DEVICEDRIVER_CUSTOM_IPOWDM', ] def validate_device_operational_status_enum(message): Loading src/context/service/database/models/enums/DeviceDriver.py +1 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ class ORM_DeviceDriverEnum(enum.Enum): GNMI_NOKIA_SRLINUX = DeviceDriverEnum.DEVICEDRIVER_GNMI_NOKIA_SRLINUX OPENROADM = DeviceDriverEnum.DEVICEDRIVER_OPENROADM RESTCONF_OPENCONFIG = DeviceDriverEnum.DEVICEDRIVER_RESTCONF_OPENCONFIG CUSTOM_IPOWDM = DeviceDriverEnum.DEVICEDRIVER_CUSTOM_IPOWDM grpc_to_enum__device_driver = functools.partial( grpc_to_enum, DeviceDriverEnum, ORM_DeviceDriverEnum) src/device/service/drivers/__init__.py +11 −0 Original line number Diff line number Diff line Loading @@ -270,3 +270,14 @@ 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 DRIVERS.append( (CustomIPoWDMDriver, [ { FilterFieldEnum.DEVICE_TYPE: [ DeviceTypeEnum.PACKET_ROUTER ], FilterFieldEnum.DRIVER : DeviceDriverEnum.DEVICEDRIVER_CUSTOM_IPOWDM, } ])) No newline at end of file src/device/service/drivers/ietf_l2vpn/TfsApiClient.py +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ MAPPING_DRIVER = { 'DEVICEDRIVER_GNMI_NOKIA_SRLINUX' : 19, 'DEVICEDRIVER_OPENROADM' : 20, 'DEVICEDRIVER_RESTCONF_OPENCONFIG' : 21, 'DEVICEDRIVER_CUSTOM_IPOWDM' : 22, } Loading src/device/service/drivers/ietf_l3vpn/TfsApiClient.py +1 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,7 @@ MAPPING_DRIVER = { 'DEVICEDRIVER_GNMI_NOKIA_SRLINUX' : 19, 'DEVICEDRIVER_OPENROADM' : 20, 'DEVICEDRIVER_RESTCONF_OPENCONFIG' : 21, 'DEVICEDRIVER_CUSTOM_IPOWDM' : 22, } Loading Loading
src/common/type_checkers/Assertions.py +2 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,8 @@ def validate_device_driver_enum(message): 'DEVICEDRIVER_RYU', 'DEVICEDRIVER_GNMI_NOKIA_SRLINUX', 'DEVICEDRIVER_OPENROADM', 'DEVICEDRIVER_GNMI_OPENCONFIG', 'DEVICEDRIVER_RESTCONF_OPENCONFIG', 'DEVICEDRIVER_CUSTOM_IPOWDM', ] def validate_device_operational_status_enum(message): Loading
src/context/service/database/models/enums/DeviceDriver.py +1 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ class ORM_DeviceDriverEnum(enum.Enum): GNMI_NOKIA_SRLINUX = DeviceDriverEnum.DEVICEDRIVER_GNMI_NOKIA_SRLINUX OPENROADM = DeviceDriverEnum.DEVICEDRIVER_OPENROADM RESTCONF_OPENCONFIG = DeviceDriverEnum.DEVICEDRIVER_RESTCONF_OPENCONFIG CUSTOM_IPOWDM = DeviceDriverEnum.DEVICEDRIVER_CUSTOM_IPOWDM grpc_to_enum__device_driver = functools.partial( grpc_to_enum, DeviceDriverEnum, ORM_DeviceDriverEnum)
src/device/service/drivers/__init__.py +11 −0 Original line number Diff line number Diff line Loading @@ -270,3 +270,14 @@ 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 DRIVERS.append( (CustomIPoWDMDriver, [ { FilterFieldEnum.DEVICE_TYPE: [ DeviceTypeEnum.PACKET_ROUTER ], FilterFieldEnum.DRIVER : DeviceDriverEnum.DEVICEDRIVER_CUSTOM_IPOWDM, } ])) No newline at end of file
src/device/service/drivers/ietf_l2vpn/TfsApiClient.py +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ MAPPING_DRIVER = { 'DEVICEDRIVER_GNMI_NOKIA_SRLINUX' : 19, 'DEVICEDRIVER_OPENROADM' : 20, 'DEVICEDRIVER_RESTCONF_OPENCONFIG' : 21, 'DEVICEDRIVER_CUSTOM_IPOWDM' : 22, } Loading
src/device/service/drivers/ietf_l3vpn/TfsApiClient.py +1 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,7 @@ MAPPING_DRIVER = { 'DEVICEDRIVER_GNMI_NOKIA_SRLINUX' : 19, 'DEVICEDRIVER_OPENROADM' : 20, 'DEVICEDRIVER_RESTCONF_OPENCONFIG' : 21, 'DEVICEDRIVER_CUSTOM_IPOWDM' : 22, } Loading