Re: [netmod] Should the origin="system" be required for system configurations copied/pasted into <running>?

Martin Björklund <mbj+ietf@4668.se> Tue, 23 November 2021 07:39 UTC

Return-Path: <mbj+ietf@4668.se>
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 1D04C3A0975 for <netmod@ietfa.amsl.com>; Mon, 22 Nov 2021 23:39:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level:
X-Spam-Status: No, score=-2.101 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=4668.se header.b=J3YZRStC; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=dzNDOw+f
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9AQDhNX5m3mu for <netmod@ietfa.amsl.com>; Mon, 22 Nov 2021 23:38:54 -0800 (PST)
Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 88DB83A08AF for <netmod@ietf.org>; Mon, 22 Nov 2021 23:38:54 -0800 (PST)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 22D133200F3B; Tue, 23 Nov 2021 02:38:53 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 23 Nov 2021 02:38:53 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=4668.se; h=date :message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm3; bh= bSff8MqZYDSlWQZ2wPpVp/0IZ2ine10joYDM2iZTE6I=; b=J3YZRStC/2TyjO4M IXcmmlquR6lPZV2I1+za78ZEPqZYvAFnntsXx5ShzgSass+R8EySzS1K6/oNpmpa +eWT6e2RDCEdcIcp51Aa9Ofjf7r9aWjcWVrBdiO2SGVwGRbwsH24icrXaUpTDtdx CW77sGMxg4PXzAA9kDMc1qV/L+eFNLtmbEW4OTq4nTdsDQyUM+ZjKduMeSdY51k7 VPKhAPkYpkZuWd//yHUlS8Rn3w8T44SAe5fox2AfXrh567t4BRnFf+2egUeYkyE/ h4Sx7xKF63Jc6bX/n4d+07thzxZKUtnV11a6rsvA0n7g9HOnwUfZhD50LTSYp2eZ bXBt1w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=bSff8MqZYDSlWQZ2wPpVp/0IZ2ine10joYDM2iZTE 6I=; b=dzNDOw+fD8fwikbQ1kF+5YJPMOGpYKyeF0o6Ch21TtfSn0KeTmslfUFq2 EygGtcMIft8isazNuzRhuMnPe+SfGimUyxESkHwUfQGhFI83EoNbDUzf2APBB2Ft 7bz82yZtmvtKxZtDLi3OzLEVDQyqSWJJQJ/hNpXoPttbb9pWxM864hoNpF0o5QV1 BP/58vAXsVda+zKntQnvHyig3fzvij/ojoXiuKPPPAeHCthoJHDSSJAbjd9mgWU+ /u9roH0GGc/hUIeqUdIRV1fcgHfm6peP6iNaLGVmXJG8jwzHOip9TKaLlOLMtAGd 3BLfs/5XTNLzpHwFp3DDVxnRPe/ug==
X-ME-Sender: <xms:jJqcYUjdp0pY7YgTv1q5QW9lQHbZtgXp7319mLafii430n87Lu-Yeg> <xme:jJqcYdADnlA4rkEH9s2IfnQkO85m57UIz_DWDkcRQSGcGcbfDIOA9kF1In1Wuw8CB Yp22nQFtGtV71SIlwY>
X-ME-Received: <xmr:jJqcYcHX1CXBc7Isks0a0W8ZwHmOyigXr0gVHKWmv_u-2uG2jp3D2WN3crhPAxT4L6zVZ-0WEMDCxR3jpQRb3R4l9-pbUDR6sg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrgeehgddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffkffvuffhjghfofggtgfgsehtje ertdertddvnecuhfhrohhmpeforghrthhinhcuuehjnphrkhhluhhnugcuoehmsghjodhi vghtfhesgeeiieekrdhsvgeqnecuggftrfgrthhtvghrnheptdeggfdtuddujeekleevvd eivdevheeigeeffeetfefgfeefkeehffdvfeevfffgnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsjhdoihgvthhfseegieeikedrshgv
X-ME-Proxy: <xmx:jJqcYVSvRt5fQ5l1hOIUgUTEzLDmu0McJJbhdWUwJ2JyzqE9RVlHJw> <xmx:jJqcYRzjUduV_SrktoOHG0uqNP_iS3KnP0Cq-fv9tGvtLLuAu4xTVA> <xmx:jJqcYT53nxrnKZ1vqoo2Sinyfdw9QvfB9rGa59uocSJ_5KAM_BJcgg> <xmx:jJqcYfbLokjVeS50hs6dVZNrInYK113e2yhB_5vhKtMLIRjsQiDgKw>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Nov 2021 02:38:51 -0500 (EST)
Date: Tue, 23 Nov 2021 08:38:50 +0100
Message-Id: <20211123.083850.1266325188190711456.id@4668.se>
To: maqiufang1=40huawei.com@dmarc.ietf.org
Cc: netmod@ietf.org
From: Martin Björklund <mbj+ietf@4668.se>
In-Reply-To: <691d9e3445a546608166ab3dbda96137@huawei.com>
References: <691d9e3445a546608166ab3dbda96137@huawei.com>
X-Mailer: Mew version 6.8 on Emacs 26.3
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/7Z7SJ-iXrsxCL3KyIuOfmyZZLgY>
Subject: Re: [netmod] Should the origin="system" be required for system configurations copied/pasted into <running>?
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Nov 2021 07:39:01 -0000

Hi,

"maqiufang \(A\)" <maqiufang1=40huawei.com@dmarc.ietf.org> wrote:
> Hi, all
> 
> There is still another issue which is about origin metadata
> annotation: should the origin="system" be required for system
> configurations copied/pasted into <running>?

I think the question is "if a node is present both in <intended> and
in <system>, which origin does it have in <operational>"?

(NOTE: it doesn't matter if the value was "copy & pasted" from
<system> or entered in some other way.)

Obviously, if a leaf node is present in both, but its value differ,
the origin must indicate which datastore had precedence.

But suppose the node is a list entry (e.g., an interface) or a leaf
with the same value.  In this case, it is not clear which origin
should be used.  I think it would be ok to use "system" in this case.
(But also perhaps it doesn't matter much).


> Currently any system configuration explicitly declared in <running> in
> order to configure its descendant nodes or maintain <running>
> offline-valid will show up in <operational> with origin=intended.
> The question behind this issue is whether we want a copied/pasted
> system defined data node to override and take precedence over
> <system>.
> 
> The choices and some considerations of this issue received so far:
> o Origin=system IS required for system configuration copied/pasted
> into <running>
> ?  I believe that "system" reflects the most accurate source in this
> case. And only in this way, a server can allow a read-only system
> configuration to be declared in <running>(e.g., in order to valid
> <running>) by the clients.

What do you mean with "a read-only system configuration [...] be
declared in <running>"?  <system> is a separate datastore that clients
can read, right?



/martin



> ?  The challenge for this choice is on the server side. It MUST be
> able to recognize a particular data node which explicitly defined in
> <running> is actually a mirror of what is in <system>.
> o Origin=system is NOT required for system configuration copied/pasted
> into <running>
> ?  Good consistency. For all configurations explicitly defined in
> <running>, if they appear in <operational>, the origin value is
> "intended" with no exceptions.
> o Define a system-mode which is similar to with-defaults basic mode
> and allow a server to advertise a particular behavior
> ?  Does it mean we could get the Pros from both choices?
> Any other thoughts?