Re: [netmod] comments on draft-ietf-netmod-yang-instance-file-format-04

Andy Bierman <andy@yumaworks.com> Tue, 19 November 2019 00:16 UTC

Return-Path: <andy@yumaworks.com>
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 69BDA12012E for <netmod@ietfa.amsl.com>; Mon, 18 Nov 2019 16:16:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.com
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 N8jQ57jQQl9M for <netmod@ietfa.amsl.com>; Mon, 18 Nov 2019 16:16:53 -0800 (PST)
Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6F5A41208DD for <netmod@ietf.org>; Mon, 18 Nov 2019 16:16:52 -0800 (PST)
Received: by mail-lf1-x12b.google.com with SMTP id l14so8725469lfh.10 for <netmod@ietf.org>; Mon, 18 Nov 2019 16:16:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Evk6xsRkhXgF5/KhzyapCDLVfWYB8xEcdJVVhC6K7b4=; b=qhosJdSKxW708TypIpGJmMvJPg+QkkNjn7WhwzoVTAeiQl9hnNE65HNY3ZPKT0obYM tKyCbughG994FB5DcJD+YMnA5RK18qeTHC6giIsspHNus2HnGMqrGwNeeMugcK0MiLdA dwPy2R02/7Bdp+vbWppyacvzYk5IkV8IoF0eKuWHXEr2vAFgX7paSOKygnJBM33K4ISt vh9BvbJB0KabE7hl5AS94AwEO+eUULKqTyInUglor/8FGvLooRdgMf5nmk8FbRQQ3BNs e4DVwbuJxueOPZGqKmEumpANz/IacV7Xk8uJ5UHEWHYjBAQnlVGil+iWAVWmzhs9ZCE7 p58Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Evk6xsRkhXgF5/KhzyapCDLVfWYB8xEcdJVVhC6K7b4=; b=mnOyVYZKHC/c8UfV3sbJ4wO3XG5psxg3TYHsDV1f8aD5jKPOXUllcRI3ahCha5npZ7 VZJLYSaFolYLbGSUSkWRfPP8JFFJxaDqgrCK6lCbAjPzNVjENIyJhwXs6FX9r13XBiv4 YvXteL3caO6FVJkUbY9sVhnKUUgqvFiXcH+NZ4cyZ/q3u5saGWEzCixaowhLiv6Vc78b 4n659UY6r8H2YE/w55lCE2rQLsJR1WNni9kTgmvDMu02C39EvEzIU4bwFb4YS8p8b8tm IK94AFZkE/AT5VkBGZ1n1HAhPLpy7du5N6sl2LvC9FPasAmagGBuKOupHAYPw+SeCV4D zjJQ==
X-Gm-Message-State: APjAAAX2MsUwITyhttT+mGImUO17EaveA3aK55YVkzPnrwXY0zTQ+53o zZCjEIS+zno+F4vr9/Sz9Yqt9y08Fo+E0qNCbg2wEQ==
X-Google-Smtp-Source: APXvYqxBIJfRgKiNtGn2MmVDLYeNIMerWDq4yNNXvJkNHQEXi9Kf227xinB2AJuRORMBM5R7DUxYTbaVEJSL/JNZLJ4=
X-Received: by 2002:ac2:4469:: with SMTP id y9mr1431096lfl.33.1574122610592; Mon, 18 Nov 2019 16:16:50 -0800 (PST)
MIME-Version: 1.0
References: <CABCOCHShFd41gcGLTSjJQMWCA4Ak_QX2iHpng_6DBqLRf23vqw@mail.gmail.com> <AM7PR07MB62148A605167BD4D046A2E3DF0790@AM7PR07MB6214.eurprd07.prod.outlook.com> <CABCOCHT0G+4zT2ApvRA1rgO3j4BR0gEbeiP4XDWV0nq4rxjxGQ@mail.gmail.com> <20191107.092440.1454377708605915338.mbj@tail-f.com> <CABCOCHSmknTvCXK4e+3Oz2JRR6SNi7zQgj9L3=fxgK2KEBmTOg@mail.gmail.com> <AM7PR07MB62148270F4ABAC0B19050A0EF0720@AM7PR07MB6214.eurprd07.prod.outlook.com> <CABCOCHS_BKp3JxucfhWqYPdOP-+5=uOFBymWW5OvDAvgF+3tug@mail.gmail.com> <AM7PR07MB6214BF5FAE135FE35DD2FF81F0720@AM7PR07MB6214.eurprd07.prod.outlook.com> <CABCOCHTToR1wtKg2XRuNTbLL0e=jzqMKR31dR+ue+8OqzmSURg@mail.gmail.com> <AM7PR07MB6214C001B4806F0D6EEB43A0F04D0@AM7PR07MB6214.eurprd07.prod.outlook.com>
In-Reply-To: <AM7PR07MB6214C001B4806F0D6EEB43A0F04D0@AM7PR07MB6214.eurprd07.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 18 Nov 2019 16:16:39 -0800
Message-ID: <CABCOCHQthfwYtB=N=G1+70ve2V1NhFV-oHXSpUxQaXMijEsmGw@mail.gmail.com>
To: Balázs Lengyel <balazs.lengyel@ericsson.com>
Cc: Martin Bjorklund <mbj@tail-f.com>, NetMod WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000009a9bd0597a7fb35"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/-ODfL5D6I9k0y2LoQLb4PdHQhes>
Subject: Re: [netmod] comments on draft-ietf-netmod-yang-instance-file-format-04
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: Tue, 19 Nov 2019 00:16:58 -0000

