Re: [netmod] WG Last Call: draft-ietf-netmod-yang-instance-file-format-06

Martin Björklund <mbj+ietf@4668.se> Thu, 12 March 2020 16:57 UTC

Return-Path: <mbj+ietf@4668.se>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A79973A0DA1 for <netmod@ietfa.amsl.com>; Thu, 12 Mar 2020 09:57:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.101
X-Spam-Level:
X-Spam-Status: No, score=-0.101 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, PDS_NAKED_TO_NUMERO=1.999, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=4668.se header.b=HNV4WgFQ; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=zBrKoEWx
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NSoXINrZ2xFJ for <netmod@ietfa.amsl.com>; Thu, 12 Mar 2020 09:57:42 -0700 (PDT)
Received: from wnew2-smtp.messagingengine.com (wnew2-smtp.messagingengine.com [64.147.123.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 455993A0DA0 for <netmod@ietf.org>; Thu, 12 Mar 2020 09:57:42 -0700 (PDT)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailnew.west.internal (Postfix) with ESMTP id B3E9EA03; Thu, 12 Mar 2020 12:57:40 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 12 Mar 2020 12:57:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=4668.se; h=date :message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm1; bh= 09xAwFg7QMXen9zb06joecwsc/24ADMSuRrH8Baoz9U=; b=HNV4WgFQGqbNPQyM x/n9z+0addIHv2PRzkLj/uemW+gZDwlNUvM4PktsQbD2uLtUmqucOVQ3eYR2uGtA gbhCeB0gWeeTQPZzawyHQlHm7SujcQTTxWK9RlyMr8GGyZAe9V47mMCNxo9k5aYC 2wZ91bjWz9BCtUpoU3r4740USfHnWls0LwiraLG8zPiqTLRmTnW2ZkovIo9Ipy16 f67TqMeBCKtQGundYvtd/6VJHKbR6NCPWEXpJbJ3HwCAq/OZRNsCTvky11UA2YSR k+GC/RsDOdcWG2qy9DDQzcMAd4JnfFOupeKyW2tdjrI7CffdFKrx6jH+EiJh29EG h1ntmg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=09xAwFg7QMXen9zb06joecwsc/24ADMSuRrH8Baoz 9U=; b=zBrKoEWx7LJIj8QTAVqknrz/hAZrBklbBXVJQZ6MyKTCwg1ayciMMo6ja k3cMrhP+HgEaOWmrRikcYw5F3XANG0RgZumMVenAImIomSbvoXvvc0DwocPJGlsd X0EpwAUEVISXo021NxFfQ8PNiQBd6w5iI3iJQP22VnI5Tb0cwWk4HHsFLZnRNomc 8G2/hVtx1T1CqWjZbdLa0QQEMDFhrMIbv8hQ0PMcIl7Dkd2TvQUWcoCA43IV/ByF /hHZY0CiDOEfKe9Z1Flb0oEklo/y1I6ViHvNuHK8lpqVgAlws2pS3H1PVGj63Aww V86Xp1D38nmUayF68dkokFyYSVJDA==
X-ME-Sender: <xms:AmpqXplOlH5_xkptwvHq3zSVpph6hiwyK_Q-yAAfo0jOlOXCuqQEIw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvhedgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffkffvuffhjghfofggtgfgsehtje ertdertddvnecuhfhrohhmpeforghrthhinhcuuehjnphrkhhluhhnugcuoehmsghjodhi vghtfhesgeeiieekrdhsvgeqnecuffhomhgrihhnpehjrggtohgsshdquhhnihhvvghrsh hithihrdguvgdpihgvthhfrdhorhhgnecukfhppeduheekrddujeegrdegrdeggeenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmsghjodhivg htfhesgeeiieekrdhsvg
X-ME-Proxy: <xmx:AmpqXnQZWLj9PvS24gXK8w-X13vy0VDhEaDaXgizJ9LxNCV8C7fNqA> <xmx:AmpqXtXvhcBKZxf4kHu49Y0P4_3Kvrb0N2YKNLPCwzdpRQvYyI5dtA> <xmx:AmpqXotsw5M9DwQnBdUrIUgqzJQyqDivfVMep9t29w7B7gFei8_jpA> <xmx:A2pqXrq1KTY-lYwU8NdTM3-W7a2DuOqz3hohU3HqLELLk5pgLmlFMvM1NIE>
Received: from localhost (unknown [158.174.4.44]) by mail.messagingengine.com (Postfix) with ESMTPA id C39AA3280064; Thu, 12 Mar 2020 12:57:37 -0400 (EDT)
Date: Thu, 12 Mar 2020 17:57:36 +0100 (CET)
Message-Id: <20200312.175736.1911206510177234294.id@4668.se>
To: j.schoenwaelder@jacobs-university.de
Cc: bclaise=40cisco.com@dmarc.ietf.org, netmod@ietf.org
From: Martin =?iso-8859-1?Q?Bj=F6rklund?= <mbj+ietf@4668.se>
In-Reply-To: <20200311191646.a6r77jr5lglxchml@anna.jacobs.jacobs-university.de>
References: <20200309163548.zq4nq6xe44zkest6@anna.jacobs.jacobs-university.de> <bab729da-999d-da90-ff64-d037e2a29f68@cisco.com> <20200311191646.a6r77jr5lglxchml@anna.jacobs.jacobs-university.de>
X-Mailer: Mew version 6.8 on Emacs 25.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Am1ZsJSgln2AcGEmgUwhvbex8o4>
Subject: Re: [netmod] WG Last Call: draft-ietf-netmod-yang-instance-file-format-06
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Mar 2020 16:57:44 -0000

Hi

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> On Wed, Mar 11, 2020 at 06:58:53PM +0100, Benoit Claise wrote:
> > Juergen,
> > 
> > On on side, Balazs mentions:
> > 
> > 4+ people asked me explicitly to state this similarity during the
> > development of the draft.
> > 
> > The current text is:
> > 
> >        P2  Instance data shall reuse existing encoding rules for YANG
> >            defined data.  Its format will be similar to the response of a
> >            NETCONF <get> operation or the RESTCONF response to a GET method
> >            invocation on the (unified) datastore resource.
> > 
> > This modification is based on your feedback:
> > 
> > Well, then the correct wording would be "similar to the response of a
> > NETCONF <get> operation or the RESTCONF response to a GET method
> > invocation on the (unified) datastore resource". Sounds complex and I
> > still prefer the text to be agnostic to specific operations
> > 
> > On the other side, you insist now on removing the latter sentence.
> > Could you propose a similar sentence that would satisfy your concern?
> >
> 
> The new sentence is this:
> 
> 
> 
> 
> [Yeah, I suggested removal so the new sentence is empty.]

I agree with Juergen.  

I find the sentence about similarity confusing.  What exactly does
"similar" mean?  Does it mean that it has a <rpc-reply> on the top?

This section defines the prinicples / objectives, and the principle is
clear:

       Instance data shall reuse existing encoding rules for YANG
       defined data.


> PS: I do not mind if somewhere there is an example stated. But even
>     then I would prefer something like this:
> 
>       For example, instance data of the <running> configuration
>       datastore is encoded similar to the response of a NETCONF
>       <get-config> operation on the <running> datastore or a GET
>       method invocation on the <running> datastore resource and it
>       will be embedded into a container together with the metadata
>       describing the instance data.

Hmm.   If you really want to show how a reply to <get-config> compares
to a corresponding instance file, it might be better with an example
that shows a complete reply to this get-config, and the corresponding
instance data.


/martin



> 
>     (I prefer to avoid NETCONF GET and the RESTCONF unified datastore
>     since they have issues. But if people insist on an example using
>     operations that have issues, I will keep my mouth shut.)
> 
> -- 
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod