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

Andy Bierman <andy@yumaworks.com> Thu, 21 March 2024 16:35 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 DACF1C14F73E for <netmod@ietfa.amsl.com>; Thu, 21 Mar 2024 09:35:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.105
X-Spam-Level:
X-Spam-Status: No, score=-7.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_HI=-5, 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=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 6d9hdt0tXcZh for <netmod@ietfa.amsl.com>; Thu, 21 Mar 2024 09:35:40 -0700 (PDT)
Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) (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 DBAFEC14F700 for <netmod@ietf.org>; Thu, 21 Mar 2024 09:35:40 -0700 (PDT)
Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-5e4f79007ffso795450a12.2 for <netmod@ietf.org>; Thu, 21 Mar 2024 09:35:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1711038940; x=1711643740; darn=ietf.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ty80La+mq/QqLXVCJRMcqB1JqNTQPURSAcJ06oUB/4A=; b=FSdq8/NEUnTt2LF+biZMGprzULMjqT/Gx42wwDBnHNNaAnB91hm4JRDmLW5b2zPjT/ 0lG3U4gnkwXx9g2r1M9ikFzkCP+JrGF/ZqHfxkKN9kNwpXMSmI/ZjC/ZZC+yY8/Rqn10 XQsWS6wkmhnkuUhWWRTYmKr0MzjWcLGp9/fQXArzqE0NZTaD06BSPtyBZDau8SC6Marg 9WPYxY62p7m6jZkvPc1c3yYiiEv7Cc1zf2vxugkZUCa/ATwbvZ0Gm9X4PVMtTpHlRvHe I+hx2/1tOtzyfJErw79V5bVkFhIA48TVU6ZfKT7xL6Uq5w5BfGwPdr4j8pPknerebVoA JowQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711038940; x=1711643740; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ty80La+mq/QqLXVCJRMcqB1JqNTQPURSAcJ06oUB/4A=; b=QfqpVNPA9nNBZ54Ya6iCMkXPXHsEZWbnt0eD/Bfbl2IzFj7/el23povD1WZ+H2lOKY 2zEWErdAo3LxjjCGspSrvmXiOnOsOmcQTrY5Uwj/8I6VM99KPKCQIQDS8h8u4zYX6Yox g6JFfZrc4WSixMChEIUui3DBtky/ihW+yYYY737ok68pZeTFTnFfeP/A4EBq+x8dLPjN OwcC3fIHvY/zob86nlpQbmFr5qG8DGqjp1po4n0vw4GngDK55cYKSNmrcnNF3fsj+tPp idzH0bsds2JG69AWhjWZApVQtfkD7ZKOdkxuLtJfMBGu1OwWvXJSH2NmCetBXwcLGShM z8zg==
X-Gm-Message-State: AOJu0YwJPUWBEM0hil28sSoqPLykFfD/LRgycBVd8AuxYa33h5jFV7/k A3VsqErD5LsddewMNSLW1cyJfZooJBDAo7htntjXYJDVGYzG3rgownWHyrbRjwAMFJVyAeDjl4V UrmZdhwX9uWgBdhI6HV3R7zKG/wyQdtAzDrdmtDb6YDQu1w4bpIE=
X-Google-Smtp-Source: AGHT+IEV4+feO10QZoRDPDMmdrZ2wavVhLsoWnVZxiTo+JvS6qXfhuo/4uV60Tlv0JfFxmYEa5a5kU+IgVq/i5yffBs=
X-Received: by 2002:a17:90a:8042:b0:2a0:2a36:91a0 with SMTP id e2-20020a17090a804200b002a02a3691a0mr1371584pjw.18.1711038939832; Thu, 21 Mar 2024 09:35:39 -0700 (PDT)
MIME-Version: 1.0
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 21 Mar 2024 09:35:28 -0700
Message-ID: <CABCOCHR09_9hAKK_m1pBgQK2Ca0Jo70tKNgULW-4GNq_Y4NDAw@mail.gmail.com>
To: NetMod WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000034c0e106142e4cdc"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/gJdLfsJUa8Ls8qfpMr7m5fkpJa4>
Subject: [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 16:35:44 -0000

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