Re: [netmod] Fwd: New Version Notification for draft-lengyel-netmod-yang-instance-data-01.txt

Robert Wilton <> Tue, 26 June 2018 15:31 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 6D308131038 for <>; Tue, 26 Jun 2018 08:31:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -14.509
X-Spam-Status: No, score=-14.509 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (1024-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id reD0FAVYt1xM for <>; Tue, 26 Jun 2018 08:31:22 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 02942130EAF for <>; Tue, 26 Jun 2018 08:31:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;;; l=9810; q=dns/txt; s=iport; t=1530027082; x=1531236682; h=subject:to:references:from:message-id:date:mime-version: in-reply-to; bh=WkkpwRHrOiAAi2xv8HOuJutGonrCLCzHk1aQ8Aq+FNE=; b=S8jSg4pLdGmJOGoIfJ2ZQs8BJwKZq5iXJBCTDzjgCuKQJWHT7fpqEObu qZzmLo9r7/1MJGNpTrueh+15PdPZ/i4GtrJog5pp8hMRCyOdejbUCe5Qe UpAjwvBz8GE87p7jQ5YyVHJWAjEqoGQEQy0RgQIBv9QvzHhMF6My6JS3J 4=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0B8AQBFWzJb/xbLJq1cGQEBAQEBAQE?= =?us-ascii?q?BAQEBAQcBAQEBAYMbDwEBAQGBcBIog3mIZI1BCCKQDoUbgWYLhGwCgzQ4FAE?= =?us-ascii?q?CAQEBAQEBAm0ohTYBAQEDASNUEgkCGCoCAlcGAQwGAgEBgyGBeAiRVZtHghw?= =?us-ascii?q?fhDyDbIEaikM/gQ8nDIJchEcBEgEHgxmCVQKMR4xqCYhlhikGiA2FPYwlhUy?= =?us-ascii?q?BWCFhcTMaCBsVO4JpgkuOBz4wjUiCOQEB?=
X-IronPort-AV: E=Sophos;i="5.51,274,1526342400"; d="scan'208,217";a="4732665"
Received: from (HELO ([]) by with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2018 15:31:18 +0000
Received: from [] ( []) by (8.14.5/8.14.5) with ESMTP id w5QFVHc3008373; Tue, 26 Jun 2018 15:31:18 GMT
To: Balazs Lengyel <>, "" <>
References: <> <> <> <> <> <> <> <> <>
From: Robert Wilton <>
Message-ID: <>
Date: Tue, 26 Jun 2018 16:31:17 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
MIME-Version: 1.0
In-Reply-To: <>
Content-Type: multipart/alternative; boundary="------------21DEF57A38B376AD2F86AB92"
Content-Language: en-US
Archived-At: <>
Subject: Re: [netmod] Fwd: New Version Notification for draft-lengyel-netmod-yang-instance-data-01.txt
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: NETMOD WG list <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Tue, 26 Jun 2018 15:31:25 -0000

On 26/06/2018 16:20, Balazs Lengyel wrote:
> On 6/26/2018 4:07 PM, Robert Wilton wrote:
>>>>>>        7) It might want to include a semantic version number for an
>>>>>>        instance-data-set, depending on whether the YANG 
>>>>>> versioning discussions
>>>>>>        ends up.
>>>>>>      BALAZS: Yes I would like to. However I am not exactly clear 
>>>>>> on what does
>>>>>>      backwards compatibility mean for instance data.
>>>>>>      Data MAY NOT be removed or changed only added.  ???
>>>>>>      Who would use the semver numbers ???
>>>>> What does the version number mean? Every change of instance data 
>>>>> in an
>>>>> instacne-data-set leads to a new version number? What is a bug fix in
>>>>> this sense? What is a non-backwards compatible change of instance 
>>>>> data?
>>>>> I am left a bit puzzled.
>>>> Probably I don't mean semantic version.  But often files have 
>>>> versioning, or
>>>> revision, information associated with them.  This can be muxed into 
>>>> the file
>>>> name/path, but it also seems like potentially useful metadata, and 
>>>> being
>>>> able to handle this generically in a consistent way might be 
>>>> beneficial.
>>>> As an example, perhaps the capability information related to S/W 
>>>> release
>>>> 1.2.4, etc.
>>> We need to separate a version number of the instance data from the a
>>> version number (or version context) that may be needed in order to
>>> understand what a YANG (module, path) tuple means if we move to a
>>> different YANG versioning scheme. The later I agree would be needed,
>>> the former I am less sure of - at least if we talk semantic version
>>> numbers.
>> Yes, I agree with the need for the latter, that may entail listing 
>> the versions of the modules in the meta-data.
>> But what I was actually referring to was the former, and thinking 
>> more of it is just being a string field in the meta-data with a well 
>> defined name, that is optional to populate.  Actually, I see the 
>> current definition already has a revision with a date and description 
>> string.  This is roughly along the lines of what I was thinking of 
>> for versioning (although I'm not sure why this should be a list 
>> rather than just a pair of leaves).
>> Thanks,
>> Rob
> BALAZS:  IMHO if we want to use versioning (semver) to version the 
> instance-data-set itself we first need to understand what backwards 
> compatibility means for an instance data set.
So, I'm suggesting versioning, but not semver.  Just a string version 
field.  E.g. for XR I would just put in the XR release number "R4.5.1" 
or similar.

> Revision is a list because as you develop your instance-data-set you 
> may go through multiple revisions. Just as you may have multiple 
> revision statements in a YANG Module (YAM) the same way you may need 
> multiple revision list entries in an instance data set; to keep history.
But I don't see that every instance data document wants to necessarily 
publish that history, although of course it could just publish a list 
containing a single (the latest) entry.


> (And following your advice, that is one very good reason to define the 
> metadata about the set as normal YANG instead of yang-meta-data which 
> does not have the concept of meta-data-array)
> regards Balazs
> -- 
> Balazs Lengyel                       Ericsson Hungary Ltd.
> Senior Specialist
> Mobile: +36-70-330-7909      
> .