[netmod] Re: comments on system-config-08 draft

Andy Bierman <andy@yumaworks.com> Wed, 21 August 2024 17:27 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 5ABB1C14F6AB for <netmod@ietfa.amsl.com>; Wed, 21 Aug 2024 10:27:09 -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=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 A2li6rQzwo3K for <netmod@ietfa.amsl.com>; Wed, 21 Aug 2024 10:27:05 -0700 (PDT)
Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) (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 ietfa.amsl.com (Postfix) with ESMTPS id 5636DC14F6A8 for <netmod@ietf.org>; Wed, 21 Aug 2024 10:27:05 -0700 (PDT)
Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-70d2c0ee69fso104009b3a.2 for <netmod@ietf.org>; Wed, 21 Aug 2024 10:27:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1724261224; x=1724866024; 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=6t7xxcKfXa89TLdq0UepHN/lpw5BBip3/E1rZOhhuOM=; b=VIqnat1Q5Bg+ISUv3uBYag4iqSryyJ9qIqFGlZKmvzgwDgBSDLvguQefQCkjei0kFS wCaSk6kVHhFomQNoAvB8tythxFo7bk6LyncYjyuMnB+1+R8pnJw7q9jEOuPTCbCx/xf2 vqNNszsYpx+XU3NlbdcKw1kHXtu3KNFlMsISfk0fGEA/abu4S8T2WJ/pHwgFtYY1ly3+ V2uJXKcCzZDlDJdX+h4nLLk0nNlwVx2d1hz/wE5XreRsCuKizlcSZzoI9lSk4TtCqMsO hVAFUAwN4H2ZKDApDWmELLKGS8T48f2/FFhgpinFeCCcHUzM6bdx04lmLnF20tz+07uX 3AVg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724261224; x=1724866024; 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=6t7xxcKfXa89TLdq0UepHN/lpw5BBip3/E1rZOhhuOM=; b=KwBlpWuFsj4+GSpCY1rkl4XeM4qEIeZ/r8BXGbEJb1fYJHuFos8H9x0YSebosWZjKq yA5xpCXYq1DpCV9nCtBs01Dzx1rgxIFoTzvm6goz2dSDqaQFH2KceUBt9M+wXucLMNI3 jF8L425sN0ze4u6KmK20qz4O1sm+M70sXvIe6PV1rSE38QKxshD6F8lJb++55K/vs6ge 6Q1ez2LqXG0teDOuUj6QcdTsz867RW1XrSJ/AbcT/YJT/N2/+EGY4hzecr6+h7gTG6Ei 04uvfU9/Q3TxpQS22E/2/ds6qBCjcY6zMetDRl9Kl2kDd4PacGu0BSOXBTzAuxZJGZwv 1Zew==
X-Forwarded-Encrypted: i=1; AJvYcCV/zUdd+IGrr9zOHGQQ6Fx29P9c/qOIiagcJTfDJiFgi7fFwZ0QkIicW5mLCfFwtsueBaK8mbM=@ietf.org
X-Gm-Message-State: AOJu0YzDBH1zrByDjwKHam9YHEFZb3uzcIr6fdhcsmKr2dnK0jW5SqHj mZBUnH7OoKNQQHMIrXQ/faF7lvyQnF7GK+b/3Ji2Yg0d5Y4ReEpGJzYxgMLpHeC6YGG5SqbscIB yMk8tvQaT+p8M4blq5BnvMYLzTXce/io+mG8A9Q==
X-Google-Smtp-Source: AGHT+IFoU69WVLK+C2vZHNhwxCJBbRT/7P1z/eyhFD/QpY+VKAvgLPYX3R7WwqJPY8f40k3kPo8jZnKGOQMTGJ9OJZk=
X-Received: by 2002:a05:6a20:2590:b0:1c4:a20e:7a8c with SMTP id adf61e73a8af0-1cada157383mr2090915637.4.1724261224355; Wed, 21 Aug 2024 10:27:04 -0700 (PDT)
MIME-Version: 1.0
References: <CABCOCHScHJENof+1obOgXUDZZMhhPhs9rvKHw4W0RRfF0R1_Hw@mail.gmail.com> <bf769710572f4b3884d58d128cf58305@huawei.com> <CABCOCHRWgBpt1Cx4FJqec=-80_PLvRKK1gz7oWJ06C=+_zjNRA@mail.gmail.com> <0100019175c50c8e-f22d8526-dfbf-49a2-badb-6ad10afd0186-000000@email.amazonses.com>
In-Reply-To: <0100019175c50c8e-f22d8526-dfbf-49a2-badb-6ad10afd0186-000000@email.amazonses.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 21 Aug 2024 10:26:53 -0700
Message-ID: <CABCOCHQihWy92AzWzgQSVFuWFuHEkN-_yK5T-r=jL0r5eOPkTQ@mail.gmail.com>
To: Kent Watsen <kent@watsen.net>
Content-Type: multipart/alternative; boundary="000000000000c73621062034d9a7"
Message-ID-Hash: GN5UNI2OABH4VQCBEB3MYI2P34ZHEY2N
X-Message-ID-Hash: GN5UNI2OABH4VQCBEB3MYI2P34ZHEY2N
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: "netmod@ietf.org" <netmod@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [netmod] Re: comments on system-config-08 draft
List-Id: NETMOD WG list <netmod.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/tkxUrf93c3Dquc-ZUorNHQoK4u0>
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 Wed, Aug 21, 2024 at 9:28 AM Kent Watsen <kent@watsen.net> wrote:

> Hi Andy,
>
> The example in the appendix shows a device that would boot without any
> interfaces in <running>.
> They would only be in <system>.  If this is the case, then all non-NMDA
> clients and all current NMDA clients need to be rewritten to know about the
> <system> config.   IMO breaking all existing clients would be a bad idea.
>
>
> This is why there was so much effort before to copy system-defines nodes
> (the so called “shared objects”) into <running>, i.e., so legacy clients
> wouldn’t break.  This is my #1 case in the other thread.
>
> The other approach is to version the protocols with a mandate that clients
> grok <system> and no longer “running alone must be valid”.
>
> No one is talking about changing the existing NC/1.1 and RC/1.0 contracts.
>
>

So you are planning new protocol versions with NBC changes as well?


> I am confused, because I was told the reason <system> is needed is so
> leafref and XPath in <running>
> can reference the system config (i.e. nodes in <running> require nodes
> from <system> to be part of the data tree.)
>
>
> This is not true.  XPaths are only resolved in the datastore that is the
> context.  E.g., if validating <running>, running is the context.  If
> validating <intended>, intended is the context.
>
>

So what is the point of the system datastore?
If all references in <running> must be to other nodes in  <running>,
then the 'immutable' flag or other metadata is good enough.

I do not understand why metadata is OK for so many other properties, but a
special datastore
is needed for system-created="true".  Not just a special datastore, but
also breaking how <running>
has worked in routers from Day One.


I don’t think it is possible to validate <system>.  I also don’t recall the
> draft saying one way of the other.  It might be good for the draft to say...
>
>

I don't understand how removing the system config from <running>
makes it easier for clients to configure a server.  Checking one datastore
so you can
create parent nodes and other referenced nodes in another datastore is
complicated.
IMO the current approach (plus immutable flag) is simpler to use.



>
> Obviously, an old client is unaware of the new <system> datastore and will
> never provide the 'resolve-system' leaf.
>
>
> I think that the current plan is to remove the ‘resolve-system’
> parameter.  Perhaps pending more responses from the WG…
>
>
So resolve-system means "figure out which missing system nodes to magically
add, or the edit will fail".?
Seems like setting this to 'false' is a bad idea.


> I do not understand how config can be changed, e.g. an address is assigned
> to an interface,
> if the parent interface is not in <running>.
>
>
> It cannot, the parent nodes need to be in <running> as well.   This is my
> #3 case in the other thread.
>
>
> Kent // contributor
>
>
Andy