Re: [netconf] [Technical Errata Reported] RFC6243 (7426)

Andy Bierman <andy@yumaworks.com> Tue, 18 April 2023 17:42 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A2298C17B338 for <netconf@ietfa.amsl.com>; Tue, 18 Apr 2023 10:42:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.094
X-Spam-Level:
X-Spam-Status: No, score=-2.094 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_BLOCKED=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 lMfoobwrdMK4 for <netconf@ietfa.amsl.com>; Tue, 18 Apr 2023 10:42:44 -0700 (PDT)
Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (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 BDCD3C137370 for <netconf@ietf.org>; Tue, 18 Apr 2023 10:42:44 -0700 (PDT)
Received: by mail-lj1-x231.google.com with SMTP id a10so14625496ljr.5 for <netconf@ietf.org>; Tue, 18 Apr 2023 10:42:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1681839762; x=1684431762; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1e7znAhkg/6xZzbTEpcSvwMU7vBlb1MHd5X8ntBdkWg=; b=RKBeWzKQ+mOChmJIvjkHfqSXdZDL5FcYfx1QONMyP3hnXG5HRicQ2Mxjl4z3JUPKdX joz88aW84JZGbL6h2cUxtN6R0l1e6jC1zViDXWBOK58hcKPbhobgkD61Hoa75JIom5gt SMoKYvsA7t24RcUPt9dje+CFWMkQZQGRURzgB7BqExwD6MHoL0RsSma6/70SEVTIWSBO +F5bCs2t6PUvBP6S0IkZOxgx7ZiOjR/V8b6ObcgJF9ljGQaTyXvtcoozqz4p/oxhbuyP NZPOCy1ZEVwahmrCktBYlnPM2TFiPdYE53nE+JPsuYeLN9GabBaze8JW5ayF58CHauVn emcw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681839762; x=1684431762; 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=1e7znAhkg/6xZzbTEpcSvwMU7vBlb1MHd5X8ntBdkWg=; b=YMZ6zTyFIWg/YG2/ALra0SVI8pqTn/yiyMQDDM7/9L0r3TDArWGs2C3v/n4kJX3Ahc /m6rJI7IzD0xq1bVaJ+4lU0C7DUbeOiiwc5OYyGIjSlQPtonw+X59TCGTyWcKY3GvKJG F521pB8IDON1e3F7a2LAxE1GHzhC5gqPe//mo2OkC/IPOGykCShDKUX8sbuwOpCjPm2f SwWNB0TOntn3hsrr991sLfvsZTGmT6kh9lGmwPTyljdXWGR71c9DA/c+CRtDFkBcCjgA pZ2aRJ3xE7qHlKJZwMD4TjupNpvpKJQXAtb5IZgBENU3JDpFRXfcvqRLa6rzpVvVf8Aa hSgA==
X-Gm-Message-State: AAQBX9do/hrpW6C9Gu7YVki1DBw3Q0K6wcYe9BkmX8b5fI2DlksQBJCh XPAlfBd28pm1qXVIsmUP1PjflY6LPT4JAZmTaeBiNA==
X-Google-Smtp-Source: AKy350YJSuMyJESZmT0zBwVgfTONpkRVs/eRYlmXuhpecmvm4t5fjUR03OZ1ha4MgwlceKSaOrUxLejmvcnHa1EO904=
X-Received: by 2002:a2e:904c:0:b0:2a8:ddb0:baa6 with SMTP id n12-20020a2e904c000000b002a8ddb0baa6mr878365ljg.4.1681839762443; Tue, 18 Apr 2023 10:42:42 -0700 (PDT)
MIME-Version: 1.0
References: <20230418123549.303B655E92@rfcpa.amsl.com> <CABCOCHRQg8RVVYkKJeWx-1pf4XLN2iZ7WAk9OhHUS51tOPK7mA@mail.gmail.com> <BY5PR11MB41961C166717EB86359349B0B59D9@BY5PR11MB4196.namprd11.prod.outlook.com>
In-Reply-To: <BY5PR11MB41961C166717EB86359349B0B59D9@BY5PR11MB4196.namprd11.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 18 Apr 2023 10:42:31 -0700
Message-ID: <CABCOCHRvVLBaWUqZ88O5iPsfc9bXYOO7tT2Yh0=8ySiPYdZ2Ww@mail.gmail.com>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>
Cc: RFC Errata System <rfc-editor@rfc-editor.org>, "balazs.lengyel@ericsson.com" <balazs.lengyel@ericsson.com>, "warren@kumari.net" <warren@kumari.net>, "mjethanandani@gmail.com" <mjethanandani@gmail.com>, "kent+ietf@watsen.net" <kent+ietf@watsen.net>, "dylan.sadoun@orange.com" <dylan.sadoun@orange.com>, "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000009c291505f99fd543"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/iLUd2KObJL70z6Lwt9aUQMfbw0s>
Subject: Re: [netconf] [Technical Errata Reported] RFC6243 (7426)
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Apr 2023 17:42:49 -0000

On Tue, Apr 18, 2023 at 9:55 AM Rob Wilton (rwilton) <rwilton@cisco.com>
wrote:

> Hi Andy, Dylan,
>
>
>
> I don’t think that the proposed text is quite right, but there might be
> something worth clarifying here.
>
>
>
> I.e., I believe that I understand what section 2.3.1 is meaning, but it
> doesn’t define what to do for default values that haven’t been explicit set
> by the client.  I.e., arguably, it looks servers are free to choose whether
> to include or not include data nodes with a default value that haven’t been
> set by the client (which I don’t think is the intent).  Note, the logically
> equivalent section in 3.3 is more explicit that they MUST NOT be reported:
>
>
>
> <quote>
>
> *3.3 <https://www.rfc-editor.org/rfc/rfc6243#section-3.3>.  'explicit'
> Retrieval Mode*
>
>
>
>    When data is retrieved with a <with-defaults> parameter equal to
>
>    'explicit', a data node that was set by a client to its schema
>
>    default value MUST be reported.  A conceptual data node that would be
>
>    set by the server to the schema default value MUST NOT be reported.
>
>    Non-configuration data nodes containing the schema default value MUST
>
>    be reported.
>
> <end quote>
>
>
>
> Hence, I’m wondering whether section 2.3.1 should take this sentence from
> section 3.3:  “A conceptual data node that would be
>
>    set by the server to the schema default value MUST NOT be reported.”, i.e.,
> actually read something like:
>
>
>
> <proposed>
>
> *2.3.1 <https://www.rfc-editor.org/rfc/rfc6243#section-2.3.1>.  'explicit' Basic Mode Retrieval*
>
>
>
>    When data is retrieved from a server using the 'explicit' basic mode,
>
>    and the <with-defaults> parameter is not present, data nodes MUST be
>
>    reported if explicitly set by the client, even if they contain the
>
>    schema default value.  A conceptual data node that would be set by
>
>    the server to the schema default value MUST NOT be reported.
>
>    Non-configuration data nodes containing the schema default value MUST
>
>    be reported.
>
> <end proposed>
>
>
>
> Dylan, is this what you were trying to clarify?  Andy, does this change
> your opinion?
>
>
>


Your change to 2.3.1 is consistent with WG intent, so no objection.



> Thanks,
>
> Rob
>

Andy


>
>
>
>
>
>
> *From:* Andy Bierman <andy@yumaworks.com>
> *Sent:* 18 April 2023 17:18
> *To:* RFC Errata System <rfc-editor@rfc-editor.org>
> *Cc:* balazs.lengyel@ericsson.com; warren@kumari.net; Rob Wilton
> (rwilton) <rwilton@cisco.com>; mjethanandani@gmail.com;
> kent+ietf@watsen.net; dylan.sadoun@orange.com; netconf@ietf.org
> *Subject:* Re: [Technical Errata Reported] RFC6243 (7426)
>
>
>
> Hi,
>
>
>
> This Errata should be rejected.
>
> The intent in section 2.3.1 is that all explicitly set data is returned.
>
> The proposed new text does not reflect this intent.
>
>
>
> There is a subtle difference between a server using the YANG default value
> because no instance exists
>
> and a server creating an instance that equals the YANG default value.  The
> server implementation
>
> needs to distinguish between them. The "create" and "delete" edit
> operations are impacted by this distinction.
>
>
>
>
>
> Andy
>
>
>
>
>
> On Tue, Apr 18, 2023 at 5:35 AM RFC Errata System <
> rfc-editor@rfc-editor.org> wrote:
>
> The following errata report has been submitted for RFC6243,
> "With-defaults Capability for NETCONF".
>
> --------------------------------------
> You may review the report below and at:
> https://www.rfc-editor.org/errata/eid7426
>
> --------------------------------------
> Type: Technical
> Reported by: Dylan Sadoun <dylan.sadoun@orange.com>
>
> Section: 2.3.1
>
> Original Text
> -------------
> When data is retrieved from a server using the 'explicit' basic mode, and
> the <with-defaults> parameter is not present, data nodes MUST be reported
> if explicitly set by the client, even if they contain the schema default
> value. Non-configuration data nodes containing the schema default value
> MUST be reported.
>
> Corrected Text
> --------------
> When data is retrieved from a server using the 'explicit' basic mode, and
> the <with-defaults> parameter is not present, data nodes MUST be reported
> if explicitly set. This means that data nodes containing the schema default
> value MUST be reported if set by a NETCONF client, but MUST NOT be reported
> if set by the NETCONF server. Data nodes set by the NETCONF server to
> values other than their schema default values MUST be reported.
> Non-configuration data nodes containing the schema default value MUST be
> reported.
>
> Notes
> -----
> The RFC defines "Explicitly set data" for the sole purpose of defining the
> explicit retrieval mode. This definition is clear about when data set by
> the server should be considered "explicitly set" i.e. when not set to the
> schema default value. However, the 2.3.1 and 3.3 sections are ambiguous and
> prone to misunderstanding, as they only emphasise the "set by the client"
> case, which leads to think that data set by the server to a value different
> from its schema default value should not be reported.
> This erratum is for the 2.3.1 section.
>
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please
> use "Reply All" to discuss whether it should be verified or
> rejected. When a decision is reached, the verifying party
> can log in to change the status and edit the report, if necessary.
>
> --------------------------------------
> RFC6243 (draft-ietf-netconf-with-defaults-14)
> --------------------------------------
> Title               : With-defaults Capability for NETCONF
> Publication Date    : June 2011
> Author(s)           : A. Bierman, B. Lengyel
> Category            : PROPOSED STANDARD
> Source              : Network Configuration
> Area                : Operations and Management
> Stream              : IETF
> Verifying Party     : IESG
>
>