Loading proto/context.proto +1 −0 Original line number Diff line number Diff line Loading @@ -191,6 +191,7 @@ enum DeviceDriverEnum { DEVICEDRIVER_IETF_NETWORK_TOPOLOGY = 4; DEVICEDRIVER_ONF_TR_352 = 5; DEVICEDRIVER_XR = 6; DEVICEDRIVER_BGPLS = 7; } enum DeviceOperationalStatusEnum { Loading src/common/DeviceTypes.py +3 −1 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ class DeviceTypeEnum(Enum): EMULATED_P4_SWITCH = 'emu-p4-switch' EMULATED_PACKET_ROUTER = 'emu-packet-router' EMULATED_PACKET_SWITCH = 'emu-packet-switch' EMULATED_BGPLS_ASNUMBER = 'emu-bgpls-asnumber' # Real device types DATACENTER = 'datacenter' Loading @@ -39,3 +40,4 @@ class DeviceTypeEnum(Enum): PACKET_ROUTER = 'packet-router' PACKET_SWITCH = 'packet-switch' XR_CONSTELLATION = 'xr-constellation' BGPLS_ASNUMBER = 'bgpls-asnumber' No newline at end of file src/common/tools/object_factory/Device.py +3 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,9 @@ DEVICE_MICROWAVE_DRIVERS = [DeviceDriverEnum.DEVICEDRIVER_IETF_NETWORK_TOPOLOGY] DEVICE_P4_TYPE = DeviceTypeEnum.P4_SWITCH.value DEVICE_P4_DRIVERS = [DeviceDriverEnum.DEVICEDRIVER_P4] DEVICE_BGPLS_TYPE = DeviceTypeEnum.BGPLS_ASNUMBER.value DEVICE_BGPLS_DRIVERS = [DeviceDriverEnum.DEVICEDRIVER_BGPLS] def json_device_id(device_uuid : str): return {'device_uuid': {'uuid': device_uuid}} Loading src/common/type_checkers/Assertions.py +1 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ def validate_device_driver_enum(message): 'DEVICEDRIVER_IETF_NETWORK_TOPOLOGY', 'DEVICEDRIVER_ONF_TR_352', 'DEVICEDRIVER_XR', 'DEVICEDRIVER_BGPLS', ] 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 @@ -24,6 +24,7 @@ class ORM_DeviceDriverEnum(enum.Enum): IETF_NETWORK_TOPOLOGY = DeviceDriverEnum.DEVICEDRIVER_IETF_NETWORK_TOPOLOGY ONF_TR_352 = DeviceDriverEnum.DEVICEDRIVER_ONF_TR_352 XR = DeviceDriverEnum.DEVICEDRIVER_XR BGPLS = DeviceDriverEnum.DEVICEDRIVER_BGPLS grpc_to_enum__device_driver = functools.partial( grpc_to_enum, DeviceDriverEnum, ORM_DeviceDriverEnum) Loading
proto/context.proto +1 −0 Original line number Diff line number Diff line Loading @@ -191,6 +191,7 @@ enum DeviceDriverEnum { DEVICEDRIVER_IETF_NETWORK_TOPOLOGY = 4; DEVICEDRIVER_ONF_TR_352 = 5; DEVICEDRIVER_XR = 6; DEVICEDRIVER_BGPLS = 7; } enum DeviceOperationalStatusEnum { Loading
src/common/DeviceTypes.py +3 −1 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ class DeviceTypeEnum(Enum): EMULATED_P4_SWITCH = 'emu-p4-switch' EMULATED_PACKET_ROUTER = 'emu-packet-router' EMULATED_PACKET_SWITCH = 'emu-packet-switch' EMULATED_BGPLS_ASNUMBER = 'emu-bgpls-asnumber' # Real device types DATACENTER = 'datacenter' Loading @@ -39,3 +40,4 @@ class DeviceTypeEnum(Enum): PACKET_ROUTER = 'packet-router' PACKET_SWITCH = 'packet-switch' XR_CONSTELLATION = 'xr-constellation' BGPLS_ASNUMBER = 'bgpls-asnumber' No newline at end of file
src/common/tools/object_factory/Device.py +3 −0 Original line number Diff line number Diff line Loading @@ -43,6 +43,9 @@ DEVICE_MICROWAVE_DRIVERS = [DeviceDriverEnum.DEVICEDRIVER_IETF_NETWORK_TOPOLOGY] DEVICE_P4_TYPE = DeviceTypeEnum.P4_SWITCH.value DEVICE_P4_DRIVERS = [DeviceDriverEnum.DEVICEDRIVER_P4] DEVICE_BGPLS_TYPE = DeviceTypeEnum.BGPLS_ASNUMBER.value DEVICE_BGPLS_DRIVERS = [DeviceDriverEnum.DEVICEDRIVER_BGPLS] def json_device_id(device_uuid : str): return {'device_uuid': {'uuid': device_uuid}} Loading
src/common/type_checkers/Assertions.py +1 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ def validate_device_driver_enum(message): 'DEVICEDRIVER_IETF_NETWORK_TOPOLOGY', 'DEVICEDRIVER_ONF_TR_352', 'DEVICEDRIVER_XR', 'DEVICEDRIVER_BGPLS', ] 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 @@ -24,6 +24,7 @@ class ORM_DeviceDriverEnum(enum.Enum): IETF_NETWORK_TOPOLOGY = DeviceDriverEnum.DEVICEDRIVER_IETF_NETWORK_TOPOLOGY ONF_TR_352 = DeviceDriverEnum.DEVICEDRIVER_ONF_TR_352 XR = DeviceDriverEnum.DEVICEDRIVER_XR BGPLS = DeviceDriverEnum.DEVICEDRIVER_BGPLS grpc_to_enum__device_driver = functools.partial( grpc_to_enum, DeviceDriverEnum, ORM_DeviceDriverEnum)