Re: [netmod] definition of "fully expanded YANG"

Michael Rehder <Michael.Rehder@Amdocs.com> Wed, 17 July 2019 13:19 UTC

Return-Path: <Michael.Rehder@amdocs.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 D00BE12023F for <netmod@ietfa.amsl.com>; Wed, 17 Jul 2019 06:19:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.688
X-Spam-Level:
X-Spam-Status: No, score=-1.688 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=amdocs.onmicrosoft.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 FlmMGMThDFxw for <netmod@ietfa.amsl.com>; Wed, 17 Jul 2019 06:19:06 -0700 (PDT)
Received: from indmail01.amdocs.com (indmail.amdocs.com [202.91.135.67]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4E800120098 for <netmod@ietf.org>; Wed, 17 Jul 2019 06:19:05 -0700 (PDT)
Received: from unknown (HELO INPNQEXCHCAS01.corp.amdocs.com) ([10.20.40.7]) by indmail01.corp.amdocs.com with ESMTP; 17 Jul 2019 18:33:48 +0530
Received: from INPNQEXCHCAS02.corp.amdocs.com (10.20.40.232) by INPNQEXCHCAS01.corp.amdocs.com (10.20.40.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1531.3; Wed, 17 Jul 2019 18:49:00 +0530
Received: from INPNQEXCHEDGE01.corp.amdocs.com (10.19.112.167) by INPNQEXCHCAS02.corp.amdocs.com (10.20.40.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1531.3 via Frontend Transport; Wed, 17 Jul 2019 18:49:00 +0530
Received: from EUR02-AM5-obe.outbound.protection.outlook.com (10.20.25.68) by emm.amdocs.com (10.20.25.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1531.3; Wed, 17 Jul 2019 18:48:59 +0530
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Nw9WCbEq4FaaHXyMzE6ewp9n57TTPKtvFdf89SpKfb4+MF6X4PEYlIQtf/zKF7+IGD27vaxJ6JrNVS6t8o8YF/rcs6iVJlzITtQWcnidbLvahp5xvC05Gt+0x4Y0m+r0G8gH5RigqsV6SRvTjvsQUO5Ajea1t6lu7X9shFUwaoSKPDDHvLiEz0QwDquYsFQN+w6tbnMdMFPZD0JAXysf8nRDvfPpurwmsw97uBVjus+Y2QqN53E+lgIvKhLbyN/v2re6n7wCoyne0S9lJQEozgQFURQ9PwwumvhocE3uhUwg1CxwbC8fWk6WFYLc2AGU0JCHSNV2Hrm0C98SzhtwzQ==
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=MbOZyvTYOlXL1PbDFCaGImoEuLHDq/rvjfrOZ7sz0jk=; b=AX2OgsGZI+pEq8C4hPz6T+1cP+mTa1y2Nbdj+lqbKhdrqWhvUkA8y+iMpf8q7pnOBFaaaPCt3oihWNXHifjB90J4H6x2rQAAuQNq+P1E/Uyi3V1Bt6HoZc9Q6ChVbzacKSs1awMDisr7VhzEAykz6CTSpxA4WSwRPmQQ98MOV9WADVh3X8zHWhbWuVdRSOz6N5XRRwQipM6hZY0xiuQQGgn8JGyeeAoavnluEkzbzHPKvix/EAK2IbMyR8SpX0LG1RdXTAaTXuFrc0TAs54LAGdFyb0ipcw3YzB70/9e5DNRWlf1QCUtKa3Gnvaw09hdCy92IpFuiqCv1UKcNmfGmg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=amdocs.com;dmarc=pass action=none header.from=amdocs.com;dkim=pass header.d=amdocs.com;arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Amdocs.onmicrosoft.com; s=selector1-Amdocs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MbOZyvTYOlXL1PbDFCaGImoEuLHDq/rvjfrOZ7sz0jk=; b=C6VWdf8hX4eYMaJ2Wc0XAn6PXnBd2fbtbo8B7EDYsjyA3Muw2MTUDhu2MBjpx/J30OMO9PPkYbbXFVeuFRJjpxkdZzbt2YJpHZta6o9k30yeqBh2Vcmd3pD0Zny1O1iACX/0npH8xdKSUljeSJVNvrRA2JMzw0qY7Qqzb2HpY/g=
Received: from AM0PR06MB4083.eurprd06.prod.outlook.com (52.133.57.154) by AM0PR06MB5972.eurprd06.prod.outlook.com (20.178.116.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.14; Wed, 17 Jul 2019 13:18:57 +0000
Received: from AM0PR06MB4083.eurprd06.prod.outlook.com ([fe80::1df5:e05f:9080:8a32]) by AM0PR06MB4083.eurprd06.prod.outlook.com ([fe80::1df5:e05f:9080:8a32%7]) with mapi id 15.20.2073.012; Wed, 17 Jul 2019 13:18:57 +0000
From: Michael Rehder <Michael.Rehder@Amdocs.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] definition of "fully expanded YANG"
Thread-Index: AdU8nuY0Bmt7E8Y5QVmOJ4Epr5b+lAAAh7iAAAAQAiA=
Date: Wed, 17 Jul 2019 13:18:57 +0000
Message-ID: <AM0PR06MB408317206939E4BE8219C4A8E7C90@AM0PR06MB4083.eurprd06.prod.outlook.com>
References: <AM0PR06MB40833B02760A889E273D8278E7C90@AM0PR06MB4083.eurprd06.prod.outlook.com> <20190717131035.5rseucu3foys6veb@anna.jacobs.jacobs-university.de>
In-Reply-To: <20190717131035.5rseucu3foys6veb@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Rehder@Amdocs.com;
x-originating-ip: [185.139.140.78]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 0c7bf67c-c1ed-4228-3db8-08d70ab9531a
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:AM0PR06MB5972;
x-ms-traffictypediagnostic: AM0PR06MB5972:
x-ms-exchange-purlcount: 1
x-microsoft-antispam-prvs: <AM0PR06MB59720643678E52EFA33F1CE9E7C90@AM0PR06MB5972.eurprd06.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8273;
x-forefront-prvs: 01018CB5B3
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(366004)(376002)(346002)(39860400002)(396003)(13464003)(189003)(199004)(26005)(9686003)(53936002)(2906002)(66476007)(71190400001)(6506007)(11346002)(486006)(102836004)(4326008)(53546011)(7696005)(64756008)(76116006)(14454004)(229853002)(446003)(71200400001)(76176011)(66556008)(14444005)(66446008)(6246003)(5660300002)(305945005)(8676002)(66946007)(55016002)(256004)(186003)(86362001)(74316002)(7736002)(6916009)(8936002)(81166006)(6116002)(66066001)(3846002)(81156014)(6306002)(68736007)(99286004)(476003)(33656002)(52536014)(478600001)(6436002)(25786009)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR06MB5972; H:AM0PR06MB4083.eurprd06.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: Amdocs.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: FqapE7JCWRyE7+uOnsFLeUi1TBvbLxYC7eV66Vctf2Mb+LWw0xWgYTWx96EpBH+RtJY28I7ZR8wdVJ6xJ/810GrpkQ9DDIRl95Wv1VrjWnWdWc6DemBDCTaQlmBpVCptwRSPTXXjKtReIybcY4fiU4nJULb1SrI2WQY+BC8MOj4rpW22YCK8e1c6jH+wRkVrBDhuFQ3rJ46ZprymAEGC9r5zeXJT8GchNhpWapLMuUBA+mfETJ5xoqWHYHIogh3qXdUV+Y5whLfdPpZsJC1TtrqcgujLuC4X7VuLGLA/4RpY3F2Fsar2pXpi4LUfP+Rk5ksSpQdCnKqKSkU52HZe/JZNHOxiTdmaE6XWVPDUYcPLUnZQKDR2fW+Bph+IdlHDz6Jp+p+0ca0ZM4vpq7kjXDWB1ixjJJc4aPgRf3TfJYI=
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 0c7bf67c-c1ed-4228-3db8-08d70ab9531a
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jul 2019 13:18:57.5031 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: c8eca3ca-1276-46d5-9d9d-a0f2a028920f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: MREHDER@amdocs.com
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR06MB5972
X-OriginatorOrg: amdocs.com
X-TM-AS-Product-Ver: SMEX-14.0.0.1158-8.5.1020-24766.001
X-TM-AS-Result: No-10--22.736500-8.000000
X-TMASE-MatchedRID: nI1cAR4k0HZQ6n/rRNAUKjfu+RTlciXgL15JilTYK35re4AoC7Yi5oXv teZ/aS6RZDT6MTrV/utM/6BcDu/jftvRJLD/GixssyNMfIOsc7WPzv8sr7ayo9xSVCzxgUrOb8E SDzzc8u+8Lo8M1p+ST48pJY92lClpPepRoLsP9sJ/X82YUz3nv6FCGy3An0bgOFiq9T5j3bUYru r/gtBkqF6/9ZADn0zM1+YrI1IM0cQL6X18h/dLbMn9tWHiLD2Gt3aeg7g/usAUsxngDoycC2sg1 CvvuxwMkBnQ42vyFpbDwSRc1AowG29tcGwPt29Txti5Nvr5xCDr1pL7v/NuP5722hDqHosTkBo2 na6+eDGHjxVjkaT7Br3x27+OcLL2JtllgBC70fnxkn8eupvmjOBefETzWLKxiUzgs+IEQWCRUg2 M4jnucAfZgjWVqFjnOqC2jMC9pL0WdbzwPFjF4qMeXAXVN6QHwDMmA7wK/abJ2YQ3RSF2RB9oln tJP5UV3UwJgnKc1S4xc7rYSSRku6qPYiVE5gwCsJribvbshQ+I6YVEewE/SZsoi2XrUn/J82Djr eUipnKusy8hI6iaOT2Xsf5MVCB1t7DW3B48kkEWEwph9/6ZS/oLR4+zsDTthUfR2rvBju4D/dHy T/Xh7Q==
X-TM-AS-User-Approved-Sender: No
X-TM-AS-User-Blocked-Sender: No
X-TMASE-Result: 10--22.736500-8.000000
X-TMASE-Version: SMEX-14.0.0.1158-8.5.1020-24766.001
X-TM-SNTS-SMTP: C2A4651D21F7AA9AF9D76553C38C3F2F468111266B44567EA8D99F9EB40A88FA2000:8
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/qrzvGlQokb5GLBSGPW7ltq_MjwY>
Subject: Re: [netmod] definition of "fully expanded YANG"
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: Wed, 17 Jul 2019 13:19:08 -0000

Yes, inlining of everything, including augments. What you'd see in the tree representation.
For example augments makes it particularly impossible for a consumer of the YANG schema to process the schema since the final result.

Some use cases:
- translating to another schema language
- translating to a UI dialog for data entry
- an accurate diff on versions

Model-driven-design means using the "computable specification" for all sorts of things, increasing the ROI of the schema definition.

The diff is a significant issue. As a schema author, I must reliably document all changes.
Without a full expansion, it's easy to not notice that a particular module has changes in its final form.
I don't see how you could verify a semantic version number in a package without this.

> -----Original Message-----
> From: Juergen Schoenwaelder [mailto:j.schoenwaelder@jacobs-university.de]
> Sent: Wednesday, July 17, 2019 9:11 AM
> To: Michael Rehder <Michael.Rehder@Amdocs.com>
> Cc: netmod@ietf.org
> Subject: Re: [netmod] definition of "fully expanded YANG"
> 
> On Wed, Jul 17, 2019 at 01:03:03PM +0000, Michael Rehder wrote:
> 
> > Has there ever been discussion about defining “fully expanded YANG”,
> > that is a YANG module with all internal and external imports resolved?
> 
> I wonder what "all internal and external imports resolved" means here
> - you mean included inline? I doubt this will be tremendously useful nor do I
> know what that will work with augments and the fact that definitions live in
> different namespaces and that for example must and when expressions are
> namespace qualified.
> 
> I believe there are tools that do semantic diffs based on comparing schema
> trees internal to a compiler and that sounds to me more robust than producing
> "fully expanded YANG".
> 
> /js
> 
> --
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103
> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.jac
> obs-
> university.de%2F&amp;data=02%7C01%7CMichael.Rehder%40Amdocs.com%7
> Ce64f1bc5d532478ded2808d70ab844b5%7Cc8eca3ca127646d59d9da0f2a0289
> 20f%7C0%7C0%7C636989658871253899&amp;sdata=US1sJn0ZqC77kiIlqdyzLEtz
> BZdfoo0MCLtG8jqw5w0%3D&amp;reserved=0>
This email and the information contained herein is proprietary and confidential and subject to the Amdocs Email Terms of Service, which you may review at https://www.amdocs.com/about/email-terms-of-service <https://www.amdocs.com/about/email-terms-of-service>