[core] Re: Additional CORECONF Comments

Andy Bierman <andy@yumaworks.com> Thu, 15 January 2026 18:48 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: core@mail2.ietf.org
Delivered-To: core@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 032A1A8376D9 for <core@mail2.ietf.org>; Thu, 15 Jan 2026 10:48:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b7IMdRdD3BYA for <core@mail2.ietf.org>; Thu, 15 Jan 2026 10:48:27 -0800 (PST)
Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 74516A8376D1 for <core@ietf.org>; Thu, 15 Jan 2026 10:48:27 -0800 (PST)
Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-3837dd6d857so525531fa.1 for <core@ietf.org>; Thu, 15 Jan 2026 10:48:27 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1768502906; cv=none; d=google.com; s=arc-20240605; b=NeRAOTv/FWP8Du3iXuA8VZigyfc5dJ1z7FNJZmNRW03hUqPtSRcImYxJo6a5q0r1ug ZLuMyWB+eLnvRCvl4/raJuEdEkKOnH/ncv/enZcLZH8V36zFZ+cnDodvNXvTE8s8w2yY hMMIjnDkwmdo2kG/cfTw6eQYlOsOov/vRXSCZ7KJKC2yio06RXrCPtwb/YICjwZL0Tce MqZUXjvG7RHYMecyVWakAPXU7IiWAM8n1V2MqZHANZgae0tRuXOmoBpJsYw+Q1k8covh xITXY0FyNncsOZU0erwuRT8HFs9ujl3i7sGSzw62IvkNkt7QdXCvvib93y8Aux5nWJqZ t/JQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=AAjhqI1RKKytFgsL+Trsu3WmiZw68P5wXTiLChd2St4=; fh=xb1rNvB3iQB0URqIO/9vpVN3QvB5d+Vl638HtEWLWMc=; b=eAeQWCX7JVUddWduw1/dZeZnwjI/vhDWA6lokLM9Y8XO2uLj0UXE6lMKcDORnzpObE GK8hsfDM9VFaqQuHM0vEIgpIb7lkCBOHeaqav1p4GSggLpMmPDNNfbfDsD+EcifyCeI1 pEIGK6OgpZofn+ap15UI+B2tmegdo20IF3QZL+Or0GABcdTSEhfodGD6hhZO50o/RthM 7afw2m7OfuuVbQ2YDq+KAsAW4JgpfIjrT1pDkGz17W/OfACyTVzTPWN6g/rwPKAHSAXw bRwcADDzKm37bp+Eb7VNrWlZOqvuX83ClEfuoq61YqKO443pE4Fhk3s9uw4yt+ariQBW VmyQ==; darn=ietf.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1768502906; x=1769107706; darn=ietf.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=AAjhqI1RKKytFgsL+Trsu3WmiZw68P5wXTiLChd2St4=; b=c+ef0fIq4rbM7CFKPLalqGGeyWt//zlsl2YkFMJi6N00Gqc8xwKLFQilZCiNxTfraH 8EK3E/UuxJZwS1sn0jcVAs3Mo2++Z35EA07VEPYKPmbu0eOPQgrISytzztuEVHW2Rh8E z7wB+5/pXcFF0MpWrR/JodrhszAxlCnOOb5oy8WmdY8j3/wl2mpvuieEyvbsiT43ZNlY Ox1VDc0V3ct4otOehx3BoVd5tGx0M76jTa3PdPGSTnJzluazB+EpDIGcMU57v5F48riD hNxS4IIBRYP8XkxYRsOS+ztQzZfJ7RQSUlZJO1VXpFY1uurmFF631pEoYiQHHXXGi5U2 fRaw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768502906; x=1769107706; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=AAjhqI1RKKytFgsL+Trsu3WmiZw68P5wXTiLChd2St4=; b=LGi6Q3JkdejGdOge2RtqYXbg0sNSfEkr31wEq1cfYYlls9Oh5utHYS42nmMirh04OR yFIIlehK/ASD7KoXKTh460VP2H+Nyll/q06UglkA9L+ouvECBR/LC4q0M3E4bYHKk96W JDA6LnGfr1fMd7Ya4erO2XEen/zFUMkvUr6xQhn+YO9hzLb781DUdSHwiUS87tjA0N3S vzXZZAh0peiUl3nwdqJxctyFdckYqWOj8pD4/CBi1PkvpDdSXJEq8QOVKintBmxdysnS 86BUtd2WXNUpz5LGOVZhiK82iBR9doj3XZna6gorGdoGRaeXGg7zBE+2AaZKnq+H2U2s sNyA==
X-Gm-Message-State: AOJu0YyS5xVnLxkmCvkjjVUwJkkvb0PYJecVht32wYc0q8HnJk0xpvDa UHgfp08XDv3BqCPA+DK42rAVq9yWCJXsZ/cJTum89G5cLtgrcQmPXcp9Tdodvq++GhsFfYjLDWB qrIuxA6PJPXl0b4u8YYUxDi5bBWJ1IYPyyFga/ekU4M2szV3AMFGTfaLL8w==
X-Gm-Gg: AY/fxX4wA243HXvLxwchSrZSodFIiGTpCR02Iope5T96Sj0wCrWGGXuzz4XcV7dW9wX UknhpZ7Czpv5g/RD2Yb5UvUcQ8FN+Af8IcPMAeQ8LzJeQf2+oBxPU8YXeupMs1bKsa9N4RcXq7+ TpotE6g3+oWlmroU2L5BJ2nJSPmeXp1at82j9por7/Jbb4vylCRe97imXVYI/s3u2cKnCj5PRl+ 0pY8U3PmuA3a4Rr5gCN51x1tz2EWgRJO6zotMQtkTcjAlyKrW+SbTVEJE9d1sybwtQEYFMVm0Br LzQE
X-Received: by 2002:a05:651c:324b:b0:382:fd9f:13c2 with SMTP id 38308e7fff4ca-383842de7efmr1121961fa.4.1768502906070; Thu, 15 Jan 2026 10:48:26 -0800 (PST)
MIME-Version: 1.0
References: <47198184-469a-4c02-9a00-77dc412a74a7@nic.cz> <500b87b9-c95d-4876-af82-b644c022523f@nic.cz>
In-Reply-To: <500b87b9-c95d-4876-af82-b644c022523f@nic.cz>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 15 Jan 2026 10:48:14 -0800
X-Gm-Features: AZwV_Qi6iIccEJPM6CNEEdcmjWt0zGvHuLX5rqswIZ-5WpVaPcYOlzXrxO0Wv94
Message-ID: <CABCOCHQkHsU1h5ScOYdTDFYHNa6FW3W_OKVZs6uTnTN5hQkceg@mail.gmail.com>
To: Vojtech Vilimek <vojtech.vilimek=40nic.cz@dmarc.ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: PDTXNBLXC5OPWDR5I4RUNHDGNR3FWLXF
X-Message-ID-Hash: PDTXNBLXC5OPWDR5I4RUNHDGNR3FWLXF
X-MailFrom: andy@yumaworks.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-core.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: core@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [core] Re: Additional CORECONF Comments
List-Id: "Constrained RESTful Environments (CoRE) Working Group list" <core.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/jIIuha0fonaDvjtYc9iFcKo5BgI>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Owner: <mailto:core-owner@ietf.org>
List-Post: <mailto:core@ietf.org>
List-Subscribe: <mailto:core-join@ietf.org>
List-Unsubscribe: <mailto:core-leave@ietf.org>

