Re: [core] progressing ietf-core-yang-cbor and ietf-core-sid

Andy Bierman <andy@yumaworks.com> Fri, 17 January 2020 00:41 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8D732120099 for <core@ietfa.amsl.com>; Thu, 16 Jan 2020 16:41:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 NjX6ccF40qkS for <core@ietfa.amsl.com>; Thu, 16 Jan 2020 16:41:00 -0800 (PST)
Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0F43512008C for <core@ietf.org>; Thu, 16 Jan 2020 16:41:00 -0800 (PST)
Received: by mail-lj1-x22b.google.com with SMTP id y4so24617026ljj.9 for <core@ietf.org>; Thu, 16 Jan 2020 16:40:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v3EPDUkP1/YqeRaH3X2Mm+PEDpHD4WabdXiQ5CKZ1JI=; b=PkfTCd8qvhjR220ru1/H4y9eikDkOU+vw0+0l66VfiTKXg6b5D1TnOOlZgmIOGylV2 txb6s14feseOehtH/493870MuNgP1I9ZJgnqF+xMP1+x/2ZXDabv0S0sb+EXBOnc+BQq zOqqtSJHnZ922TadhJjPtS99xsVgftepbTtvHJIUF18FZPQUbCsdf5omqSbT9pr+T8Gs MiZ7nMdtA1TvJocKYfrwWCkXLkSHPkWKB/KQRhN+ZRaNiOm1KwmXJ4dVQ7bKlf7VnY3L FXWsdQyCpKgRWyXp6chmjKpXw9cS5/OT2qYh1iUG+1O3coVZpflPC4M7pzAyBa20rxki 6crQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v3EPDUkP1/YqeRaH3X2Mm+PEDpHD4WabdXiQ5CKZ1JI=; b=Pqx4Gdwnt2fOqjFMeghBmKf50QtGaJT1jgmOiAtetIXMV0yTJD9zX7Y4Y2E182LzAu LXRMYyqxrjrk1Le3x1A2ku1bo08ApFuYwxTcvL+jAYYR03/Tys/CkybsE6fuMGvQzCEd 1iU13XS/jeU+//bcp+TxQbryljkEleMfilrxHq3x1wo7iyM2CG7rCBuqKjDwfgWwu1yw fTf5y4UciGFpCLXAo638Mddv+amPnUeRRXRG6Luo8tJbQrwNUYBB459wH1V1u8mqhg/h x5BzY9gnSYxzklUsBUq+n79xfuPZJJWxnqejjm5nu65dNdgMPAm4cEVhFBF9M7xLTAvC O0IQ==
X-Gm-Message-State: APjAAAUJY1SCq1ZHbcjW9UmvyZ1Vuy7Ep6nLSZuCN/qAnQEhZwoSIphb edNL03QUL/Dj+UAPnX1ivucuHOJd1UZl8EWKCXU1jg==
X-Google-Smtp-Source: APXvYqxnk/p3CrCvWrvwQYmD/+q3o02+wGHoZScj0zYQ0+ACQ6epevnEQtBUFBpUJoa2tb0yHcgwNX1rQA2GC9g6D7g=
X-Received: by 2002:a2e:9596:: with SMTP id w22mr3468711ljh.21.1579221658245; Thu, 16 Jan 2020 16:40:58 -0800 (PST)
MIME-Version: 1.0
References: <29380.1565102380@localhost> <BL0PR06MB50428065032ECC2AB3345F619AD70@BL0PR06MB5042.namprd06.prod.outlook.com> <7505.1565633977@localhost> <BL0PR06MB50424C618A704460E4A8F8D99AA90@BL0PR06MB5042.namprd06.prod.outlook.com> <18990.1577231446@localhost> <CAJFkdRyWOfCb4U09rEJ-ZMR3GUuk-rmQ+f3Fs164Mxs8qkeVuw@mail.gmail.com> <22612.1578626081@localhost> <CAJFkdRztFUxdGcdvtTgB=9c-e_BwDAgLTmVPJ+OB8-dgs1sGog@mail.gmail.com> <15754.1578789013@localhost> <CAJFkdRy_3pC37ZxzhTmzqRgWjwDvEFTuhu5Z8+_ktaJgoeOGfg@mail.gmail.com> <6025.1578939111@localhost> <F67A7C80-0955-4836-9B84-66CB52AB6FD9@tzi.org> <26398.1579112884@localhost> <0805B57C-3DCB-4601-976C-2D51CE812312@tzi.org> <14603.1579125396@localhost> <CFF6555D-85EF-42CB-B773-17116F9CC554@tzi.org> <18568.1579133839@localhost> <CABCOCHRJ6-YUSn=MXGMtJT5tK3m9uR3U1K2xYd2UgW2MYkv6ig@mail.gmail.com> <12736.1579216630@localhost>
In-Reply-To: <12736.1579216630@localhost>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 16 Jan 2020 16:40:45 -0800
Message-ID: <CABCOCHS6UhZyFxqWWzPDTMD64oLiA=h=BwKL4Po0qaBYRUX9qA@mail.gmail.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
Cc: Carsten Bormann <cabo@tzi.org>, Core <core@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000f63968059c4b314a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/6HqcflwCm1FgvnuA6C8UcJSfviE>
Subject: Re: [core] progressing ietf-core-yang-cbor and ietf-core-sid
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 17 Jan 2020 00:41:03 -0000

On Thu, Jan 16, 2020, 3:17 PM Michael Richardson <mcr+ietf@sandelman.ca>
wrote:

>
>     mcr> Revisions to the YANG which deprecate leafs and therefore create
>     mcr> deprecated
>     mcr> SID values are different: deployed code might still be using them.
>     mcr> (If we are revising published YANG, then certainly can never reset
>     mcr> the SID process!)
>
> Andy Bierman <andy@yumaworks.com> wrote:
>     andy> IMO there should be no concept of conformance status for a SID
> file.
>     andy> It would be unwise to recover SIDs of obsolete YANG definitions.
>     andy> It is safer to just burn the wasted range and keep range
> assignments
>     andy> small.
>
> I think that we are in agreement here.
>
>     andy> Do SID files need to be identified by a 3-tuple {module-name,
>     andy> module-revision, sid-file-revision }
>
>     andy> foo@2020-01-15.1 -> { foo, 2020-01-15, 1 }
>
> seems right to me.
>
>     andy> I think a robust CORECONF client needs to know the 3-tuples of
> all the
>     andy> SID files used by a server.
>     andy> It is not enough just to know module@revision-date. We want to
> be able
>     andy> to
>     andy> rely on centralized (common) SID files and not have to retrieve
> each
>     andy> one
>     andy> from each server (because they doctored the real SID file or
> replaced
>     andy> it with their own).
>
> I think that you are saying that SID requires changes to the YANG module
> meta
> data which I think is available in some YANG (meta-)module?
> If we all agree that SID values can be deprecated, but never reused (And I
> do
> not hear anyone saying otherwise), then the highest sid-file-revision is
> always the correct one.
>
> If we revise the module, and we get a new module-revision, I do not think
> that we reset the sid file, nor do we reset the sid-file-revision.  Do you
> concur?
>
>
> I think only the last sid file and the new module revision are needed,
> like Carsten said.
>

The sid revision would start at 1 for each module, revision date.
I still think it is useful to be able to correct a sid file with errors.
All code has bugs and there will be bugs found that will require edits to
the sid file.

Andy


--
> Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
>  -= IPv6 IoT consulting =-
>