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

Balázs Lengyel <balazs.lengyel@ericsson.com> Sun, 17 November 2019 18:01 UTC

Return-Path: <balazs.lengyel@ericsson.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 3EE26120812 for <netmod@ietfa.amsl.com>; Sun, 17 Nov 2019 10:01:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 Kf0NnlJ_UIHZ for <netmod@ietfa.amsl.com>; Sun, 17 Nov 2019 10:01:56 -0800 (PST)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80048.outbound.protection.outlook.com [40.107.8.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 25E6712022C for <netmod@ietf.org>; Sun, 17 Nov 2019 10:01:56 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f42zi0zREtyLp4OojXAhT1BQEKbGZXo3UNfop0M2drgydVvZYolzm6j72cFBkKNGDgvSHb4LIsRQ+08dLxMI7W+L9ILXWJ4aYZPKG6dxgkLNQIIifshBu8NnuVHqQFaojAXHHq7bmhmB1GWfA8IiHOdqNY4oF2Vjq/ylJtBXl0KkiwKYRgfChshkOMUFlN43C38gBGxnSpW8242iWB6IOJh80oLu0VASop97187/PoW5a4bjU5Af5ghiAwC2TQzrPSD8vZ1W3kQvC3DZyfhVU7L63rX45WNNgj6emKNNGpnWJwEef2/Gko8WVDtJDJnY39oy0Tr+GSCuIJZRC0+B9Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LqSG/x6nAKz6BWtH1QBUvI++XpyPFh7S5kc53g8KauA=; b=D2zEism7txrxIb2kVBmRqmkTtIe0roSldkvlFX/aHNfrT8haZw9DxUrb3hihk8KYBzATWU8eSamcJicaz2UDsju1Mhv98zrSKHMSETYQOT66XAqbTuHLvGWbTB3Ta3HfzM5L9gD+79zCOWwHAj2XgH8elI2EfwlVgv5+9lUe683Ip7duem+mcVWgKnHRT1kLQfyZLila/KM2XVi8dK3scFAzDXYCLs7GSxETnpCNRzTDGUhiAtzt2avFBpona71+gvAaVnv5pmVgUCOnbr7aId/Dko1qJktKURKbXM/LDev1EeQKapklocNymOOFmex5BOF0uZ1ZMnCk5czMIChUig==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LqSG/x6nAKz6BWtH1QBUvI++XpyPFh7S5kc53g8KauA=; b=BEx4vzWF6NmIybptZaTQ567PiLzB1zBzlRRPe56frHWcJi1lnI4DKg1WDKbbtMpBgCVYj240yLkvXyMjoMfqneL3QN7KY/fRHLoR/IrOijywnvOFWIpDVWzthE3k4gpNTiLjjarTEqN2X4iSdwVfkWL418SCGDSXhDry7SGYwFY=
Received: from AM7PR07MB6214.eurprd07.prod.outlook.com (10.186.170.77) by AM7PR07MB6343.eurprd07.prod.outlook.com (10.186.171.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.10; Sun, 17 Nov 2019 18:01:53 +0000
Received: from AM7PR07MB6214.eurprd07.prod.outlook.com ([fe80::749e:982d:1c62:367b]) by AM7PR07MB6214.eurprd07.prod.outlook.com ([fe80::749e:982d:1c62:367b%4]) with mapi id 15.20.2474.012; Sun, 17 Nov 2019 18:01:53 +0000
From: =?utf-8?B?QmFsw6F6cyBMZW5neWVs?= <balazs.lengyel@ericsson.com>
To: Andy Bierman <andy@yumaworks.com>
CC: Martin Bjorklund <mbj@tail-f.com>, NetMod WG <netmod@ietf.org>
Thread-Topic: [netmod] comments on draft-ietf-netmod-yang-instance-file-format-04
Thread-Index: AQHVf2MbQga78mSle0Opwa3noseNw6dUAaKAgCraSXCAABVPAIAAmZgAgAB+mwCAD5t58IAALJ0AgAAPa2A=
Date: Sun, 17 Nov 2019 18:01:53 +0000
Message-ID: <AM7PR07MB6214BF5FAE135FE35DD2FF81F0720@AM7PR07MB6214.eurprd07.prod.outlook.com>
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>
In-Reply-To: <CABCOCHS_BKp3JxucfhWqYPdOP-+5=uOFBymWW5OvDAvgF+3tug@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-originating-ip: [31.133.148.242]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 71faf488-aef0-426a-d41c-08d76b883a98
x-ms-traffictypediagnostic: AM7PR07MB6343:
x-microsoft-antispam-prvs: <AM7PR07MB6343289501A1EAAA8EE7323DF0720@AM7PR07MB6343.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:7219;
x-forefront-prvs: 02243C58C6
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(346002)(366004)(136003)(396003)(189003)(199004)(2906002)(4326008)(236005)(54896002)(9686003)(6306002)(476003)(55016002)(256004)(85202003)(6436002)(6246003)(316002)(14454004)(71190400001)(71200400001)(7736002)(790700001)(3846002)(229853002)(6116002)(25786009)(54906003)(486006)(74316002)(7696005)(52536014)(81156014)(81166006)(76176011)(8676002)(99286004)(186003)(6916009)(26005)(85182001)(8936002)(66476007)(66556008)(66446008)(478600001)(64756008)(86362001)(6506007)(53546011)(33656002)(11346002)(446003)(76116006)(102836004)(66946007)(66616009)(66066001)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM7PR07MB6343; H:AM7PR07MB6214.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 3aspewC45yp9aOu1SN65qVH9H1Q3gNRL6uNlZq5nGbBqn2BSXJea/I25UqtBSQG9x0AGZKCPmkKHSFdDZvMS6KHi4p5JXYTiVzsF7s3GRu3yootIlET0lg240H33Hm504iYgcl+yQiD/qhsRlDy47kFs3lfEUQHJKGtMP9Ndfh6kKQT22mmbIKVva6eVM+XqpyqHSt2T9ukrKagHkPtiGAyvVbphm7Kw38BVT/wZDF2GFTzB/9tRZP5QarrUoAFio++wL5ePP/Bd6F9l/bhxMRmnbeYnynVmZKYeLmSPHRO1dMHb+IgeHsaQ5jyzpZSPUmUaF00dOirzLVqopoMMm9EitfiUlMmBTG6/Hr/aeb5BqCWq+c2X+BBxkTzW0nNMfG0dTGYQTOgGbVEesALlgTjJ2g4p12gLeLBjffItRii7xA3zOXsx2LvSsbXdqEiU
x-ms-exchange-transport-forked: True
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_0334_01D59DB4.24AD50F0"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 71faf488-aef0-426a-d41c-08d76b883a98
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Nov 2019 18:01:53.7918 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: UcZ7Rmk7f2S7fEFgcjncSpaWqW3WSo1X4QszK1J1cRykJzyAxe/JLjbx9W7Lu9kYSVe2OK59PvNg9dXqAi5n6oaRS1jM6ACSsYr97bqkhA4=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB6343
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/f6DajguLx7PQAblRoOhrPoUBXEI>
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: Sun, 17 Nov 2019 18:01:59 -0000

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>om>; 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 <mailto:balazs.lengyel@ericsson.com> > wrote:

 From: Andy Bierman <andy@yumaworks.com <mailto:andy@yumaworks.com> > 
Sent: 2019. november 7., csütörtök 23:58
To: Martin Bjorklund <mbj@tail-f.com <mailto:mbj@tail-f.com> >
Cc: Balázs Lengyel <balazs.lengyel@ericsson.com <mailto:balazs.lengyel@ericsson.com> >; NetMod WG <netmod@ietf.org <mailto: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.