Loading src/device/service/Tools.py +3 −3 Original line number Diff line number Diff line Loading @@ -277,12 +277,12 @@ def populate_endpoints( _sub_link.name = resource_value['name'] new_sub_links[_sub_link_uuid] = _sub_link for device_uuid,endpoint_uuid in resource_value['endpoints']: for _device_uuid,_endpoint_uuid in resource_value['endpoints']: _sub_link_endpoint_id = _sub_link.link_endpoint_ids.add() # pylint: disable=no-member _sub_link_endpoint_id.topology_id.context_id.context_uuid.uuid = DEFAULT_CONTEXT_NAME _sub_link_endpoint_id.topology_id.topology_uuid.uuid = DEFAULT_TOPOLOGY_NAME _sub_link_endpoint_id.device_id.device_uuid.uuid = device_uuid _sub_link_endpoint_id.endpoint_uuid.uuid = endpoint_uuid _sub_link_endpoint_id.device_id.device_uuid.uuid = _device_uuid _sub_link_endpoint_id.endpoint_uuid.uuid = _endpoint_uuid if mgmt_match is not None: mgmt_links.add((src_dev_name, dst_dev_name)) Loading Loading
src/device/service/Tools.py +3 −3 Original line number Diff line number Diff line Loading @@ -277,12 +277,12 @@ def populate_endpoints( _sub_link.name = resource_value['name'] new_sub_links[_sub_link_uuid] = _sub_link for device_uuid,endpoint_uuid in resource_value['endpoints']: for _device_uuid,_endpoint_uuid in resource_value['endpoints']: _sub_link_endpoint_id = _sub_link.link_endpoint_ids.add() # pylint: disable=no-member _sub_link_endpoint_id.topology_id.context_id.context_uuid.uuid = DEFAULT_CONTEXT_NAME _sub_link_endpoint_id.topology_id.topology_uuid.uuid = DEFAULT_TOPOLOGY_NAME _sub_link_endpoint_id.device_id.device_uuid.uuid = device_uuid _sub_link_endpoint_id.endpoint_uuid.uuid = endpoint_uuid _sub_link_endpoint_id.device_id.device_uuid.uuid = _device_uuid _sub_link_endpoint_id.endpoint_uuid.uuid = _endpoint_uuid if mgmt_match is not None: mgmt_links.add((src_dev_name, dst_dev_name)) Loading