Loading src/device/service/drivers/ietf_actn/handlers/NetworkTopologyHandler.py +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ class NetworkTopologyHandler: if 'ietf-te-topology:te-topology' in nnt: nnt_tet = nnt['ietf-te-topology:te-topology'] if 'ietf-otn-topology:otn-topology' in nnt_tet: device_type = DeviceTypeEnum.EMULATED_OPTICAL_ROADM.value device_type = DeviceTypeEnum.OPTICAL_FGOTN.value endpoint_type = 'optical' elif 'ietf-eth-te-topology:eth-tran-topology' in nnt_tet: device_type = DeviceTypeEnum.EMULATED_PACKET_SWITCH.value Loading src/device/service/drivers/nce/handlers/NetworkTopologyHandler.py +6 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ class NetworkTopologyHandler: if 'ietf-te-topology:te-topology' in nnt: nnt_tet = nnt['ietf-te-topology:te-topology'] if 'ietf-otn-topology:otn-topology' in nnt_tet: device_type = DeviceTypeEnum.EMULATED_OPTICAL_ROADM.value device_type = DeviceTypeEnum.OPTICAL_OLT.value endpoint_type = 'optical' elif 'ietf-eth-te-topology:eth-tran-topology' in nnt_tet: device_type = DeviceTypeEnum.EMULATED_PACKET_SWITCH.value Loading @@ -105,6 +105,11 @@ class NetworkTopologyHandler: if 'name' in ntea: node_name = ntea['name'] if 'OLT' in node_id: device_type = DeviceTypeEnum.OPTICAL_OLT.value elif 'ONT' in node_id: device_type = DeviceTypeEnum.OPTICAL_ONT.value device_url = '/devices/device[{:s}]'.format(node_id) device_data = { 'uuid': node_id, Loading Loading
src/device/service/drivers/ietf_actn/handlers/NetworkTopologyHandler.py +1 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ class NetworkTopologyHandler: if 'ietf-te-topology:te-topology' in nnt: nnt_tet = nnt['ietf-te-topology:te-topology'] if 'ietf-otn-topology:otn-topology' in nnt_tet: device_type = DeviceTypeEnum.EMULATED_OPTICAL_ROADM.value device_type = DeviceTypeEnum.OPTICAL_FGOTN.value endpoint_type = 'optical' elif 'ietf-eth-te-topology:eth-tran-topology' in nnt_tet: device_type = DeviceTypeEnum.EMULATED_PACKET_SWITCH.value Loading
src/device/service/drivers/nce/handlers/NetworkTopologyHandler.py +6 −1 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ class NetworkTopologyHandler: if 'ietf-te-topology:te-topology' in nnt: nnt_tet = nnt['ietf-te-topology:te-topology'] if 'ietf-otn-topology:otn-topology' in nnt_tet: device_type = DeviceTypeEnum.EMULATED_OPTICAL_ROADM.value device_type = DeviceTypeEnum.OPTICAL_OLT.value endpoint_type = 'optical' elif 'ietf-eth-te-topology:eth-tran-topology' in nnt_tet: device_type = DeviceTypeEnum.EMULATED_PACKET_SWITCH.value Loading @@ -105,6 +105,11 @@ class NetworkTopologyHandler: if 'name' in ntea: node_name = ntea['name'] if 'OLT' in node_id: device_type = DeviceTypeEnum.OPTICAL_OLT.value elif 'ONT' in node_id: device_type = DeviceTypeEnum.OPTICAL_ONT.value device_url = '/devices/device[{:s}]'.format(node_id) device_data = { 'uuid': node_id, Loading