Re: [netmod] comments on draft-jouqui-netmod-yang-full-include

Andy Bierman <andy@yumaworks.com> Thu, 21 March 2024 22:43 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 5C32DC151520 for <netmod@ietfa.amsl.com>; Thu, 21 Mar 2024 15:43:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 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, 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=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks.com
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 Y9CiAvZIqu0b for <netmod@ietfa.amsl.com>; Thu, 21 Mar 2024 15:43:37 -0700 (PDT)
Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8E3BFC151981 for <netmod@ietf.org>; Thu, 21 Mar 2024 15:43:18 -0700 (PDT)
Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-29fa10274e5so1054018a91.3 for <netmod@ietf.org>; Thu, 21 Mar 2024 15:43:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1711060998; x=1711665798; 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=9GQ80EcQsJ05l4P32TKR98QpCu1m/q4eW9jh7DUwnSc=; b=uXJh+f9BmeDAL6PoPZa6DdHBLMkZeDqemsuT3dNrS5mNcBlkJYxk5rSV1PMdu7HzHC gKl8NqwMchCTmFQegcbXAo57NhRWAabgMBPVKs3A1MvkwvOp503jek/+vp24IXbErZSc cjeU9R7YRC84SD2+rpkQIaGxVMr02rk2fcjgUSWk5YdETI7enND57VBpjjEdMMTBkxvV 3Pa1Ip/JYfBirwpDRNyMw6M8PlP0TI5+vfy3MjDDa9LjundaqdxzRH9BCWwesOMv1Owb sYeaN57T8Iy8q5ohDdrem1wZ1jQIKzZOwNrW23rgB931/XB6fOn7if8g0JjkefY6xjNj ciQQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711060998; x=1711665798; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9GQ80EcQsJ05l4P32TKR98QpCu1m/q4eW9jh7DUwnSc=; b=w7uEgXtiHZtTOm7D+KmjCDuZGN5kcvXcAlo55hZNIxtMorQmqqLi0/hBmHXahggCuX qDnyjIvYkNG9aIhBC/Lva445Ykw8Li6S83XSDSBYANpv1KdwcLjwovI18oLOpiBV4sGO LfpKopp0fWnucwtR5g+DdpcpFoDlZfinKiwTZz3ovy/8Y1+fjsF1wZVk0q9NCXzBVjaE RlGvUUVvbj2dc3yM2jA1vZCqQpAOdZ1vT7Rp5pARFNOQ7fFCBsfZyJRohQqa5dj/F7LW 4z0WNz3j50cb5yPvCpzOsVwA6+fOHOzteJW/Y78JnwwHPNCqNa1JEuxLeyMs6rne24Tb 6PXQ==
X-Gm-Message-State: AOJu0YycAhKuaYcRLoVCxyB5fFB/n9hpIFdd+gsz1s4ijAkY4wcx37Fl pW92gLUzGtN5anDL83mXsrodbllHqLz0UMyW8UAt7hVENTLS4gH4IreY+IVq5D5SgArSaFOSRCo tb6xsU6vemLCvXTfqno0g928wZCJM8yeSJKe0Y+9mCKIVW0vv
X-Google-Smtp-Source: AGHT+IG8x+YayKNlXDH4iHrqw6CIsVr9F+1ZjzdsagvIf+AkIJniNS5IxRihj87EouPeXwIasLmkkT0hOLk41tUUfqI=
X-Received: by 2002:a17:90b:38d1:b0:29e:7f4:868f with SMTP id nn17-20020a17090b38d100b0029e07f4868fmr788890pjb.18.1711060997896; Thu, 21 Mar 2024 15:43:17 -0700 (PDT)
MIME-Version: 1.0
References: <CABCOCHR09_9hAKK_m1pBgQK2Ca0Jo70tKNgULW-4GNq_Y4NDAw@mail.gmail.com> <c631bf99beb44f2780ffcb781f7cd64a@huawei.com>
In-Reply-To: <c631bf99beb44f2780ffcb781f7cd64a@huawei.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 21 Mar 2024 15:43:06 -0700
Message-ID: <CABCOCHS8nyj9msmHr4gXyDBacbH8SoFvBHjPNMLbKDTXd0ZnYA@mail.gmail.com>
To: Jean Quilbeuf <jean.quilbeuf=40huawei.com@dmarc.ietf.org>
Cc: NetMod WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000f819390614336e82"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/TxiOvrv0SoEEU3qKSl-BMq7xWE0>
Subject: Re: [netmod] comments on draft-jouqui-netmod-yang-full-include
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
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: Thu, 21 Mar 2024 22:43:42 -0000

On Thu, Mar 21, 2024 at 1:15 PM Jean Quilbeuf <jean.quilbeuf=
40huawei.com@dmarc.ietf.org> wrote:

> Hi Andy,
>
>
>
> Many thanks for your comments, they make a lot of sense. We will work on
> it and propose a new version of the draft.
>
>
>
> Regarding point 5), can you elaborate on the problems caused by the
> anydata node. As I see it, it is inconvenient to have this extra node which
> does not have any real meaning. Is there any other issue with this anydata
> node?
>
>
>


Changing the root from container to anydata does not remove any extra nodes.
The anydata node is a named node in the schema tree.

The problem is that YANG 1.1 defines anydata as a terminal node.
Within a configuration datastore, there are no accessible nodes within an
anydata node.
There are many cases where RPC or action input parameters are anydata and
the contents are
converted to real nodes when added to a datastore.  This is not the same as
full-include.

This draft proposes changes to YANG that are too severe and too important
to the core language
to be an optional extension.  The WG seems to prefer an ad-hoc set of
optional YANG extensions
to a mandatory set of language statements that all tools must support.





> Best,
>
> Jean
>

Andy


>
>
> *From:* netmod <netmod-bounces@ietf.org> *On Behalf Of *Andy Bierman
> *Sent:* Thursday, March 21, 2024 4:35 PM
> *To:* NetMod WG <netmod@ietf.org>
> *Subject:* [netmod] comments on draft-jouqui-netmod-yang-full-include
>
>
>
> Hi,
>
>
>
> The presentation yesterday helped me understand the motivation for this
> work.
>
> Seems simple enough, but rife with unintended consequences.
>
> RFC 8528 does a good job of dealing with most of these issues, but it is
> not a design-time
>
> modification like this draft is proposing.
>
>
>
> I would like to see this work as part of yang-next, but not thrown in with
> YANG 1.1.
>
>
>
> Just some of the major issues to solve:
>
>
>
> 1) XPath
>
> The issue of leafrefs was raised but of course this also applies to
> must/when statements.
>
>
>
> 2) Shared yanglib
>
> This draft shares the top yanglib.
>
> Schema Mount implementations allow completely separate YANG libraries
>
> that are decoupled from the top yanglib and other mount points.  This
> allows
>
> deviations, features, etc.
>
>
>
>
>
> 3) No way to include data nodes only at the mount point.
>
> To a YANG 1.1 tool, if a module is listed in the yanglib then all its
>
> implemented top-level objects are part of <running>.
>
>
>
> 4) Not clear what is included and scoped at the mount point
>
> There are lots of top-level YANG statements that are not data-def-stmts.
>
> Are these ignored? What exactly is included?  What changes to identifier
> scope resolution
>
> are being made?
>
>
>
> 5) anydata as root
>
> This causes more problems than it is supposed to solve.
>
> IMO Schema Mount got this right, keeping it a container or list.
>
>
>
> 6) Recursion and Loops
>
> This adds significant complexity to the implementation.
>
>
>
> IMO this is an interesting topic for yang-next.
>
>
>
> Andy
>
>
>
>
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>