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

Balázs Lengyel <balazs.lengyel@ericsson.com> Sun, 17 November 2019 14:17 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 56C26120108 for <netmod@ietfa.amsl.com>; Sun, 17 Nov 2019 06:17:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 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, 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 ISj4Tp4r6Jsl for <netmod@ietfa.amsl.com>; Sun, 17 Nov 2019 06:17:11 -0800 (PST)
Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70040.outbound.protection.outlook.com [40.107.7.40]) (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 A3C3512006D for <netmod@ietf.org>; Sun, 17 Nov 2019 06:17:10 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N6YJauQFP+NioreBA0FDWUluyryQSNchUP0YRYlC7FYQQR7+hJ3AsS6cAlLVUsUu4xmeOAkdJ/gAkjjP6bNw6rWZTMGV3oxI5Fmj20Q5J1W/CB1Grm2pVCvkeOHj/u2t1HPv6lCzdncwds5Q2XASuJeoiallvUAaT6fAvfaXTomB+DvCfKjQpldBL5Nl2p3s2sqKj/UMwHPeL+0wbTfSXTnBXEUBvLOW00LgTCep/GZAZHNcpWkT3+A6yY5loq8xfkYQ4AmJFSUX8x6t0a5/txj8C+lCowrRL21EEyrow0FhfeUtzv9/3eQ3a0DtqFjZ45HU7S770Qz3on0Ujc2n6w==
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=0BTbx0Jcn4Od8m/7mu2CvaNl8NPE/tgM8zing801WA8=; b=Cwk+vmmipLRTsdgzQK7Ub5Na94L3+t1bnku2v3rtBFOsw0+30ceb2cwHx2U0xWheVFof1W6UXkRhaE9olrnQlQGu8tWaVL4ZqySuhQ5l5/JVnq+6PqvdcwaeWUAdD6EWZ+bi1QlNm8YvMR0RcHaEpTayxNLY2DZK92hLkuaGdyGVb1reijza+NRowjk4opffq4ixlSyCjtqQrrLcCzZH0sb3/KqYkFJfj5GGL8u0eBQFjFh3fv8Epjr/FFdtAkqW5VH+2qcybJLaGiLUAzWwiY8t+OSrPY/x2+CldgOXvLXM8MCEWMdB/1/R/WxrIx8r4LpZODhJZvg5hAOiRYllqg==
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=0BTbx0Jcn4Od8m/7mu2CvaNl8NPE/tgM8zing801WA8=; b=og6ptKQatz06dr7bJB4Ekokpa6LCgxZhpCc1qdQLsUgPs6Fe9ECwcUR7ONJJXDjqU/OMOah/DxHiCVsUZWANmi+/Ap+jyBMs+16rlMS/VYjgwHwd3zBvbtnjQm2pD/GZqjC8EksqRMoPj7oOGGtYh8DOcpGJfSXU0YFgAS2uUH8=
Received: from AM7PR07MB6214.eurprd07.prod.outlook.com (10.186.170.77) by AM7PR07MB6471.eurprd07.prod.outlook.com (10.186.169.18) 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 14:17:08 +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 14:17:08 +0000
From: =?utf-8?B?QmFsw6F6cyBMZW5neWVs?= <balazs.lengyel@ericsson.com>
To: Martin Bjorklund <mbj@tail-f.com>, "andy@yumaworks.com" <andy@yumaworks.com>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] comments on draft-ietf-netmod-yang-instance-file-format-04
Thread-Index: AQHVf2MbQga78mSle0Opwa3noseNw6dUAaKAgCraSXCAABVPAIAAmZgAgBAXsFA=
Date: Sun, 17 Nov 2019 14:17:08 +0000
Message-ID: <AM7PR07MB6214EBA21428FB437D4760DFF0720@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>
In-Reply-To: <20191107.092440.1454377708605915338.mbj@tail-f.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: [2001:67c:1232:144:110e:633f:b6cd:de19]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 928efddb-8505-4a8f-c2ba-08d76b68d48a
x-ms-traffictypediagnostic: AM7PR07MB6471:
x-microsoft-antispam-prvs: <AM7PR07MB6471EC7C35B7A62863C53196F0720@AM7PR07MB6471.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8273;
x-forefront-prvs: 02243C58C6
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(396003)(346002)(136003)(39860400002)(199004)(13464003)(189003)(8936002)(99286004)(6116002)(446003)(476003)(74316002)(14454004)(2906002)(71200400001)(85202003)(71190400001)(110136005)(33656002)(7736002)(85182001)(9686003)(316002)(305945005)(5660300002)(4326008)(7696005)(86362001)(66476007)(186003)(229853002)(11346002)(46003)(102836004)(478600001)(53546011)(6506007)(6436002)(66556008)(64756008)(66446008)(55016002)(66616009)(76176011)(66946007)(6246003)(25786009)(81156014)(81166006)(76116006)(2501003)(256004)(8676002)(486006)(52536014); DIR:OUT; SFP:1101; SCL:1; SRVR:AM7PR07MB6471; H:AM7PR07MB6214.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: sGQVbSiRKjC7DbLhCXsBOHIDYYzbReeXBBqlD0zt4trIjIyGy2IncTAuEgcF7zfcP82uB+drFW036A4c5s+in7YDdmhdN0tOl9MMyyfY93SnsIc36QrTI9/Tgm7HNSNHIpPK+EhgTECwLQzQ4QxczkgvfHqY0s2jznxC2Vzwx4IaTVpBDZ2eXLT+hoALkQ/PNc60RC7fq8tOg5btG/iGV8CLUu3s93mVXp5EcVHAo+B2AthPoYn1Nw4hvk84+ZfGRAQ40gkx8phjBw8C5g2ZFY5S4OppGneKSe5dSJrhdMtQFp2FpYKmtc8W8Baw9A3hU4fogGEHKLxsam1u+jXe2zX4nu1QpvdIEBn1yYAH9/vFGiw+HerU3dOUjbphvDH6zKaNo4c8EwMnjciV2KteSZ8ypIFsS5Apbw7U4DHSSsOtq+sE1+bk29rfatvS+HL3
x-ms-exchange-transport-forked: True
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_02E3_01D59D94.BEA67BC0"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 928efddb-8505-4a8f-c2ba-08d76b68d48a
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Nov 2019 14:17:08.1604 (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: fTzCluJji2PBR8rK+pMohKEbScb0WBV94SeZFFtfRStjEfEga/pnd/PrbV141Es4iZwGX9E5lBXUc6c58vAzkU4OX/+ffiKgJCzlzCFClDk=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB6471
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/eMqgHXVoeBIFP8eeQ8sCmFgudLE>
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 14:17:13 -0000

See below BALAZS2.

-----Original Message-----
From: Martin Bjorklund <mbj@tail-f.com> 
Sent: 2019. november 7., csütörtök 16:25
To: andy@yumaworks.com
Cc: Balázs Lengyel <balazs.lengyel@ericsson.com>om>; netmod@ietf.org
Subject: Re: [netmod] comments on draft-ietf-netmod-yang-instance-file-format-04
> The schema-uri looks standard but the contents of the referenced YANG 
> instance file can be anything (as opposed to a pre-defined YANG 
> template like /yang-library).

Note that the name of this leaf is misleading (see my ealrier comments).  It is really 'same-schema-as-file', which means that it point to another YANG instance data file, which must specify its schema in one of the three ways.  Which may be another schema-uri, but in the end the recursion must stop and you must find a YANG instance data file that usses 'simplified-inline' or 'inline'.
BALAZS2: leaf name changes following Martin's suggestion

> The inline-content-schema object looks broken because a YANG file is a 
> text string.

It is supposed to be data nodes for /yang-library or perhaps /module-sets, or perhaps something else.  See the examples in section 3.2.

BALAZS2: The draft includes the text:
" A schema-uri leaf SHALL contain a URI that references another YANG   instance data file."
So just as Martin says: it is a reference to a YANG file but to a yang INSTANCE DATA file: which is yangdata.

/martin