Re: [netmod] draft-ietf-netmod-yang-instance-file-format-01 terminology

Balázs Lengyel <balazs.lengyel@ericsson.com> Tue, 19 February 2019 13:13 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 60B17130EE0 for <netmod@ietfa.amsl.com>; Tue, 19 Feb 2019 05:13:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 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, FROM_EXCESS_BASE64=0.979, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.723, RCVD_IN_DNSWL_MED=-2.3, 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 header.b=ayTa/Y5K; dkim=pass (1024-bit key) header.d=ericsson.com header.b=H1xuYMVc
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 x2CcOQoskOa5 for <netmod@ietfa.amsl.com>; Tue, 19 Feb 2019 05:13:47 -0800 (PST)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (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 A9371130ED7 for <netmod@ietf.org>; Tue, 19 Feb 2019 05:13:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/relaxed; q=dns/txt; i=@ericsson.com; t=1550582024; x=1553174024; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ScG0sKqqXn0ySD+2BBidVNufOH0pCmnVR6MFDRAjMn8=; b=ayTa/Y5KjlfxMC/4pIupc1Uupz1DlyF/+3yg8Vw5KpUfLDdujoTskHv8KDpBBHKj SMBKfhm+ZwqlzA3E3QgOyypmjrF9/6ClpJbWEXWQaOCe18esJ/Rsr98SRbwkYJ4j CXyfqnHJGuOXR6cxg90y/nrW0W9Q5hZ3GYcrTvzU/HU=;
X-AuditID: c1b4fb2d-2198b9e00000062f-4b-5c6c0108ae1d
Received: from ESESSMB501.ericsson.se (Unknown_Domain [153.88.183.119]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id 6B.1B.01583.8010C6C5; Tue, 19 Feb 2019 14:13:44 +0100 (CET)
Received: from ESESSMB505.ericsson.se (153.88.183.166) by ESESSMB501.ericsson.se (153.88.183.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 19 Feb 2019 14:13:42 +0100
Received: from EUR03-AM5-obe.outbound.protection.outlook.com (153.88.183.157) by ESESSMB505.ericsson.se (153.88.183.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Tue, 19 Feb 2019 14:13:42 +0100
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=ScG0sKqqXn0ySD+2BBidVNufOH0pCmnVR6MFDRAjMn8=; b=H1xuYMVcTbLMIdOwHReesO0UtlSIriPMsX8TUs8hTns5/Tnsy1qu1seHp7jUP7O/K+gD/feNgLU6F2Q3aTTldXAJCXTC1JRFtPbO9o0Vf+ygiPYNO5l7kXG/03sBJePuYLJNAKanMcesA+v7YW63ICqLj17mg/ldYu+dq65yGpA=
Received: from AM0PR07MB3841.eurprd07.prod.outlook.com (52.134.82.16) by AM0PR07MB4324.eurprd07.prod.outlook.com (52.133.56.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.10; Tue, 19 Feb 2019 13:13:42 +0000
Received: from AM0PR07MB3841.eurprd07.prod.outlook.com ([fe80::9027:886e:9046:b251]) by AM0PR07MB3841.eurprd07.prod.outlook.com ([fe80::9027:886e:9046:b251%4]) with mapi id 15.20.1643.008; Tue, 19 Feb 2019 13:13:42 +0000
From: Balázs Lengyel <balazs.lengyel@ericsson.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] draft-ietf-netmod-yang-instance-file-format-01 terminology
Thread-Index: AQHUyFTvY1P2Up6kTkuobB2P69vrYw==
Date: Tue, 19 Feb 2019 13:13:42 +0000
Message-ID: <68804c28-0748-dbdd-6e1f-278804d27795@ericsson.com>
References: <20190207153212.wttlorfwpoy6mpe6@anna.jacobs.jacobs-university.de>
In-Reply-To: <20190207153212.wttlorfwpoy6mpe6@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [89.135.192.225]
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0
x-clientproxiedby: HE1PR05CA0332.eurprd05.prod.outlook.com (2603:10a6:7:92::27) To AM0PR07MB3841.eurprd07.prod.outlook.com (2603:10a6:208:45::16)
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 38121583-951f-4fc9-5448-08d6966c11db
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(2017052603328)(7153060)(49563074)(7193020); SRVR:AM0PR07MB4324;
x-ms-traffictypediagnostic: AM0PR07MB4324:
x-microsoft-exchange-diagnostics: 1;AM0PR07MB4324;23:LnO3GYFmWnw5Ke7zr63dJBxPuzjyD+M4qwHZk0Jl/nSZP30PJjnaOTuBwPGrQYShUZ0kLCg1IqNtrA3A92cTPPVCFRp1tPYMZkjskC1UCHcbhSbwMfoplPsCAvC1r461/+SJ35Ru6saKLpLw6GEBYenTSPTzeSe0zvtUPaGfWKncucYjjdtyhSn6oisccPWXVjFg2EHv0CVw9kmR0rbf4O7u+UDlMxfOSSznemEbka3RnujPGHqp7ds0NLvQvDH365+OJ+o8scpV0sjYBQhhBpTyr4U2nIslsL2DgH8Prm9TeD45YzT78J77/RfbXHCavnJ6/bTE0vsPeLAZLnrL/GHdYJ0lJ7qEC6Q+2OxY76gPTzh3L32LQW20p2x+foUC3kHOz/2pat0UVlpv9olac0F0AfF9jyJ91x8aHQO8IlpVNZEo6bCTDMooZIVvmawjCSXERqU/6880ugKaKSTn8/vqipBk7MMtrE9Z3Db+WsCj9DiVAn+p0XHnP0gD9LJco7MISrcuX7o7xNUWqsbjw7Ssyc69zNEFv/avgBAAY5jKdO4JniMABo64BEZ1C8EKFAONREeFxpSq/4PwAhemQfFc093KTWeQ4EUgCtqwyGDOqO7PvbdXJNX8/0NMNzCAUZuoSgoviBWBmsPhkanjBvM0tHjafGYD/EViAwivKltOC74CEF5JoscvApoElQrevy/w3eqHdvi+66oNoyXWP/BoF7AbQtdA2yYCLY2apiomFUR/Z3/uk0/b6R/r4PZGuCkj3O2B5dChOd6bB6hShxdfToiM2nmLzF90HRR2ONaRuKbhsBWAILqb4eixmfiZZO5Ys7mUr7mIb3/wmkrdWhRaiZul6HQZdgZesLAtFHs/PSdF7Mc+Zk9daDYqUAIj+4EpouXCb9ow3snou+UPTdLDCidaCDhD3OMeu5bmq5D3xjHQ6TAi/JxD9jAx7O3F1xGl9YAFdPaJ3Uq5nQoaqOnr3YR4v0BhyD20BkCkwznn4GOKt+kM8cBgz/46AuQhE1b5+CEFxIKahOIgkNy4/oEeRD+Fk/7+vksQLOBDTjcqCpIDIWFfVAR4xxuin0CmTzKqYXsedXufy9WZmK0NfE4bh9B1cN+xwdBzzEh+KVRIPl3hykHfEXorWqGlKOh2BqA4JEVEACBDOaETLi8YGxi1aRqSFwaBz//avRoWquV6/Vlf8LRsyPiE3S6N8MBWallRHE8wnB7iNMjKNjJr6G3n6Li/kyWJvYzwh4kPr4tCDOSt6p9O9n+YJjU7EOJEWXDGg3wG9xC5jbBUmNc3MoctDzBnrYBsFg8rWF1yBFlSforlK1jYFycT62iNeivcbDS9fEJtQHs87gHkN1CfcgbbUntd9ZwEN03AdqBtEEtS0y5Pwbx+eSnfJ9Y55NfAq9xOqKx/C7CsjHwAzMQGxvplU6aMGvnqNH3i0NEIm2VacYqI09moITYSEY3yMZ26T7RsSr7eYNxf3TdwcX9uPIPHe7N0Kqwqg+UNHCPfkdlj5e+dDFFwHhmr0f2qXHg/IJT4bDd0kR+EgsP9iCOm7Q==
x-microsoft-antispam-prvs: <AM0PR07MB43247E07D2A8FD7CA62270FBF07C0@AM0PR07MB4324.eurprd07.prod.outlook.com>
x-forefront-prvs: 09538D3531
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(396003)(136003)(366004)(189003)(199004)(51914003)(236005)(8936002)(2906002)(65826007)(256004)(14444005)(66066001)(65956001)(65806001)(6916009)(6512007)(8676002)(1730700003)(5640700003)(54896002)(97736004)(76176011)(7736002)(31686004)(14454004)(3846002)(6116002)(478600001)(2351001)(86362001)(6436002)(386003)(6506007)(25786009)(6346003)(31696002)(52116002)(53936002)(102836004)(99936001)(476003)(2616005)(229853002)(316002)(85182001)(11346002)(68736007)(6486002)(6246003)(99286004)(71200400001)(2501003)(64126003)(36756003)(105586002)(106356001)(81166006)(81156014)(71190400001)(186003)(486006)(26005)(85202003)(446003)(58126008)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR07MB4324; H:AM0PR07MB3841.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)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: BwVTHpvB+ojRtDMug0dHDaEOdSHN2gP6M9fUkp3OEbVRyFoxpL5WYQO8gG2b4c8o/dogm1jE9BjjjEUUFnATSd/UVCZuGAmAXy8fIGKBkqCuPohc4ALOAbJ+WZNJtoMqV2svXBec1/ni26aBxcxFWdBWLYLQxLUloZZisUb/qNk7ihvbFmmNL9HpOObAPHYzUrNc5cOwpm2AVhdKYCTjhcQAIZZ8gn7SukpB/DsmNGj3sQH+foDGA7bbpnkKYmurx1UTUm5Pq3fmSmFujU+GVsLDOT1M0N7KxcT7/2pGCAJwXTQq5iCnbwmddmdQCLqnmBIrPY2K+kpMCBbWiscOWQH4C3pB3WO4jI6SpfhOKauGbk6rMecE+z8EI8YqDB00WP3FGsxWHzNB7aFattaFuelU7dIfWxXaQsT3Jm3igow=
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="------------ms020106020206070706050702"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 38121583-951f-4fc9-5448-08d6966c11db
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2019 13:13:41.5992 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR07MB4324
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA1WSeUhUURTGufPevHlODtymMQ+alK9Vc6lUKIxK8o8IWjQKt6hBHyrqKPPM JYpsw1wKs2QcydFUJmpELQ2tBHFyMBVDLZKUCnUSl4qUchkXmuc1qP9+537fOd89l8tSyh6p CxuvSeW1GnUix8hpfVhjujeLEqN2Ddk27S3rvSo9hI5UVc1LTqII+f4YPjE+jdf6Hjgvj5tq KpSlzEZn/GytkWSh5TO5yIEF7A83Xt6jc5GcVeI2BL/y3yJSzCDI/2JgSFElAcsnw4qNxgUU dA7Uy4hSKIHr429ocZgSDyMo13MiMzgYsn+0SERW4e2gf1HLiLwOh0JX9gRFzk9Brc4sI+wD RX3Zdj9rT9gKX037RFTgg2Ab2UymH4cKS85KkgM+AQ2fK6UiI7weZjurV5Io7AwD1jIJWU0F Q71dDGEnGB9ZlhLmoHhiYIWd8Fm4+72UElcBXITAmNssIyYv6O63IsJu0FeWt8rHwDImDhIb RhA8H3xKE8ETKswmRIRZFTwyjK7GJcB4nWm1ewMMdulW4z4y8MBmlRYgn5J/rl5i1yicg6Cj 14JEQYHXQofeSpfYn4PC28B4k/vfL/JOMD6cpAgHQrGtlSHsDvfzhmSEA2DSMoUI+4GxZokp R/InyEngBSEpdo+fD6+NjxaEZI2Phk99hux/q7VhwbsJmSaDzAiziHNUlI0mRCml6jQhM8mM ttjnDNeZepALrUnW8JxK0fbBLiti1JkXeW3yOe2FRF4wI1eW5pwVi8q1UUocq07lE3g+hdf+ VSWsg0sWcs153e1uMxeGtBq8mh9Pj+quXXGubqyPr/T3Dni3Yz6kSOlwe6Y4QxF5Zy7cHOYW ar7s4RvBLXzz1CeHronuX/xN56a3l1zy663KCrSVSoPa5hjHsT5/N/mtjXz5ZPjSq/CZln4r 39Q+nckF57ifnsvwgMO6o1F9hhhB934gkqOFOPVuT0orqP8An+uRpWMDAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/A-8fl5w-qEOqSPjw9hhE1bVbcTg>
Subject: Re: [netmod] draft-ietf-netmod-yang-instance-file-format-01 terminology
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 Feb 2019 13:13:49 -0000

Thanks for the comments. See below!

On 2019. 02. 07. 16:32, Juergen Schoenwaelder wrote:
Hi,

I just stumbled across the terminology defined in
draft-ietf-netmod-yang-instance-file-format-01 and I have several
questions:

   Design time: A time during which a YANG model and the implementation
   behind it is created.  Sometimes in other documents this period is
   divided into design and implementation time.

Assuming that design time and implementation time are the same seems
to be odd. In the IETF, it is quite common that there is a significant
difference between design time and implementation time. So what is
mean here? Since the term is rarely used (I found two occurances),
perhaps clarify what is meant where this term is used and do not
introduce a new term. However, if the term is defined, then I suggest
that we use semantics that align with the common use of the term.
BALAZS: Following your suggestion I removed the term.
(I do not know if we really have a "common use". For me (Ericsson) anything from specification, to SW development to testing is considered design time.)


   Instance Data Set: A named set of data items that can be used as
   instance data in a YANG data tree.

Why do we need this term? How is this different from data tree defined
in RFC 7950?

BALAZS: Instance data set is more than just a data tree: it includes metadata and MAY include additional items
like XML attributes for implementation specific use. Also the validation rules are less strict as partial data sets are allowed.

   o  data tree: An instantiated tree of any data modeled with YANG,
      e.g., configuration data, state data, combined configuration and
      state data, RPC or action input, RPC or action output, or
      notification.

In which sense is this a 'named set'? Or is the intention here to
define a named set of YANG data trees? If a term is needed, would
'Instance Data' not be simpler and align better with Instance Data
File? Also note that 'instance data' is defined later as 'data that
could be stored in a datastore and whose syntax and semantics is
defined by YANG models'. So how does 'instance data' related to
'instance data set' and 'data tree'? Can we simplify things?

BALAZS: Instance data is used as a general term. "Instance data set" is a specific representation of instance data, that

  • has a specific format (XML or JSON)
  • must be decorated with specific meta data and
  • must have an identity (name + revision-date/timestamp)
  • has a specific scope (partial data sets are allowed)

Even for an unchanged data tree, you may record different instance data sets e.g. representing the same data tree at different times, thus signifying it has not changed.


   Target YANG Module: A YANG module for which the instance data set
   contains instance data, like ietf-yang-library in the examples.

I am not sure I like 'target'. It seems to me that instance data is
expected to conform to a schema defined by a collection of YANG
modules and you probably want to express that (but 'target' I find
misleading - data does not target a module).  Whatever we choose at
the end, we need to make sure that the terminology across related
documents (YANG, NMDA, YANG Library, ...) is consistent.

The leaf target-ptr triggers questions as well. If there is a choice
between two things, perhaps using a YANG choice is a more natural way
of expressing this than inventing special notations. I am also not
sure if it is a good idea to hardcode the name ietf-yang-library. Why
can I not just refer to any schema defining YANG modules? This way, we
have the freedom to create ietf-yang-library-2 if we ever want to. Do
implementations have to follow target-ptr arbitrarily deep? Do they
have to detect circular references (well they better do I guess).

BALAZS: Agreeing with you, it will be changed to choice. That also makes finding the
used method explicit. It also makes it easier to add new methods later.

I will make it possible to use other YANG modules.

Could you propose a better name instead of "target"? IMO the concept is needed. It could be called "target" or "instantiated" or "data-defining" or  ???
IMHO terms like "used", "referenced", "relevant" are to generic and used for too many ways.


/js

-- 
Balazs Lengyel                       Ericsson Hungary Ltd.
Senior Specialist
Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com