On Sun, Nov 17, 2019 at 7:57 PM Balázs Lengyel <balazs.lengyel@ericsson.com>
wrote:

> See below BALAZS4.
>
>
>
> *From:* Andy Bierman <andy@yumaworks.com>
> *Sent:* 2019. november 18., hétfő 7:12
> *To:* Balázs Lengyel <balazs.lengyel@ericsson.com>
> *Cc:* Martin Bjorklund <mbj@tail-f.com>; NetMod WG <netmod@ietf.org>
> *Subject:* Re: [netmod] comments on
> draft-ietf-netmod-yang-instance-file-format-04
>
>
>
>
>
>
>
> On Sun, Nov 17, 2019 at 10:01 AM Balázs Lengyel <
> balazs.lengyel@ericsson.com> wrote:
>
> See below BALAZS3.
>
>
>
> *From:* Andy Bierman <andy@yumaworks.com>
> *Sent:* 2019. november 18., hétfő 0:58
> *To:* Balázs Lengyel <balazs.lengyel@ericsson.com>
> *Cc:* Martin Bjorklund <mbj@tail-f.com>; NetMod WG <netmod@ietf.org>
> *Subject:* Re: [netmod] comments on
> draft-ietf-netmod-yang-instance-file-format-04
>
>
>
> On Sun, Nov 17, 2019 at 6:19 AM Balázs Lengyel <
> balazs.lengyel@ericsson.com> wrote:
>
>  *From:* Andy Bierman <andy@yumaworks.com>
> *Sent:* 2019. november 7., csütörtök 23:58
> *To:* Martin Bjorklund <mbj@tail-f.com>
> *Cc:* Balázs Lengyel <balazs.lengyel@ericsson.com>; NetMod WG <
> netmod@ietf.org>
> *Subject:* Re: [netmod] comments on
> draft-ietf-netmod-yang-instance-file-format-04
>
>
>
> It seems strange that the details that don't matter at all (like the
> filename) have lots
>
> of rules that MUST be followed and the details that actually add standards
> value are left unspecified.
>
> Andy
>
> BALAZS2: Actually what is missing, unspecified?
>
>
>
> The inline-schema is under-specified.
>
> There is no way for the file reader to know what to expect as the child
> nodes of inline-schema.
>
>
>
> The file writer can put anything there and a 3rd party reader tool is
> expected to support it.
>
>
>
>            anydata inline-schema {
>
>              mandatory true;
>
>              description
>
>                "Instance data corresponding to the YANG modules
>
>                 specified in the inline-module nodes defining the set
>
>                 of content defining YANG modules for this
>
>                 instance-data-set.";
>
>            }
>
>
>
>
>
> Andy
>
>
>
> BALAZS3:
>
> IMO the anydata is specified.  The leaf-list inline-module defines the
> modules that define how anydata inline-schema should look like.
>
>            anydata inline-schema {
>
>              mandatory true;
>
>              description
>
>                "*Instance data corresponding to the YANG modules*
>
> *                specified in the inline-module* ...
>
>
>
> The fileReader/fileWriter shall look at the ‘*leaf-list inline-module*’
> and from that it knows what to read/write.
>
>
>
> I wanted to state that inline-schema anydata always follows the
> ietf-yang-library and maybe some YAMs augmenting it. However Juergen
> insisted in a more flexible solution.
>
>
>
>
>
> I think the following text (or similar) should be added to the
> description-stmt above
>
>
>
>     This node SHOULD contain a single container instance which represents
> either the /yang-library
>
>      or /modules-state subtree.
>
>
>
> This allows for exceptions but still provides interoperability
> instructions.
>
>
>
>
>
> Andy
>
>
>
> BALAZS4: Others (e.g., Juergen) explicitly asked for not restricting this
> to ietf-yang-library.
>
> I would be happy with your proposals, but the group decided otherwise
> sometime back.
>
>
>


A tool has to be coded to understand the contents of the anydata node.
Just parsing it is not enough.

Is there an email thread this is discussed and resolved?
The term SHOULD allows the rule to be broken with a good reason.
What other data structures are needed now (or soon) other than
/modules-state or /yang-library?
I do not see how this file is interoperable if the reader does not know
what to expect.
Flexibility without interoperability is not success.

Also I foresee there might be (there will be)  YANG modules that augment
> yang-library  with information needed here.
>
> I am thinking about yang-versioning that plans to add the version-label,
> which will help determining which versions of the of the YANG module are
> compatible with the originally used schema defining modules.
>
>
>

I do not see how augment is relevant to this interoperability issue.


Andy


>
>
>
>
>
>
>
>
>