[netmod] Re: adoption call for draft-ietf-netmod-yang-anydata-validation (post factum)
Andy Bierman <andy@yumaworks.com> Tue, 07 April 2026 17:31 UTC
Return-Path: <andy@yumaworks.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 D4311D79625C for <netmod@mail2.ietf.org>; Tue, 7 Apr 2026 10:31:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1775583101; bh=QpZgeT0oSfdrqj0GF5AqEQHjonSQIDPX13hSJDYOQso=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=IXpZ2ZWe//ezCyIFujq0X8sYF2yKxy3TYF6cm3/z0L+NNeaeDJY4OY8F0CGlkiZpT XBpK/pwdSlGfrmgAtR6/zl9WeHSJs3pQyGZ/NMx1frfWEjKaUbFLC+0G1HwvCrbfNW MXkOg1dNt75IT483ddBpcDPuAAqA1R+uiYbd1Sc8=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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, 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=yumaworks.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 CaqKuzkL7nml for <netmod@mail2.ietf.org>; Tue, 7 Apr 2026 10:31:39 -0700 (PDT)
Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (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 16AE2D796157 for <netmod@ietf.org>; Tue, 7 Apr 2026 10:31:39 -0700 (PDT)
Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-8d6654f06caso20139985a.1 for <netmod@ietf.org>; Tue, 07 Apr 2026 10:31:39 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1775583098; cv=none; d=google.com; s=arc-20240605; b=WoSfn+X+Mi52GSX5PWsTWUdzerKx4w/HNRWrnCa8vSo/cWGy1qwwGWECfVGJLuluCL nN5VgnuGsoUO2HGgITjdnSMyB92bCn9f2ojYL5RO3JGj0lNxGmQ9K5cPvWNqaEasJKRc 9DKuYoLFSdMoHxSKbzYNk7VYefvnSisE7R1BqpftmMzHzxy3wlixGoVSPFG9xXMsyAuQ oP7yMOXQpYewzPoL+UI/ET53XRrXArAICP8hEtHm3WopjROXoL3U+Dr17/Hz1wX+5oc/ CW6ek/Z9etXLxcpHdjT2tqmQZH60m+ZHgHdPFIuV6nmjDlqKxPKm/qe1uX+/m4vRuFQx 6o6w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=azsNy2upYMcVkkB76JJ2DXL8AABroXNbn9N2ljI+BHw=; fh=xTk52DVe0SuTyo2l1cV/xy3qabhVZtxJYgiksiMjatM=; b=CgRV0FR7RVLsBYjeNGwvHmriNOcb7I/oKqNm0favcuB1j/fXvV5eexO2pgp8MnC9+u 6ewb+QYyz1Y/WheGUclgE3V920KeC/0+NcVOQF69st8Qw6+LpaJx6RX/yRKlxfGHuFWE V87nnr9qr0nE0Hkx4xE58QkMkN6yOYejl/VDNT3JFokcNOoe9WoAfQNy5CVKk3RZhuPH WClxhWf1Pb5IYBXmunFf8TfYT910f6gBu5QUa0wgsUYqWgktmyfbod2Bs3Jvq2F6U79X oFLEAOkRlrOOhBWlZdFrn+U+Q8Ql7YKIh0ByXDUc/PcVD4uM+zCXVvVqvcFWbKRpe2w5 9WUQ==; darn=ietf.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1775583098; x=1776187898; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=azsNy2upYMcVkkB76JJ2DXL8AABroXNbn9N2ljI+BHw=; b=Te34sTdUJTTsq0aJQ+wwK8o8RvvfsVXqaiKJ4MyHf2KJQQ42T/KzmahNRXN3iV0M+L +hQHgK0Znumi845rdmhTfxFvnStWsDcAlCpdGkoP6fJCY2NYTMylCwinXnWjzgSOyKjF dX7grEzuKy5Dm0Y6Nof7C11NhDFOBYF3pKCv9C4V6oAMqzKubXF/m9Wwv/KoZdfwt3Ti XR9Q1YSlKG46qelMyWxs68LeAKKgmHUsuHfk0ueeQy6QGrDDARBo4YfNwjGKW0ESG70p l2a9OcmCCLTxa3TXWf0dt+Re9nN98JBOvUdh1pviDqZazcgFvDf4vdJK+/GdRmXjChyP uwIg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775583098; x=1776187898; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=azsNy2upYMcVkkB76JJ2DXL8AABroXNbn9N2ljI+BHw=; b=fY0/4s6cT9S7NivPUfIl8KB4tiHnX4Y5E8tkeorSe/03NQVnL6hRJ9yKKagTHJn3Ke 4MUoAi4jYUuRfFe9D2doLgn56tAvsTQXnAs4RTavaK0CRZtVPWWK92m/flQv5evt97OL x/yLbQPcLtphCe69IFY4Va+GiZK4RvrE3M/swqnHnNNDGTgXMe4Wk/fIK65F5x0VE/yh 385ABcN4hW7O4rmmOTDfrH8zcGrnoDquwYCZ/s9p3dqnpJSilbTbCKtUTASfLdP034hj aMXGi2NyF/qK6MMDTyJ29X7tEa1jFh73EDtOJhU4yeFrhTC9sxro6CQH2g5IuLMahdB4 u6mQ==
X-Forwarded-Encrypted: i=1; AJvYcCVYGg+V1zfh247VYD8JbjwAMXhymKW/PgSempUuFjWNyVglEbU8Q1J3+QP1SlBuHY9j9d2yjxc=@ietf.org
X-Gm-Message-State: AOJu0Yy58EcwmRll7bdkNDUGBRI31OoeC6E4VNK+RLd2Zt1q/WvR+ANC y/M+eGCrWABhmiRgXWUp2GkLjRuv4TuVLLFdaO+YvQQol+ogCLAnHh+MOKI/v1K182rOqjyE2Fp Q5+kSE35he+shLWsl1vLUsK0f1vlPN9x2G/1fk4vPIQ==
X-Gm-Gg: AeBDiesj8v/Y0zURp3QjxDjsTOjw6PocZioLgiwXaNLE9hUecTElL0sHlpVTiviO45/ J+HoLjXFlf5Lwf1zyAjZjWtV8PdXVPLi6I0Hzh5A+bBvgDH93/NzE2B0BHMSnSZZae3RqZ7G9N+ byr0MOQLnC2OqXpmiF2gO+fwqwrREPSCG/zGhHauCxFZe/QjZm0MkNoqMBEx+AgNTVR7ZioPd+K Ie83XQjm131oZcPJZ4y/pLF5qlVa4n0cauAOVgm0xcBWYo33+xHY/8dS4jfcBmLig/frK6r3FXm o1yOoQ==
X-Received: by 2002:ac8:5807:0:b0:50d:aa1f:68be with SMTP id d75a77b69052e-50daa1f6bedmr23506001cf.4.1775583098429; Tue, 07 Apr 2026 10:31:38 -0700 (PDT)
MIME-Version: 1.0
References: <0100019d6599f7a8-57438c03-a812-4681-9696-4649e012799e-000000@email.amazonses.com> <CH3PR11MB851956D6817E615794896A89B55AA@CH3PR11MB8519.namprd11.prod.outlook.com>
In-Reply-To: <CH3PR11MB851956D6817E615794896A89B55AA@CH3PR11MB8519.namprd11.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 07 Apr 2026 10:31:25 -0700
X-Gm-Features: AQROBzBep2-PrqwhEXs9dDSy4CVr453KPetBxgqJg4kljQW6vq45zpMKbfVJypw
Message-ID: <CABCOCHRRDGira5kdqVkde5uGcn_53W42J95MBQNJAXsxkZnioA@mail.gmail.com>
To: "Rob Wilton (rwilton)" <rwilton=40cisco.com@dmarc.ietf.org>
Content-Type: multipart/alternative; boundary="000000000000d9f098064ee227b8"
Message-ID-Hash: XOKRFY6C5S7LR4XY3SABEXLFTA5HN5TO
X-Message-ID-Hash: XOKRFY6C5S7LR4XY3SABEXLFTA5HN5TO
X-MailFrom: andy@yumaworks.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: Kent Watsen <kent+ietf@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [netmod] Re: adoption call for draft-ietf-netmod-yang-anydata-validation (post factum)
List-Id: NETMOD WG list <netmod.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/ASoEBdg6geUlF9l06LHH1nIBPVo>
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>
On Tue, Apr 7, 2026 at 9:04 AM Rob Wilton (rwilton) <rwilton= 40cisco.com@dmarc.ietf.org> wrote: > Hi Ahmed, Kent, Thomas, WG, > > Sorry, but I don't know whether the WG should adopt this document yet. > > As per my previous email, my main problem is that I either don't > understand how the solution works, or otherwise I believe that it is > incomplete and I would like to understand what the precise scope/goal of > this document is and to know that there is an outline of a viable technical > solution. > > Alternatively, if this document is only intended to cover the anydata > cases where anydata leaves are encoded from the root of the schema, then it > becomes somewhat tautological in its meaning and intent. In this case then > I think that the document should only be informational, and we might want > to think whether we really need to publish it at all. E.g., could it just > be a couple of paragraphs in another document? > > The crux of my issue is that I believe that this document assumes that > YANG anydata nodes are always encoded from the root of the schema, but this > isn't a requirement from RFC 7950 section 7.10. The encoding is just from > the point of the node that is being returned (and that node must be > correctly namespaced), but you don't need to include all the parent > elements going back to the root of a data tree. I.e., in the general case > you cannot assume that you can just validate an anydata node against the > root of the schema. > > YANG Patch (RFC 8072) is perhaps a good example that uses anydata nodes in > this relative-path way: > > My understanding of a YANG patch operation for an edit request, is that > the "target" leaf gives the path to the data node that is being edited, and > the value (which is any data) is encoded relative to that path rather than > the root of the tree. > > Hence any tool that is trying to validate the anydata part of a yang-patch > operation against the schema needs to know that the anydata is encoded > relative to the target path, otherwise it will mistakenly fail. > > Hence a full solution here needs a generic way of specifying this > additional path into the schema where the anydata needs to be validated > against. Certainly, I don't think that we want to be trying to constrain > the use of anydata in the YANG language to only encode data from the root > of the schema tree! > > Another example would be RFC 9144, here, if the examples are correct, then > the output is encoded relative to the input RPC xpath-filter. I.e., there > isn't enough information in the RPC reply to validate the anydata node, you > need to know the additional relative path context from the RPC input. > > Finally, the proposed encoding for Yang Push v2 is another example where > the anydata isn't directly encoded from the root of the tree, but instead > it is relative to the path specified in "target-prefix" concatenated with > "updates/target-path". I.e., like how push-change-updates are encoded in > RFC 8641. > > Separately, in terms of validation, I think that this should take an > arbitrary datastore to validate against, and maybe even the ability to pass > in some instance data for that datastore that is being validated against > (e.g., if the goal is to validate leaf refs, etc). In the case of > validating against operational, I think that this document should reference > section 5.3 of RFC 8342. We should also check whether there are any other > constraints, e.g., for factory-default or the system datastore that have > been more recently specified in drafts/RFCs. > > I agree with your comments. I have previously raised concerns about this draft on the ML. The validation for an anydata node is based on the normative text in the RFC or YANG module that defines the anydata node. It has been in use for 18 years already, so not sure what problem needs to be solved here. Kind regards, > Rob > > Andy > > > *From: *Kent Watsen <kent+ietf@watsen.net> > *Date: *Tuesday, 7 April 2026 at 02:41 > *To: *netmod@ietf.org <netmod@ietf.org> > *Subject: *[netmod] adoption call for > draft-ietf-netmod-yang-anydata-validation (post factum) > > [This is a strange adoption call, as already the document was approved as > a WG document, Nonetheless, it is a good thing to do an adoption call] > > This email begins a two-week *adoption* on: > > Validating anydata in YANG Library context > > https://datatracker.ietf.org/doc/draft-ietf-netmod-yang-anydata-validation//00/ > > Yes, it is strange that the document title starts with > "draft-ietf-". Please do > not allow that designation to influence your adoption call reviews. > > No IPR was declared for this document: > https://mailarchive.ietf.org/arch/msg/netmod/N-p2jnzvDmog8SU29riWTCzUaHE/ > > Please take time to review this draft and post comments by Apr 20. Both > favorable comments and objections are welcomed. > > Kent (and Lou) > > _______________________________________________ > netmod mailing list -- netmod@ietf.org > To unsubscribe send an email to netmod-leave@ietf.org >
- [netmod] adoption call for draft-ietf-netmod-yang… Kent Watsen
- [netmod] Re: adoption call for draft-ietf-netmod-… Rob Wilton (rwilton)
- [netmod] Re: adoption call for draft-ietf-netmod-… Andy Bierman
- [netmod] Re: adoption call for draft-ietf-netmod-… Ahmed.Elhassany
- [netmod] Re: adoption call for draft-ietf-netmod-… Rob Wilton (rwilton)
- [netmod] Re: adoption call for draft-ietf-netmod-… Alex Huang Feng
- [netmod] Re: adoption call for draft-ietf-netmod-… Andy Bierman
- [netmod] Re: adoption call for draft-ietf-netmod-… Thomas.Graf
- [netmod] Re: adoption call for draft-ietf-netmod-… Andy Bierman