On Thu, Jan 15, 2026 at 9:48 AM Vojtech Vilimek
<vojtech.vilimek=40nic.cz@dmarc.ietf.org> wrote:
>
> Hi all,
>
> I found a crucial bug in the CORECONF: You can discover all the schema
> nodes of given model in the yang-library or .well-known/core but how do
> you discover instances of a list? For example in the following YANG model.
>


I think the WG decided not to support this feature.
IMO not a crucial bug.

> module list-inst {
>    prefix t;
>    namespace "http://example.com";
>
>    list instance {
>      key "name";
>
>      leaf "name" { type string; }
>      leaf "value" { type uint32; }
>    }
> }
>
> How do you discover existence of let's say instance with name "hidden"
> (i.e. "/list-inst:instance[name="hidden"]" 'instance-identifier')? You
> can use a GET method but the overhead for non-trivial YANG models is
> going to kill any reasonable real-world usage (IMHO). The overhead is
> huge because the GET will send the whole datastore (meaning all
> available instance data nodes).
>
> Also note that "/list-inst:instance" is not valid 'instance-identifier'
> as it does not encode all list keys. The exactly same problem is with
> using SIDs but less human readable. The only thing that changes is
> instead of "/list-inst:instance" we use SID like 60,000.
>
> I find that the protocol should be extended with ability to enumerate
> list instances and ability to get length of the instance list (and
> leaf-lists).
>
> Just that I am curious, how is this done in RESTCONF?
>

RESTCONF has the 'fields' query parameter to select specific child
nodes from each list entry.
https://datatracker.ietf.org/doc/html/rfc8040#section-4.8.3

NETCONF has subtree filters to do the same thing.

>
> Best regards,
>
> Vojtech Vilimek
> CZ.NIC z.s.p.o.
> Czech Republic
>


Andy

> _______________________________________________
> core mailing list -- core@ietf.org
> To unsubscribe send an email to core-leave@ietf.org