[netmod] Re: YANG Versioning question - namespace version?

Ladislav Lhotka <ladislav@lhotka.name> Mon, 17 June 2024 19:57 UTC

Return-Path: <ladislav@lhotka.name>
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 19BD8C14F6EF for <netmod@ietfa.amsl.com>; Mon, 17 Jun 2024 12:57:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.106
X-Spam-Level:
X-Spam-Status: No, score=-2.106 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lhotka.name header.b="X3Ivdjih"; dkim=pass (2048-bit key) header.d=lhotka.name header.b="VNssyCcu"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Er_xXOJVlfVY for <netmod@ietfa.amsl.com>; Mon, 17 Jun 2024 12:57:03 -0700 (PDT)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id C3F56C15171B for <netmod@ietf.org>; Mon, 17 Jun 2024 12:57:02 -0700 (PDT)
Received: by trail.lhotka.name (Postfix, from userid 109) id 0075B860551; Mon, 17 Jun 2024 21:56:59 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lhotka.name; s=202404; t=1718654220; bh=x7Nsq8wzuT9bMP0cCfW5nr2wrDZCkDepfEFXtOVnSh4=; h=From:To:Subject:In-Reply-To:References:Date:From; b=X3IvdjihjJ35E6QZ7XJgug49LzkerJIJDyHesmdrY1R6+1heAbHK/+fcs2xjIpIl6 8x7WqvDfiFmasoYn0cgd25Z5mvs8N43/KmNBpihk1UPmVFVH2S0je5hcFsMLeCMZxK lukRdB4klGBrQ73juyo+tag1+xYSCrG0ghyMASjfhIGdI81vxXMXs4J0sZPi9+eHPF Jx5/1aQ9jCccj8kHX/NqvKaFaqZL3zdUakF1wD1HHt224hb2VxwOHdp+nqbbx/sQW+ ucHrdTrVz+O6DOonEkR9f/ZRmLt4JvNW8Y7H54n6uWON7v3ZxYTkZppJ+xZPDzsppu ROST9L1y1sKLw==
Received: from eagle.lhotka.name (unknown [172.29.2.201]) by trail.lhotka.name (Postfix) with ESMTPSA id 5C515860103; Mon, 17 Jun 2024 21:56:58 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lhotka.name; s=202404; t=1718654218; bh=x7Nsq8wzuT9bMP0cCfW5nr2wrDZCkDepfEFXtOVnSh4=; h=From:To:Subject:In-Reply-To:References:Date:From; b=VNssyCcuKDOxOAUzFEkq4trjyepKfHarpaHPwRwLCGXkeBx1FzJxMJqSSh09CXiMB uxAXCQj7wo4hAPJkKqA8SAS57vhu87do0A+DFWTk9xv9LLtqc33emgHqNK7T+RBfmj QkBNRPVFlVa6vtHAabkrGDSxSsQ7BRzI0PHSARZvtdx7QBaqImmPhJw3lgGUs13+OT rQ/Q16vxmEPN3Dcmwh8x0TV/XHL2NCAjqt2Iv5/ZmvwEMSUj7AdQNYVxKvrHb7dIYu BLnp+BYgxEphdnt22xdoCsXkHsfrhBb2eM7PilOT5/UqHxjrABW5AITXQjy2L4M1Ce xta00t05nX8JQ==
From: Ladislav Lhotka <ladislav@lhotka.name>
To: Kent Watsen <kent+ietf@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>
In-Reply-To: <010001902725fef5-d778c086-9139-46a1-bab0-50246decaed8-000000@email.amazonses.com>
References: <010001902725fef5-d778c086-9139-46a1-bab0-50246decaed8-000000@email.amazonses.com>
Mail-Followup-To: Kent Watsen <kent+ietf@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>
Date: Mon, 17 Jun 2024 21:56:57 +0200
Message-ID: <m25xu7s5py.fsf@lhotka.name>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: RC5IQ5OKG3BG7E6ZBIWITH3DYHUOLQYN
X-Message-ID-Hash: RC5IQ5OKG3BG7E6ZBIWITH3DYHUOLQYN
X-MailFrom: ladislav@lhotka.name
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-netmod.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [netmod] Re: YANG Versioning question - namespace version?
List-Id: NETMOD WG list <netmod.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/1i492en4UdtrxbGjhPrCZZbWyTc>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Owner: <mailto:netmod-owner@ietf.org>
List-Post: <mailto:netmod@ietf.org>
List-Subscribe: <mailto:netmod-join@ietf.org>
List-Unsubscribe: <mailto:netmod-leave@ietf.org>

Kent Watsen <kent+ietf@watsen.net> writes:

> NETMOD WG,
>
> I was recently asked why YANG module namespaces aren’t versioned.  For example, the “1.0” at the end of this URI "urn:ietf:params:xml:ns:yang:ietf-crypto-types:1.0”.  The stated concern was "because without this, then management of backward compatibility becomes a nightmare.”   
>
> This convention was established prior to my becoming active in the IETF, but my guess is that the reason is because the YANG-module update rules in RFC 7950 Section 11 ensure backwards compatibility, and hence the versioning the namespace would have no value.  That said, the YANG Versioning effort introduces the possibility of NBC changes, which makes me wonder if this is something that should be discussed.

I believe this was a deliberate decision. The info about module versions is available elsewhere (in the module proper and/or in YANG library data), so I don't see any necessity of having it in the namespace. Can you (or somebody) provide details why "backward compatibility becomes a nightmare"? 

Speaking practically, the namespace identifier in JSON representation is just the module name, so adding versions to namespaces would cause troubles.

Lada

>
> Thoughts?
>
> Kent
>
>
>
> _______________________________________________
> netmod mailing list -- netmod@ietf.org
> To unsubscribe send an email to netmod-leave@ietf.org

-- 
Ladislav Lhotka <ladislav@lhotka.name>
PGP Key ID: 0xB8F92B08A9F76C67