diff --git a/src/common/DeviceTypes.py b/src/common/DeviceTypes.py index c5ea4c54fef7b739a4ad33dd3759c3bdef124038..1cda1fa21a8a1ba996f5a7797059ebe0ace19318 100644 --- a/src/common/DeviceTypes.py +++ b/src/common/DeviceTypes.py @@ -18,6 +18,7 @@ class DeviceTypeEnum(Enum): EMULATED_DATACENTER = 'emu-datacenter' EMULATED_OPEN_LINE_SYSTEM = 'emu-open-line-system' EMULATED_PACKET_ROUTER = 'emu-packet-router' + EMULATED_PACKET_SWITCH = 'emu-packet-switch' DATACENTER = 'datacenter' MICROVAWE_RADIO_SYSTEM = 'microwave-radio-system' OPTICAL_ROADM = 'optical-roadm' diff --git a/src/pathcomp/frontend/service/algorithms/tools/ConstantsMappings.py b/src/pathcomp/frontend/service/algorithms/tools/ConstantsMappings.py index 2ff97b96c2a33e77745239b5f944cecb19639b1d..8561ab110ad09b52c3040063241c0cc90dbbb223 100644 --- a/src/pathcomp/frontend/service/algorithms/tools/ConstantsMappings.py +++ b/src/pathcomp/frontend/service/algorithms/tools/ConstantsMappings.py @@ -83,6 +83,7 @@ DEVICE_TYPE_TO_LAYER = { DeviceTypeEnum.EMULATED_PACKET_ROUTER.value : DeviceLayerEnum.PACKET_DEVICE, DeviceTypeEnum.PACKET_ROUTER.value : DeviceLayerEnum.PACKET_DEVICE, + DeviceTypeEnum.EMULATED_PACKET_SWITCH.value : DeviceLayerEnum.MAC_LAYER_DEVICE, DeviceTypeEnum.PACKET_SWITCH.value : DeviceLayerEnum.MAC_LAYER_DEVICE, DeviceTypeEnum.P4_SWITCH.value : DeviceLayerEnum.MAC_LAYER_DEVICE,