Re: [netmod] YANG revision dates unique in module ?

Andy Bierman <andy@yumaworks.com> Tue, 01 June 2021 14:42 UTC

Return-Path: <andy@yumaworks.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 73F553A1AA4 for <netmod@ietfa.amsl.com>; Tue, 1 Jun 2021 07:42:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.886
X-Spam-Level:
X-Spam-Status: No, score=-1.886 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_BLOCKED=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=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 yTOy2AmEbD-f for <netmod@ietfa.amsl.com>; Tue, 1 Jun 2021 07:42:24 -0700 (PDT)
Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (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 9211B3A1A83 for <netmod@ietf.org>; Tue, 1 Jun 2021 07:42:24 -0700 (PDT)
Received: by mail-lj1-x232.google.com with SMTP id 131so19597983ljj.3 for <netmod@ietf.org>; Tue, 01 Jun 2021 07:42:24 -0700 (PDT)
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=tPLYuS6sL2NC19AWZSkc/PJ5LZyK3eoj06iGAePF1mQ=; b=i1WdPCkcJI4bWT+nrvJ8BSQ2kHMYAfzdsQRQ3466POkNe8HpoTzIevLx/nbPkI7fYn NYpUUpWk3SyQoFRihbSbfSn1nuzAZedxAlhIXzdNEd6UpE2Ur8J09R26ckBOdSb75Leq A4LMCEWoVdcXU4n40T75ypG7xOEjbq8hSD7K/PesEOSW6q7gFjwl/0IWJrrevYHSdl72 utGP5EgzAA5KCRSohBRvXaUpP5go/Bt3PoDLQCWRx6eBvlYa6k6lBgocEVQ6g3yRILIl TxFfwytLkn5SE5UTYM8KOQw9Utn2WaQl5XA4i75wRBID4QhT6pYaGYQjA+sMPJZb9O+r UV6g==
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=tPLYuS6sL2NC19AWZSkc/PJ5LZyK3eoj06iGAePF1mQ=; b=sCRxRWO6snT7WLZG7tryYzEdT3veERGOcshc52LldvU+1KeSc5fCg5uZNwLe8rV4TM 7v0zQwq/N79w7O+W52aI421EaKXBeFxRafvJ5iuoKwQpXXUO4gV00Cd4BunePrEtaNIy sZer6opsg0yDKoxkhBkRHg898iP3v/HjgB8Lb1/j7wB/Q+3K+jEDFuP5xSLGHXPe98k0 7HYkS42oNL3Ie9fX6L6Sv5DWxnBl9jHRStMFKF35vJ80aRCYykh3U1KcZXyDTkIj5Z78 ZNidh4SPy9imz5t3Do+FaMANSnWVW95gpdswaK2IS0wqZ6AZ8UxbZIiT07NWfpaqso5N +rLA==
X-Gm-Message-State: AOAM530DaGAS+ismnFDo6kzhziGutkqLIL/4ox0tj09mu7zTWha/qNVy J1qmKI4sKmEGR5ATN9SWu7Ww4BBV5R/lj1IlUYSbniFLDZ6DaA==
X-Google-Smtp-Source: ABdhPJw8ndqCoY88oIZ53ZP5WKEQv/WzzPyaTYdfoUHXttMvjqynILqg7Fqcn6GMZN+0HZOjM4i1Z7b4Os9b7ZX2Djg=
X-Received: by 2002:a2e:7e06:: with SMTP id z6mr21132977ljc.55.1622558537375; Tue, 01 Jun 2021 07:42:17 -0700 (PDT)
MIME-Version: 1.0
References: <DM6PR08MB5084CAC59121591A4ACC7B029B3E9@DM6PR08MB5084.namprd08.prod.outlook.com>
In-Reply-To: <DM6PR08MB5084CAC59121591A4ACC7B029B3E9@DM6PR08MB5084.namprd08.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 01 Jun 2021 07:42:06 -0700
Message-ID: <CABCOCHQq3C4Roej0f96=y9OgRrNbWYozTYK9JgHgXwiSC7VNQA@mail.gmail.com>
To: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000003f73b505c3b5591c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Pc3x43hC1T7wzMfk0zHjfF_BI88>
Subject: Re: [netmod] YANG revision dates unique in module ?
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, 01 Jun 2021 14:42:37 -0000

On Tue, Jun 1, 2021 at 6:36 AM Sterne, Jason (Nokia - CA/Ottawa) <
jason.sterne@nokia.com> wrote:

> Hi all,
>
>
>
> In our YANG versioning work we are proposing that a revision-label is
> unique and the revision history of a module must not contain the same
> revision-label twice.
>
>
>
> We're debating whether we should state the same rule for revision **date**
> as well.
>
>
>
> RFC7950 doesn't seem to explicitly say that revision date must not be
> duplicated in the revision history.
>
>
>
> This issue came up recently in an OpenConfig discussion here:
>
> Updates to OpenConfig types modules. · openconfig/public@f20ed84
> (github.com)
> <https://github.com/openconfig/public/commit/f20ed8411a6fc1f55c9debed55c852ea4ffef5bb#commitcomment-51076470>
>
>
>
> Was it the intention of RFC7950 that a revision history should never have
> the same revision date twice ?
>

It seems that way.
How would the duplicates be distinguished within a server?
The server cannot advertise "foo@datestring" twice.
Import-by-revision cannot identify the 2 revisions with the same date.


Andy


>
> I think it is somewhat inferred from various drafts that describe how a
> module name + revision date uniquely identifies a module revision. But it
> doesn't seem to be explicitly stated in RFC7950.
>
>
>
> If we disallow duplicate revision dates, that makes the module-name+date
> tuple unique, but it does mean that authors can't produce 2 versions of a
> module in the same day. In theory we **could** do something like this:
>
> - require unique revision-labels
>
> - allow duplicate revision dates
>
>
>
> But in that case, only the module-name+revision-label can be the unique
> identifier for a revision.
>
>
>
> Jason
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>