Commit 6deca20d authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Added support for emulated pakcet switches

Common:
- added device type for emulated pakcet switches

PathComp:
- added layer mapping for emulated pakcet switches
parent 61eff2eb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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'
+1 −0
Original line number Diff line number Diff line
@@ -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,