Re: [netconf] A case for vendors to move to RESTCONF?
Kent Watsen <kent+ietf@watsen.net> Tue, 23 April 2024 14:37 UTC
Return-Path: <0100018f0b639d07-2ffc5e10-11ec-45db-b3da-50688144a6d7-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 EF139C14F705 for <netconf@ietfa.amsl.com>; Tue, 23 Apr 2024 07:37:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.893
X-Spam-Level:
X-Spam-Status: No, score=-6.893 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_HI=-5, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=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 15NfHt-6gONu for <netconf@ietfa.amsl.com>; Tue, 23 Apr 2024 07:37:10 -0700 (PDT)
Received: from a8-96.smtp-out.amazonses.com (a8-96.smtp-out.amazonses.com [54.240.8.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 033D2C14F6FB for <netconf@ietf.org>; Tue, 23 Apr 2024 07:37:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1713883028; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=xITz1bJwiVQ7HmO43KO3zmObC+kBGL9j89cbKR8bBDE=; b=etUOKVzaQTRJpeKUQxVCf0s+BwjP/Zbuh4P5FSCfkI4ViPvLmBtq7S4jQ5Wkvj1z zD4mN1To7o8OX3nlVYi0kG/z6ArxUK5spYHgRxkubNwWdZN4vYGKjIrpQ1UQATRB9dw gfiT6FWPnFLGWvtbp7WW1ujAjVjUhlJXsfCc7Fg0=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <0100018f0b639d07-2ffc5e10-11ec-45db-b3da-50688144a6d7-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_BDA2769B-B1FD-412A-A042-23C0080A5613"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\))
Date: Tue, 23 Apr 2024 14:37:08 +0000
In-Reply-To: <DU2PR02MB101606A9C6DF1A64A1F53E8D088112@DU2PR02MB10160.eurprd02.prod.outlook.com>
Cc: "netconf@ietf.org" <netconf@ietf.org>, "Jon Shallow (supjps-ietf@jpshallow.com)" <supjps-ietf@jpshallow.com>, "kaname nishizuka (kaname@nttv6.jp)" <kaname@nttv6.jp>
To: mohamed.boucadair@orange.com
References: <0100018f06bdefc1-585475aa-dc43-4dc2-ac7c-a35b08a070d5-000000@email.amazonses.com> <DU2PR02MB10160405946625AFFCF4C203A88112@DU2PR02MB10160.eurprd02.prod.outlook.com> <0100018f0b2089ec-3e7e2e2f-8f65-47f2-950e-e23e8b976b0a-000000@email.amazonses.com> <DU2PR02MB101606A9C6DF1A64A1F53E8D088112@DU2PR02MB10160.eurprd02.prod.outlook.com>
X-Mailer: Apple Mail (2.3774.400.31)
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
X-SES-Outgoing: 2024.04.23-54.240.8.96
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/OUqdSTjRvdz36rGCVaRNGf02EWE>
Subject: Re: [netconf] A case for vendors to move to RESTCONF?
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: Tue, 23 Apr 2024 14:37:14 -0000
Hi Med, > Could you say some more about what happened? Is this a case when NETCONF was better than RESTCONF? > [Med] Both NETCONF and RESTCONF were considered at the time, but went with RESTCONF which is really better for what we wanted to achieve. Some had some concerns even with RESTCONF, e.g., https://mailarchive.ietf.org/arch/msg/dots/gqiRudRypBWhXT_10JDgvnN9Q44/. Because we also manipulated CoAP with CBOR/YANG mapping (RFC9132), we found for example CoAP better than RESTCONF on the specific point I mentioned because once could supply an URI path with one key (cuid, e.g.), while it is not possible to supply an empty key per the following from 8040: > > o Missing key values are not allowed, so two consecutive commas are > interpreted as a comma, followed by a zero-length string, followed > by a comma. For example, "list1=foo,,baz" would be interpreted as > a list named "list1" with three key values, and the second key > value is a zero-length string. > > My hidden comment is that we need to keep in mind what is possible with target protocols to adjust some model structures (during design) to ease support of intended operations. Interesting history and, to the Subject line of this thread, I think Gilbert makes my point. FWIW, the optional-key issue is tracked here: https://github.com/netmod-wg/yang-next/issues/62. As such, I believe that it is more a YANG-limitation than a RESTCONF-limitation. It is unlikely that NETCONF would’ve helped. That CoAP allowed a missing-key sounds like it may not be fully YANG-compliant. Kent
- [netconf] A case for vendors to move to RESTCONF? Kent Watsen
- Re: [netconf] A case for vendors to move to RESTC… Andy Bierman
- Re: [netconf] A case for vendors to move to RESTC… Kent Watsen
- Re: [netconf] A case for vendors to move to RESTC… Andy Bierman
- Re: [netconf] A case for vendors to move to RESTC… Schwarz Albrecht (ETAS-DAP/XPC-Fe6)
- Re: [netconf] A case for vendors to move to RESTC… mohamed.boucadair
- Re: [netconf] A case for vendors to move to RESTC… mohamed.boucadair
- Re: [netconf] A case for vendors to move to RESTC… Kent Watsen
- Re: [netconf] A case for vendors to move to RESTC… mohamed.boucadair
- Re: [netconf] A case for vendors to move to RESTC… Kent Watsen
- Re: [netconf] A case for vendors to move to RESTC… Qin Wu
- Re: [netconf] A case for vendors to move to RESTC… Schwarz Albrecht (ETAS-DAP/XPC-Fe6)