[netmod] Re: I-D Action: draft-ietf-netmod-system-config-06.txt
"maqiufang (A)" <maqiufang1@huawei.com> Mon, 17 June 2024 12:20 UTC
Return-Path: <maqiufang1@huawei.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 779FBC1D8772 for <netmod@ietfa.amsl.com>; Mon, 17 Jun 2024 05:20:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.903
X-Spam-Level:
X-Spam-Status: No, score=-6.903 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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
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 d730DvzUWN7I for <netmod@ietfa.amsl.com>; Mon, 17 Jun 2024 05:20:21 -0700 (PDT)
Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0A07CC1D876E for <netmod@ietf.org>; Mon, 17 Jun 2024 05:20:21 -0700 (PDT)
Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4W2pk53DWXz6JBHh for <netmod@ietf.org>; Mon, 17 Jun 2024 20:15:25 +0800 (CST)
Received: from lhrpeml100004.china.huawei.com (unknown [7.191.162.219]) by mail.maildlp.com (Postfix) with ESMTPS id 0D621140B55 for <netmod@ietf.org>; Mon, 17 Jun 2024 20:20:18 +0800 (CST)
Received: from kwepemm000017.china.huawei.com (7.193.23.46) by lhrpeml100004.china.huawei.com (7.191.162.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 17 Jun 2024 13:20:17 +0100
Received: from kwepemm600017.china.huawei.com (7.193.23.234) by kwepemm000017.china.huawei.com (7.193.23.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 17 Jun 2024 20:20:15 +0800
Received: from kwepemm600017.china.huawei.com ([7.193.23.234]) by kwepemm600017.china.huawei.com ([7.193.23.234]) with mapi id 15.01.2507.039; Mon, 17 Jun 2024 20:20:15 +0800
From: "maqiufang (A)" <maqiufang1@huawei.com>
To: "Jan Lindblad (jlindbla)" <jlindbla@cisco.com>
Thread-Topic: [netmod] Re: I-D Action: draft-ietf-netmod-system-config-06.txt
Thread-Index: AQHatppFhBJ/cL5en0Kb7gqXRQiJf7HD3ajw
Date: Mon, 17 Jun 2024 12:20:15 +0000
Message-ID: <621d72aa8e2642f3a03faf0dc77f8b37@huawei.com>
References: <171713917076.38884.14265987687947100337@ietfa.amsl.com> <7107b0599d964fe58f03e780c4a26ee4@huawei.com> <DM6PR11MB2841007856C71565D49E055DCAF82@DM6PR11MB2841.namprd11.prod.outlook.com>
In-Reply-To: <DM6PR11MB2841007856C71565D49E055DCAF82@DM6PR11MB2841.namprd11.prod.outlook.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.136.118.147]
Content-Type: multipart/alternative; boundary="_000_621d72aa8e2642f3a03faf0dc77f8b37huaweicom_"
MIME-Version: 1.0
Message-ID-Hash: 3VUQG4K2V33JMKCOGPJN5OOZDAJV5XYB
X-Message-ID-Hash: 3VUQG4K2V33JMKCOGPJN5OOZDAJV5XYB
X-MailFrom: maqiufang1@huawei.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: I-D Action: draft-ietf-netmod-system-config-06.txt
List-Id: NETMOD WG list <netmod.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/qfoXbacEqTA2WIzQIQhratb9KNM>
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>
Hi, Jan, Thanks a lot for taking the time to review the update! Apologies for being late on this response. The authors have submitted a new version (https://datatracker.ietf.org/doc/html/draft-ietf-netmod-system-config-07) to resolve your comments, please also find my reply below. From: Jan Lindblad (jlindbla) [mailto:jlindbla=40cisco.com@dmarc.ietf.org] Sent: Wednesday, June 5, 2024 12:14 AM To: maqiufang (A) <maqiufang1@huawei.com<mailto:maqiufang1@huawei.com>>; netmod@ietf.org<mailto:netmod@ietf.org> Subject: Re: [netmod] Re: I-D Action: draft-ietf-netmod-system-config-06.txt Qiufang, WG, Thank you for the effort you put into working out all the wrinkles of system config. I read the updated version, and I think it is a significant improvement. As usual, I have some comments, questions and suggestions. đ In order of appearance. #1 Somewhat unclear conceptual model Section 5.1 has a nice drawing of how the datastores relate to each other, and an introductory text that explains the interactions. The following sections explain how data can be copied from system to running, or can be filled in automatically using the resolve-system parameter. But the first sentence of section 5.1 is Clients MAY reference nodes defined in <system>, override system-provided values, and configure descendant nodes of system-defined configuration in <running>. In my mind, this is only true when the client uses the resolve-system parameter. Otherwise, a client cannot reference <system> directly, but needs to copy from <system> to <running>. So maybe the introductory sentences could be reworded? I think this sentence mentioned clients could reference system configuration (i.e., configure some nodes referring to system provided instance), but doesnât specify how that could be achieved to make <running> valid (i.e., explicit declaration vs. using âresolve-systemâ parameter). But to avoid any misunderstanding, how about the following update in sec.5.1? Clients MAY reference nodes defined in <system>, override system-provided values, and configure descendant nodes of system-defined configuration in <running>, as detailed in Section 5.2, Section 5.3, and Section 5.4. Please let me know if you have better suggestions. #2 No way to squelch system config from intended The software on a device decides what config from <system> that show up in <intended> (i.e. is considered âreferencedâ). If the client would like something not to flow through to <intended>, there is no mechanism for that. Letâs say some device always creates a loopback0 interface in <system>. The client can change the loopback0 mtu by configuring it in running, but there is no way to entirely remove loopback0. Maybe a stupid example, but letâs say the client wants the loopback0 to be called lo0 instead. The same situation would arise for anything else in <system>, e.g. some system TPM security credential, system traffic classification rule or whatever else people may throw into <system>. Is this a problem? Is this something that should be mentioned so that people leveraging <system> are aware of this limitation? Just want to make sure that I fully understand this comment, when you say the problem/limitation, are you referring to the fact that system-defined list entry is non-deletable to clients? Because when it comes to updating the list key, RFC7950 already doesnât allow key value to be changed (if I understand it correctly), we can only create or remove the entire list instance. I agree that the client can define a new entry in <running> called lo0, but loopback0 would always be present. Please see if the following update works for you: OLD: Configuration in <system> is non-deletable to clients, even though a client may delete a copied system node from <running>. NEW: Configuration in <system> is non-deletable to clients (e.g., a system-defined list entry can never be removed), even though a client may override or delete a copied system node from <running>. Or please feel free to propose any text;-) #3 Still unclear what needs to be copied In section 5.2 it is explained how a client can copy data from system to running. The introduction in section 1 has some bullets about conditions that require copying to happen. Section 6 was added with some language about leafs with default values that need to be copied. The same need probably also applies to presence containers (which are not mentioned anywhere in -06). All in all, I think the design work around the rules for what needs to be copied is hard to grasp in the current version, and is probably incomplete. Similarly, section 5.3, which deals with what is being copied by resolve-system parameter should probably also refer to the same rules, once established. Please review the update of section 5.2<https://datatracker.ietf.org/doc/html/draft-ietf-netmod-system-config-07#section-5.2> and section 5.3<https://datatracker.ietf.org/doc/html/draft-ietf-netmod-system-config-07#section-5.3>, and let us know if you still think it unclear, or even better, feel free to propose any text. Note that the contents of copy in both sections have been expanded to copy the entire node (e.g., the entire list entry) in -07, in order to not to confuse some clients that if some config wasnât copied because it wasnât set vs. itâs not being necessary in order to pass validation. To copy the entire is also easier for the implementation of the âresolve-systemâ parameter without asking the server to calculate the minimum. #4 Resolve-system without <system> At the end of section 5.3, there is a sentence about what a system should do if it supports resolve-system but not <system>. If a server implements <system>, referenced system configuration is copied from <system> into the target datastore when the "resolve-system" parameter is used; otherwise it is an implementation decision where to copy referenced system configuration. This sentence was a bit confusing to me. After reading it many times, I think an alternative text with similar meaning would be If a server implements <system>, referenced system configuration is copied from <system> into the target datastore when the "resolve-system" parameter is used. If a system does not implement <system>, itâs up to the implementation to determine how the resolve-system mechanism fills in the missing configuration items in the target datastore, e.g. <running>. Updated as suggested. #5 Example missing ns qualifier Section 5.5.1 has a nice example of how resolve-system works. But the example rpc that is using it is missing the namespace qualifier, I think. Isnât this what it should look like? <rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:ncrs="urn:ietf:params:xml:ns:yang:ietf-netconf-resolve-system"> <edit-config> <target> <running/> </target> <config> <acl xmlns="urn:example:acl"> <acl-rule> <name>allow-access-to-ftp-tftp</name> <matches> <ipv4> <src-address>198.51.100.0/24</src-address> <dst-address>192.0.2.0/24</dst-address> </ipv4> <application>ftp</application> <application>tftp</application> <application>my-app-1</application> </matches> <packet-action>forward</packet-action> </acl-rule> </acl> </config> <ncrs:resolve-system/> </edit-config> </rpc> Fixed. Thanks a lot. #6 Old value in example The example in 5.5.3 and 5.5.4 used to change an mtu from 65536 to 65535. Since itâs somewhat hard to spot the difference between those values, you replaced 65535 with 9216. This is great. But I think the old 65535 value is still lurking there twice and should be replaced by 9216. Section 5.5.4 starts with the following sentence. In the above example, image the client further configures the description node of a "lo0" interface in <running> as follows: Perhaps âimageâ should be âimagineâ? And maybe it should be mentioned that the client is doing a merge, not a replace? How about this? In the above example, imagine the client further configuring the description node of the "lo0" interface in <running> using a merge operation as follows: All fixed, thanks for pointing this out. #7 Implied semantics Section 7.1 describes how the factory-default datastore is meant to be used. It is implied that the system datastore is not meant to be used in this situation, but it is never mentioned. Perhaps it would be worth mentioning that system is not to be used in this way? Okay, section 7.1 adds the following: Deletable system configuration must not be defined in <system>. Good for you? #8 Confusing ietf-system-datastore example The entire section 8 is devoted to describing the tiny ietf-system-datastore module. There is an example there, but I have to admit I donât understand what it is trying to show. And there must be something wrong with the last config snippet that shows the contents of <system> after the messages? Or maybe there is more going on here, that I never understood? Sorry for being unclear, I agree that section 8.2 doesnât really exemplify the data retrieval from <system>, the example has been updated to additionally provide a NETCONF <get-data> RPC operation towards <system>. Would this be better for you? #9 Expand appendix A Appendix A with its example showing many steps is very nice. But there it doesnât show any of the more complex situations, e.g. when there are defaults, mandatory leafs, when statements or presence containers involved. Maybe the example could be extended? The updated examples both in sec.5.5 and appendix A have incorporated some cases like defaults, mandatory, when statement and presence containers, please let us know if something else is needed. Thanks a lot. Best Regards, /jan Thanks again for your valuable comments. Best Regards, Qiufang From: maqiufang (A) <maqiufang1=40huawei.com@dmarc.ietf.org<mailto:maqiufang1=40huawei.com@dmarc.ietf.org>> Date: Friday, 31 May 2024 at 10:54 To: netmod@ietf.org<mailto:netmod@ietf.org> <netmod@ietf.org<mailto:netmod@ietf.org>> Subject: [netmod] Re: I-D Action: draft-ietf-netmod-system-config-06.txt Hi, all -06 tries to address comments received during WGLC, thanks a lot to Jan, Rob and Jason for your valuable inputs. Major updates are following: 1. remove the definition of inactive-until-referenced system config, -06 only defines two kinds of system config now: immediately-present vs. conditionally-present; 2. add a new section (see sec.6) to clarify the interplay between system config and defaults; 3. add a new section (see sec.7) to clarify relation to other datastores, which includes <factory-default> and <candidate>/<private-candidate>; 4. leave the merge behavior of <system> and <running> unspecified, as we think this is not specific to this document; 5. update figure 1 (architectural model of datastores) to make the arrows of <system> and <running> merge at a common point flowing into <intended>; 6. augment <validate> and <commit> PRC operation to also support "resolve-system" parameter; 7. remove the implementation specifics related to "resolve-system" parameter; 8. other editorial fix as suggested by Jan and Rob; There is one issue highlighted during WGLC, which will be posted in a separate thread for further discussion. The authors would like to request the WG to review the update and provide your feedback, any comments and suggestions would be much appreciated. Thanks! Best Regards, Qiufang //co-author -----Original Message----- From: internet-drafts@ietf.org<mailto:internet-drafts@ietf.org> [mailto:internet-drafts@ietf.org] Sent: Friday, May 31, 2024 3:06 PM To: i-d-announce@ietf.org<mailto:i-d-announce@ietf.org> Cc: netmod@ietf.org<mailto:netmod@ietf.org> Subject: [netmod] I-D Action: draft-ietf-netmod-system-config-06.txt Internet-Draft draft-ietf-netmod-system-config-06.txt is now available. It is a work item of the Network Modeling (NETMOD) WG of the IETF. Title: System-defined Configuration Authors: Qiufang Ma Qin Wu Chong Feng Name: draft-ietf-netmod-system-config-06.txt Pages: 39 Dates: 2024-05-31 Abstract: This document defines how a management client and server handle YANG- modeled configuration data that is instantiated by the server itself. The system-defined configuration can be referenced (e.g., leafref) by configuration explicitly created by a client. The Network Management Datastore Architecture (NMDA) defined in RFC 8342 is updated with a read-only conventional configuration datastore called "system" to expose system-defined configuration. This document updates RFC 8342, RFC 6241, RFC 8526 and RFC 8040. The IETF datatracker status page for this Internet-Draft is: https://datatracker.ietf.org/doc/draft-ietf-netmod-system-config/ There is also an HTMLized version available at: https://datatracker.ietf.org/doc/html/draft-ietf-netmod-system-config-06 A diff from the previous version is available at: https://author-tools.ietf.org/iddiff?url2=draft-ietf-netmod-system-config-06 Internet-Drafts are also available by rsync at: rsync.ietf.org::internet-drafts _______________________________________________ netmod mailing list -- netmod@ietf.org<mailto:netmod@ietf.org> To unsubscribe send an email to netmod-leave@ietf.org<mailto:netmod-leave@ietf.org> _______________________________________________ netmod mailing list -- netmod@ietf.org<mailto:netmod@ietf.org> To unsubscribe send an email to netmod-leave@ietf.org<mailto:netmod-leave@ietf.org>
- [netmod] I-D Action: draft-ietf-netmod-system-con⌠internet-drafts
- [netmod] Re: I-D Action: draft-ietf-netmod-system⌠maqiufang (A)
- [netmod] Re: I-D Action: draft-ietf-netmod-system⌠Jan Lindblad (jlindbla)
- [netmod] Re: I-D Action: draft-ietf-netmod-system⌠maqiufang (A)