Re: [netconf] What is the response structure when querying a specific instance object in a list?

Kent Watsen <kent@watsen.net> Wed, 17 April 2024 16:10 UTC

Return-Path: <0100018eecd3312d-adb42068-b6bf-4608-8797-1e77599b8817-000000@amazonses.watsen.net>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 94284C14F602 for <netconf@ietfa.amsl.com>; Wed, 17 Apr 2024 09:10:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZGw7yCbDMKHN for <netconf@ietfa.amsl.com>; Wed, 17 Apr 2024 09:10:48 -0700 (PDT)
Received: from a8-31.smtp-out.amazonses.com (a8-31.smtp-out.amazonses.com [54.240.8.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9C6C9C14F5FE for <netconf@ietf.org>; Wed, 17 Apr 2024 09:10:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1713370247; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=exwgXO6HagHOOTkTSf6qjUSncysBOzb9gvKCvnIscWM=; b=HALkCGjVJePBPpw1ZV7x7hGaVXLpmvcl3Jnw/9G9pNoNSxV9qErNKsUkSXZhDQMG o/sYklok41hUNssa/TDCOUxXbW0VyMAOiPiRl/G2QJmGRASRsflcbUDqBOXS70WPkWk eFN7h3Whf0HMKwbLl645HeuhqWeV/T/TaxrznLh8=
From: Kent Watsen <kent@watsen.net>
Message-ID: <0100018eecd3312d-adb42068-b6bf-4608-8797-1e77599b8817-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_3482F04F-52D7-4242-A1E9-AA1F6DDF8B08"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\))
Date: Wed, 17 Apr 2024 16:10:47 +0000
In-Reply-To: <CACvbXWEjB=i6T6JoaCKH3a=eFQ00n2tw2nXfUJkJ_LMgaBQCYg@mail.gmail.com>
Cc: yuchaode <yuchaode=40huawei.com@dmarc.ietf.org>, "netconf@ietf.org" <netconf@ietf.org>, "yanglin (N)" <yanglin60@huawei.com>, liuzhoulong <liuzhoulong@huawei.com>, "Wangxi(Cordelia)" <wangxi114@huawei.com>
To: Per Andersson <per.ietf@ionio.se>, Olof Hagsand <olof@hagsand.se>, Andy Bierman <andy@yumaworks.com>
References: <dec8b1969a8f4511bb99b550407f23d7@huawei.com> <CACvbXWEjB=i6T6JoaCKH3a=eFQ00n2tw2nXfUJkJ_LMgaBQCYg@mail.gmail.com>
X-Mailer: Apple Mail (2.3774.400.31)
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
X-SES-Outgoing: 2024.04.17-54.240.8.31
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/0l_oez7TxEwnJus_zKWVY4omr5Q>
Subject: Re: [netconf] What is the response structure when querying a specific instance object in a list?
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Apr 2024 16:10:52 -0000

Per is right, it is not well-defined in RFC 8040 and the examples are counter-intuitive.
	- Please see https://github.com/netconf-wg/restconf-next/issues/5

Personally, I’d like file an errata to document that the example is wrong.  But, first, it would be good to know what leading RESTCONF implementations do.

Can we hear back from, e.g., Clixon, Confd, YumaPro devs?

Kent


> On Apr 16, 2024, at 8:22 AM, Per Andersson <per.ietf@ionio.se> wrote:
> 
> Hi!
> 
> I tried looking for support on how to return the JSON result
> in RFC 8040 and RFC 7951 but found no text defining it.
> 
> However, the examples in Appendix B.3.9 shows that when
> adressing a specific list element, it should be enclosed in
> square brackets.
> 
> FWIW this is also how our system behaves.
> 
> 
> --
> Per
> 
> _______________________________________________
> netconf mailing list
> netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf