Re: [Netconf] [Technical Errata Reported] RFC8072 (5131)

Andy Bierman <andy@yumaworks.com> Wed, 11 October 2017 16:14 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 13F7F13334E for <netconf@ietfa.amsl.com>; Wed, 11 Oct 2017 09:14:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.com
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 wjkn4lgtDlzf for <netconf@ietfa.amsl.com>; Wed, 11 Oct 2017 09:14:56 -0700 (PDT)
Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7397713202D for <netconf@ietf.org>; Wed, 11 Oct 2017 09:14:55 -0700 (PDT)
Received: by mail-lf0-x22b.google.com with SMTP id 75so2689438lfx.1 for <netconf@ietf.org>; Wed, 11 Oct 2017 09:14:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2Bj/5PKMMixKZ09ZT2PWutEEIQJdllmWj8kACqRTuKI=; b=1syk3BehN7DduYTg1rSLu7n5W+ojJ89PtjL3Lp0chl97nGKzh4nT3ps78okBMVU8Bf puOFF/2rPrHNup81dmU3JYqNooCFrPfESLQVrBHhhAIm8csgdBXGcda6S5Tr7dVy8Ocr U+AzAnPdbf3oz6lW0DFHF7fhzGxCfShDzyhzlynDJMz+45wIFubzFIBK/xS04maa8BTg MpimF/MYzA1qUUMAiA9TsuIjHU8WRnvrgQw0NbPIDiCGaS8DFvMY0SzTt1iSDHODYiQn m42EjC1N6GkMZfghGD7qc5smoRWKSFwJrGgIuA/b7HqToSkwhAQpLcwp/hgnmkN0dis6 RZ9w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2Bj/5PKMMixKZ09ZT2PWutEEIQJdllmWj8kACqRTuKI=; b=ruELDly/4D25uSbpW77e5Nb2GdSWj6eD6G0VxzJqL9Rt/RsPz3y/PxO26NKwKBDJHB 7cM8qi0G4Ek+z7VkXgZHGtLqUcjEF18wCxTe93VubglEb1r3nDZ9A+k077CruRYoFFf1 sg5p6Idi6EWJzbWl5Y8wsp+nDPsfyWZLHqLJ4yVjABuiDsZGbftmbwBGgrce1lqeZdWs HWHz74YGPse/NotCqLWhUrRzuFY5MpXiydtGHCm7hYb5GlgBUZhPYBIESzezx1wehukz ojDxBy1yfkPwmERnvn5BT4ht+V2+wAqtC02TwbIhLMIsor5UjDoE2OwRx3WKQeJntnoM /LOw==
X-Gm-Message-State: AMCzsaW+sHZHXio0vSKRxqBila4uYoMKEakuCyT4yVsZ4f1t//qCVKf0 OIPleOD4ZZPJ5NGZAQexW8/nLp8Ehk2Ej0uxgSnewg==
X-Google-Smtp-Source: AOwi7QBJZ0kvx/+UBAXXYIbYasYM6aun4sO31KOFQbzf32vb1rINlsW3CcAFxTv32ISlfItbqyn4ciIUWcBv3jpCzjc=
X-Received: by 10.46.101.4 with SMTP id z4mr68553ljb.42.1507738493720; Wed, 11 Oct 2017 09:14:53 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.150.198 with HTTP; Wed, 11 Oct 2017 09:14:52 -0700 (PDT)
In-Reply-To: <c5cd4554-34f5-31a3-e16c-8c858b5e1616@cisco.com>
References: <20170928105016.B2A88B81896@rfc-editor.org> <b6c0cf18-eba4-f4e0-4802-bfe524095b57@cisco.com> <F149BE7A-07C8-42CE-92AF-4355E6B409E0@juniper.net> <c5cd4554-34f5-31a3-e16c-8c858b5e1616@cisco.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 11 Oct 2017 09:14:52 -0700
Message-ID: <CABCOCHT8CKq=_9KGvS-5o7bnpZ0iZvccic3BENV6r60fxQrc5g@mail.gmail.com>
To: Robert Wilton <rwilton@cisco.com>
Cc: Kent Watsen <kwatsen@juniper.net>, Benoit Claise <bclaise@cisco.com>, "mbj@tail-f.com" <mbj@tail-f.com>, "warren@kumari.net" <warren@kumari.net>, "mjethanandani@gmail.com" <mjethanandani@gmail.com>, "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="001a114d31ea553272055b47b97c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/5nk2N6QpSxdsORZyhRUiMJKyd90>
Subject: Re: [Netconf] [Technical Errata Reported] RFC8072 (5131)
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Network Configuration WG mailing 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: Wed, 11 Oct 2017 16:14:58 -0000

