'Return the list of subports present on the trunk bridge.'

def get_connected_subports_for_trunk(self, trunk_id):

    bridge = ovs_lib.OVSBridge(utils.gen_trunk_br_name(trunk_id))
    if (not bridge.bridge_exists(bridge.br_name)):
        return []
    try:
        ports = bridge.get_ports_attributes('Interface', columns=['name', 'external_ids'])
        return [self.trunk_manager.get_port_uuid_from_external_ids(port) for port in ports if is_subport(port['name'])]
    except (RuntimeError, tman.TrunkManagerError) as e:
        LOG.error(_LE('Failed    to    get    subports    for    bridge    %(bridge)s:    %(err)s'), {'bridge': bridge.br_name, 'err': e})
        return []
