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

Andy Bierman <andy@yumaworks.com> Tue, 16 April 2024 16:24 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 71982C14F71E for <netmod@ietfa.amsl.com>; Tue, 16 Apr 2024 09:24:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.095
X-Spam-Level:
X-Spam-Status: No, score=-2.095 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_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, 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=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 pZXvtx-nsCRY for <netmod@ietfa.amsl.com>; Tue, 16 Apr 2024 09:24:05 -0700 (PDT)
Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) (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 385C0C14F5E9 for <netmod@ietf.org>; Tue, 16 Apr 2024 09:24:05 -0700 (PDT)
Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-5ca29c131ebso3009830a12.0 for <netmod@ietf.org>; Tue, 16 Apr 2024 09:24:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1713284644; x=1713889444; 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=RMo2M+90La1dK8mP2GdZRAVyymtbOXUVN01EZAf0ZiE=; b=dvkBW1kOU6ZnzIkqayES/0jWBHEF4ColkhgFYnRBSoyubxkbBv/hrspGn8CVSWUQIu NAJibRNKk46yH0lpI959xb+Or7hLteNlWStWlSQNDMWjqdYWmFzTMZVPhF9VY3Rw2Dmd tUmPNZF2DLqpLAHb1SuVVDXOJqbLJYxJrJkWTGK5GwCsTNpkf43hyVdYS2W14ECWexFa 4SSKRa0X3ev5ykFHSyhaZpw4J1pDoGRVwgKaVfrlW8YTbQIt2rcXKS9TI7oyk13PQ2iQ mXw6k0dW/O2OjI/Bpj4kc04riI8ExJuoBbqCaWKCyPXkIsW3cA6h63p/kD917RqW4j0V bQfQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713284644; x=1713889444; 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=RMo2M+90La1dK8mP2GdZRAVyymtbOXUVN01EZAf0ZiE=; b=OaKxW3lLaBI8xWURISSSrs7CyV5SWxVwmDOFhbsPZEeSsjAAoLdq/J8fqxPWwX1awz pGiAy3h0Ug72l7U/oxpfcEEd01CpGfijTGC7g0k83GGoGxY63nh8+365u2dxRRt8kvlk wr93WkZprEsftXla56XVCovU8JdWMs1WNhQIfIfhRNumpBk6XTL15rbpI6Vk6ksZXXSH 9sRSZsPgVH/xE2MikaDIjf5s9Q8rllqvNPItwhJfu5Sp3DFu2iSFwD7LnnvkIZZy6wol apcioxWM28PZGS3NmyXE4Z+ocAnayBgpt++OPPgDJKQN0nFNCLtUITpjmyxoJ3L4gh65 sYQA==
X-Gm-Message-State: AOJu0YxJYO3YnrIWLj/PnEx0ReSPrMHLpmEKQJ8F2MDMLJqKcJ9IQ0v7 dsZ/kHszk0bi7aM+mVwdN52Lf0oV6cvrKrV3Y57WANvCIcqmUu29CGMdc7UpMekN7EXI4rfw6ga M6JN1aeXM+0c7IbMfbc/0vlxnS0VxqY49OewsGw==
X-Google-Smtp-Source: AGHT+IEES0ceR0c0008OSjV5ae5YF/J0GxsQHVd5lzKzfBxHSE25MFBEhYANlr0ZFG2ubXETAmtlx2eOLnftJ1PPFo8=
X-Received: by 2002:a17:90a:d252:b0:2aa:52e1:f353 with SMTP id o18-20020a17090ad25200b002aa52e1f353mr3771693pjw.30.1713284643844; Tue, 16 Apr 2024 09:24:03 -0700 (PDT)
MIME-Version: 1.0
References: <CABCOCHR09_9hAKK_m1pBgQK2Ca0Jo70tKNgULW-4GNq_Y4NDAw@mail.gmail.com> <48ed74da-b8a7-3c1d-6b67-ce8d9af3a468@huawei.com>
In-Reply-To: <48ed74da-b8a7-3c1d-6b67-ce8d9af3a468@huawei.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 16 Apr 2024 09:23:52 -0700
Message-ID: <CABCOCHS8LUow3=+g6vzdouVJCzQFAH_b0o2ESrJ7jSpZYUe4iw@mail.gmail.com>
To: Benoit Claise <benoit.claise@huawei.com>
Cc: NetMod WG <netmod@ietf.org>, Scott Mansfield <scott.mansfield@ericsson.com>, Balázs Lengyel <balazs.lengyel@ericsson.com>
Content-Type: multipart/alternative; boundary="0000000000009892280616392a57"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/1DXUoDYMlP9oUqJJEIH44H3Nsi8>
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: Tue, 16 Apr 2024 16:24:09 -0000

On Tue, Apr 16, 2024 at 7:01 AM Benoit Claise <benoit.claise@huawei.com>
wrote:

> Hi Andy,
>
>
> On 3/21/2024 5:35 PM, Andy Bierman wrote:
>
> 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.
>
> Yes, we could always push enhancement to YANG-Next.However, don't we have
> enough requests now, not only from the IETF (
> draft-ietf-opsawg-collected-data-manifest
> <https://datatracker.ietf.org/doc/draft-ietf-opsawg-collected-data-manifest/>)
> but also from the BBF (Scott Mansfield) and 3GPP (Balazs), as mentioned in meeting
> minutes
> <https://datatracker.ietf.org/doc/minutes-119-netmod-202403210300/>?
> Let's keep in mind that
> I don't see YANG-Next being standardized any time soon.
>
>

I don't see how this type of Schema Mount can be achieved without
specifying which
modules are included at the mount point.  It looks like a special "import"
mechanism will be needed
so a YANG 1.1 tool does not think a module is being used at the top-level.

IMO it is a bad idea to reinvent parts of the YANG language as external
language statements.

Regards, Benoit
>
>
>

Andy


> 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 listnetmod@ietf.orghttps://www.ietf.org/mailman/listinfo/netmod
>
>
>