On Wed, Oct 11, 2017 at 9:09 AM, Robert Wilton <rwilton@cisco.com> wrote:

> Hi Kent,
>
> But the previous paragraph in the draft states:
>
>    The "merge", "replace", "create", "delete", and "remove" edit
>    operations have exactly the same meanings as those defined for the
>    "operation" attribute described in Section 7.2 of [RFC6241] <https://tools.ietf.org/html/rfc6241#section-7.2>.
>
>
>
> That NETCONF section allows "merge" and "replace" on nodes that don't
> exist (they are just created).  Also a "remove" on a data node that doesn't
> exist doesn't return any error.  It is just a silent no-op.
>
> So, it seems that the YANG Patch semantics are not the same as for
> NETCONF, which seems to conflict with the previous paragraph quoted above.
>

YANG Patch returns an error for delete on a missing target resource  and
none of the
the other operations listed in that paragraph.  They do behave the same.


> Thanks,
> Rob
>

Andy


>
>
> On 11/10/2017 16:36, Kent Watsen wrote:
>
> I think the existing text is correct.  If the resource instance doesn't exist, it can only be created.  If it doesn't exist, then it cannot be merged, replaced, deleted, or removed.
>
> Kent (co-author)
>
> --
>
> Dear YANG Patch Media Type authors,
>
> What do you think of this proposed errata?
>
> Regards, B.
>
> The following errata report has been submitted for RFC8072,
> "YANG Patch Media Type".
>
> --------------------------------------
> You may review the report below and at:https://urldefense.proofpoint.com/v2/url?u=http-3A__www.rfc-2Deditor.org_errata_eid5131&d=DwICaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=KLQjPIYskU70WRcZ0nCQYZ4njobUB-tkMpQKKEBb8eE&s=5HhVTU7yZdrq0Ztpkqoqb2_yUmZJ9pk7jGCpEDJSLr0&e=
>
> --------------------------------------
> Type: Technical
> Reported by: Robert Wilton <rwilton@cisco.com> <rwilton@cisco.com>
>
> Section: 2.2
>
> Original Text
> -------------
> Regarding section 2.2 of RFC 8072, the third paragraph states:
>
>
>                                         ... If the edit does not identify
>      any existing resource instance and the operation for the edit is not
>      "create", then the request MUST NOT be processed and a "404 Not
>      Found" error response MUST be sent by the server.
>
> Corrected Text
> --------------
>                                        ... If the edit does not identify
>     any existing resource instance and the operation for the edit is
>     "delete" or "move" then the request MUST NOT be processed and a
>     "404 Not Found" error response MUST be sent by the server.
>
> Notes
> -----
> As per the second paragraph of section 2.2 of RFC 8072, the operations are expected to mirror the semantics of the "operation" attribute described in Section 7.2 of [RFC6241].
>
> The spec also doesn't specify what happens if it is a "create" operation and the resource already exists.  It should probably also state that "400 Bad Request" is returned.
>
> 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.
>
> --------------------------------------
> RFC8072 (draft-ietf-netconf-yang-patch-14)
> --------------------------------------
> Title               : YANG Patch Media Type
> Publication Date    : February 2017
> Author(s)           : A. Bierman, M. Bjorklund, K. Watsen
> Category            : PROPOSED STANDARD
> Source              : Network Configuration
> Area                : Operations and Management
> Stream              : IETF
> Verifying Party     : IESG
> .
>
>
>
>