[netmod] Re: 'mandatory' evaluated against obsolete nodes?

Mahesh Jethanandani <mjethanandani@gmail.com> Mon, 02 June 2025 13:23 UTC

Return-Path: <mjethanandani@gmail.com>
X-Original-To: netmod@mail2.ietf.org
Delivered-To: netmod@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id E0D372FAD950 for <netmod@mail2.ietf.org>; Mon, 2 Jun 2025 06:23:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, FREEMAIL_FROM=0.001, 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: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QsIbjFIsyyOD for <netmod@mail2.ietf.org>; Mon, 2 Jun 2025 06:23:06 -0700 (PDT)
Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 5A9F82FAD946 for <netmod@ietf.org>; Mon, 2 Jun 2025 06:23:06 -0700 (PDT)
Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-742c2ed0fe1so4182436b3a.1 for <netmod@ietf.org>; Mon, 02 Jun 2025 06:23:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748870585; x=1749475385; darn=ietf.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=cLXUNu1OjIT7w2cMvBQhk6tdlCT2zXq8/pp3Wo+JUWg=; b=BaF1eXPvfsYFJiS+wNwxj6ZbWB8WkH4pNmbl1tqZbA1lEVS23X6ADHbMgP1HU+L0HX mnAAlBlVvxxJXsXiaSbXM22LmGGlhVHly+b4roOkgpfjSutuK3mXvL06zcZeTS6rYtty XcXXL0yv0dSYCM9kCH/nFkcQAtZZWtGuuo9vBJ/V7uaQfT9/wi3c1f7qAOn98ITRMM0n SWXKJHZmAKFb/BboqI35LIru1Z1wZua/sW5Sr7PvZHEYz3bFp9YDbixwCA8hUZkhpBUf orJc9GLaw5WsV7xJmoyw9vvvbXxHK2eu7/UPBS9AMI6tGM8oLgMbrBQneqatE6wC6Jpu KIiQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748870585; x=1749475385; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cLXUNu1OjIT7w2cMvBQhk6tdlCT2zXq8/pp3Wo+JUWg=; b=UOvqtZDXtWgytFO+6eqjk+95BV8WiCm9AiwFr1pUb71KJlx4lKxVtvPX+r1h9+Tcqb h4OC6WMGY7PkTKPjMKRbdwmVF0ulQo/mG9bnN0nbzQzA09Hs9tX8gIAAispyhk+5ZPzb 81OgDcYtVFqD99P3X6WOr0p2H+XCCAo69z8mnQRZ9Czi35KecACxunV7WiqP2UG05xP0 eyOapdxpugJzRqAFiKz0TB3xmZ7QCtrdWk4RMqssVoAc2dGOCHEPYPhrAsLvcDSjjeW7 JLGtCwTGwf0jr3TEoBBTFCrpU9d4ollsQuPWmpYQwzqHnK7b0VPbNuhJt/1pRhVM6MLA mroQ==
X-Forwarded-Encrypted: i=1; AJvYcCVJ1L8Auv7SWtrMxjZtRJD4yYAIOLqIS+HO7fk3aWhNUdL8VTRmQ22UrdNVZs9Cun9fe5HhAac=@ietf.org
X-Gm-Message-State: AOJu0YzMMd63DXYivRnkY6/8Np0dUB0nXQ3JSEzh1/u6gAuvouFOEQwJ 9r01qX9f7cFjiAc7jzxsLmVxlsrK1tV0PbeFrTHwHwrUaFZvPi1dqAEJ7W57xA==
X-Gm-Gg: ASbGncvIJtdEHCx8bcfOgo6iBPuUkvLQF0rx20LblelvWyROflY+p5pAedYlq6SSibi +5GwOqHRedprvIh4esJ3657rlKrQBELUiBduiBhixPbWY405GIofYzhSy6cadDPAe7Ypw4s3f71 QA763wxIlJKnmEjBDfu3iXxNdHBeJn19UmlY2tmvnk49z+Pgz212xpsD5bQtwME224O0SoNpnrr Iu3GdNihcu/VyxzTBqALs74I/3kB3cVAaOrFsSj6+YC0vOAdS96Bit0koTia96ZP27uPf+0lAp5 afIRFuAToVC9oFbzjHlfse2AAcVFJgb7eHAjU5iPFRpSlOab3/2rlSGXVqQ8Ijxboo/JlX7lATo EdjhKVRNksfVLgjD3rQ3xD0ZZu38ujZ2uQ8WHQAlOr8IUdw==
X-Google-Smtp-Source: AGHT+IFwYJKKbJCiBibP6TpuHlLt1wk4ofpeIoftp2tZAp+kMAE4+4EMBfrPS1xDKjJd1eP3spOarg==
X-Received: by 2002:a05:6a00:1491:b0:746:26fe:8cdf with SMTP id d2e1a72fcca58-747bd96a876mr17648616b3a.7.1748870585125; Mon, 02 Jun 2025 06:23:05 -0700 (PDT)
Received: from smtpclient.apple (c-69-181-169-15.hsd1.ca.comcast.net. [69.181.169.15]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-747affcf84asm7829382b3a.130.2025.06.02.06.23.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jun 2025 06:23:04 -0700 (PDT)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Message-Id: <D562D3B4-175C-431C-AE5B-4D6EEE978CEB@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_0AFE345C-9C48-450F-AE54-E3410A21646C"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\))
Date: Mon, 02 Jun 2025 06:23:02 -0700
In-Reply-To: <LV8PR11MB85369849107C74C576152CF1B562A@LV8PR11MB8536.namprd11.prod.outlook.com>
To: Robert Wilton <rwilton=40cisco.com@dmarc.ietf.org>
References: <SN6PR08MB48475B5FB1BB550475D37DEE9B64A@SN6PR08MB4847.namprd08.prod.outlook.com> <CABCOCHQj87G28+5etiGSapjP69LBXp6pRJ4Vvo6Ad+n30GOSyw@mail.gmail.com> <010001971d7d0966-84ca2e1f-d23b-4a97-8783-a0aec62fd70b-000000@email.amazonses.com> <1322774784.1567293.1748552568544@mail.yahoo.com> <LV8PR11MB853693C7743990E0012B1208B562A@LV8PR11MB8536.namprd11.prod.outlook.com> <393c75e8-5248-4a87-88b0-a94fcb2bcfc4@cesnet.cz> <LV8PR11MB85369849107C74C576152CF1B562A@LV8PR11MB8536.namprd11.prod.outlook.com>
X-Mailer: Apple Mail (2.3654.120.0.1.15)
Message-ID-Hash: 52BBUTATWVW7OQTTYKTI3YCWJ72ZB4I7
X-Message-ID-Hash: 52BBUTATWVW7OQTTYKTI3YCWJ72ZB4I7
X-MailFrom: mjethanandani@gmail.com
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
CC: Michal Vasko <mvasko=40cesnet.cz@dmarc.ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [netmod] Re: 'mandatory' evaluated against obsolete nodes?
List-Id: NETMOD WG list <netmod.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/TrbwUnK2w4SnLa-eOJgv0unxtD4>
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>

I note that this issue is documented here: https://github.com/netmod-wg/yang-next/issues/66

> On Jun 2, 2025, at 5:07 AM, Rob Wilton (rwilton) <rwilton=40cisco.com@dmarc.ietf.org> wrote:
> 
> Hi Michal,
>  
> Yes, I think that the default should be to assume the deprecated nodes exist and obsolete nodes don’t perhaps with options to override the default behaviour.
> 
> Kind regards,
> Rob
>  
>  
> From: Michal Vasko <mvasko=40cesnet.cz@dmarc.ietf.org>
> Date: Monday, 2 June 2025 at 11:45
> To: netmod@ietf.org <netmod@ietf.org>
> Subject: [netmod] Re: 'mandatory' evaluated against obsolete nodes?
> 
> So, I suppose libyang should be changed so that it does not validate obsolete nodes. It should also treat these nodes as non-existing, without the option of creating them? Or perhaps this should be the default behavior with an option to parse/create and validate these nodes (current behavior)?
> 
> Regards,
> Michal
> 
> On 2. 6. 2025 11:09, Rob Wilton (rwilton) wrote:
> Andy’s interpretation is also consistent with https://datatracker.ietf.org/doc/html/draft-ietf-netmod-yang-module-versioning-13#name-reporting-how-deprecated-an <https://datatracker.ietf.org/doc/html/draft-ietf-netmod-yang-module-versioning-13#name-reporting-how-deprecated-an>, although that is done as flags advertised by the server rather than updating the YANG language.
> 
> Kind regards,
> Rob
>  
>  
> From: Reshad Rahman <reshad=40yahoo.com@dmarc.ietf.org> <mailto:reshad=40yahoo.com@dmarc.ietf.org>
> Date: Thursday, 29 May 2025 at 22:03
> To: Andy Bierman <andy@yumaworks.com> <mailto:andy@yumaworks.com>, Kent Watsen <kent+ietf@watsen.net> <mailto:kent+ietf@watsen.net>
> Cc: Jason Sterne (Nokia) <jason.sterne=40nokia.com@dmarc.ietf.org> <mailto:jason.sterne=40nokia.com@dmarc.ietf.org>, netmod@ietf.org <mailto:netmod@ietf.org><netmod@ietf.org> <mailto:netmod@ietf.org>
> Subject: [netmod] Re: 'mandatory' evaluated against obsolete nodes?
> 
> +10.
>  
> On Thursday, May 29, 2025 at 03:20:44 PM EDT, Kent Watsen <kent+ietf@watsen.net> <mailto:kent+ietf@watsen.net> wrote: 
>  
>  
>  
>  
> 
> On May 29, 2025, at 11:01 AM, Andy Bierman <andy@yumaworks.com> <mailto:andy@yumaworks.com> wrote:
>  
> We implement what makes sense.
>  
> - deprecated means MUST implement (same as current but with a 'going away' warning)
> -  obsolete nodes are removed from the schema tree by the server so no validation is done on them and they are never implemented
>  
>  
> This behavior sounds proper.
>  
> Kent // contributor
>  
> _______________________________________________
> netmod mailing list -- netmod@ietf.org <mailto:netmod@ietf.org>
> To unsubscribe send an email to netmod-leave@ietf.org <mailto:netmod-leave@ietf.org>
> 
> 
> _______________________________________________
> netmod mailing list -- netmod@ietf.org <mailto:netmod@ietf.org>
> To unsubscribe send an email to netmod-leave@ietf.org <mailto:netmod-leave@ietf.org>_______________________________________________
> netmod mailing list -- netmod@ietf.org <mailto:netmod@ietf.org>
> To unsubscribe send an email to netmod-leave@ietf.org <mailto:netmod-leave@ietf.org>
Mahesh Jethanandani
mjethanandani@gmail.com