Commit 530c51ba authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component:

- Fix handling of underlying controller-managed devices
parent b6d0c688
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -202,7 +202,10 @@ def populate_endpoints(
                devices_with_mgmt_endpoints.add(_sub_device_name)

            # add mgmt link
            if (device_name, _sub_device_name) not in mgmt_links:
            if (
                _sub_device_ctrl is None and
                (device_name, _sub_device_name) not in mgmt_links
            ):
                _mgmt_link_uuid = '{:s}/{:s}=={:s}/{:s}'.format(device_name, 'mgmt', _sub_device_name, 'mgmt')
                _mgmt_link = Link()
                _mgmt_link.link_id.link_uuid.uuid = _mgmt_link_uuid                         # pylint: disable=no-member