Re: [Netconf] Ben Campbell's Discuss on draft-ietf-netconf-yang-patch-12: (with DISCUSS and COMMENT)

Andy Bierman <andy@yumaworks.com> Tue, 08 November 2016 03:00 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 41B2112948F for <netconf@ietfa.amsl.com>; Mon, 7 Nov 2016 19:00:07 -0800 (PST)
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=unavailable 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 W0y1vAhnAYYw for <netconf@ietfa.amsl.com>; Mon, 7 Nov 2016 19:00:06 -0800 (PST)
Received: from mail-vk0-x236.google.com (mail-vk0-x236.google.com [IPv6:2607:f8b0:400c:c05::236]) (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 8213512943E for <netconf@ietf.org>; Mon, 7 Nov 2016 19:00:04 -0800 (PST)
Received: by mail-vk0-x236.google.com with SMTP id 137so90545420vkl.0 for <netconf@ietf.org>; Mon, 07 Nov 2016 19:00:04 -0800 (PST)
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=GHq05FU5oa9uAjfK47c4aHqX0KCsWugSecVsc2EDTFo=; b=FAiF+XqcLuFoPqhv+NWg4GcWD2gwfAoLIWgYmQKpEMfR4y9d+Xk48PqfthoYOQIpmp VzrdCoGNB0KHhUW0PQO0Ka329MHdzLzzQ6SL2C1JnP71izs+OHSBz3czuKI+io1dY0yg O+R/zOg2tC5Mp9XwjM9M99tpiiqmchjg8aR+h0Hu60n2TELxyi1r8qhea2c4oYF2GAED gWAYky6/otEU7ihafWr8XazC0MO2QBTyMPSXQn0H/7ItAeOVHxsqnx4BF3mhSGszoMSs iQx3AzJQaH9E8bqCtXL/AwdNLRkfFyvBL+F5y/oNlMiJnNyElotInGHWHVyH5kbZxT4l ArEw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GHq05FU5oa9uAjfK47c4aHqX0KCsWugSecVsc2EDTFo=; b=XiNOYFKuiJu6kG/uvi5RE/UDknQkYV8mWtegNqIelP9oXz2WBGArDi2d9Zl/RKP961 8EAu6YVKjt7npP8+WD0tC/utHo+MQKEwA9ajmh0Rx7wTFiX9qTdXVoFPq+RKqAEb5I0t FN1bezJ7nwYyUx3FMc/aWpn/GMmhUxaLOS0svWjZZNvVqihGNkHy0zcYGuPWB1JCjHgm QzaqPgw4OUhohmOGWmR6Q2E917EioEGLsTNs/TBWuwQSO61OG1JRfJ6L5wumlJJ8PyUj lbo9slzznPg2qPTkHgHvL1N8yWx6AWBtx/9oGKYp6Ntj7b+AAGAxWokEoO9d/BA5HFdd Qwlg==
X-Gm-Message-State: ABUngvc6rrv1HBEOIfsytkOy7QWCQmJ5Ioo9qVt3/LkTaSTjZ4x/GsXpoN+yIjEXHaGMrvJvm1p0tEb/9wQX2w==
X-Received: by 10.31.207.199 with SMTP id f190mr5838425vkg.32.1478574003629; Mon, 07 Nov 2016 19:00:03 -0800 (PST)
MIME-Version: 1.0
Received: by 10.103.64.129 with HTTP; Mon, 7 Nov 2016 19:00:02 -0800 (PST)
In-Reply-To: <E8CBCEFA-CAFF-495D-8EFD-CCD78146FCB6@nostrum.com>
References: <147811411292.24074.12025641825295888355.idtracker@ietfa.amsl.com> <CABCOCHQpyAe70wRt6Y8SXiq_cdDEyDP-kD=cLmcykaSuLFhTvA@mail.gmail.com> <b0d0ddc2-e0fc-0df5-f71e-ac4fe736c637@cisco.com> <CABCOCHQSA9MF0u2jDkV9TkgOTDmhhHL2QjQw9=EUwjFdgMSm6w@mail.gmail.com> <04E5447B-2ABD-42B4-A484-A24E823725FC@gmail.com> <97eb8ed3-b6c4-a5fa-8bbf-d155abc2a1d0@cisco.com> <E8CBCEFA-CAFF-495D-8EFD-CCD78146FCB6@nostrum.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 07 Nov 2016 19:00:02 -0800
Message-ID: <CABCOCHThE8vm3EAh+9VYc_gbxeUyzuZJ61mg_ogjx-e0xFrcOA@mail.gmail.com>
To: Ben Campbell <ben@nostrum.com>
Content-Type: multipart/alternative; boundary="001a114f1de842c2a70540c15666"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/PA7iNuY05KEEQfwXhF3y0g85_2o>
Cc: netconf-chairs@ietf.org, The IESG <iesg@ietf.org>, draft-ietf-netconf-yang-patch@ietf.org, Netconf <netconf@ietf.org>
Subject: Re: [Netconf] Ben Campbell's Discuss on draft-ietf-netconf-yang-patch-12: (with DISCUSS and COMMENT)
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.17
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: Tue, 08 Nov 2016 03:00:07 -0000

On Mon, Nov 7, 2016 at 6:37 PM, Ben Campbell <ben@nostrum.com> wrote:

> On 5 Nov 2016, at 3:07, Benoit Claise wrote:
>
> [...]
>
> This text is worded badly.  I really meant "incremental", not "partial".
>>
>>> The individual edits are conceptual.  The server is supposed to validate
>>>> the datastore on the whole set, not each one.  The intent of the
>>>> sentence
>>>> was to apply all edits after validation.  e.g.
>>>>
>>>> edit-list:
>>>>   1: create /foo value=42
>>>>   2: delete /foo
>>>>   3: create /foo value=43
>>>>
>>>> (Although bad practice, allowed by YANG Patch)
>>>>
>>>> If these were real objects, like interfaces, then the system and
>>>> possibly
>>>> network could be impacted if the edits were applied 1 at a time.
>>>> Think of the edit list like a candidate datastore and the <commit>
>>>> operation.
>>>>
>>>> Maybe this sentence should just be deleted, since these are
>>>> implementation details.
>>>>
>>>
>> Either deleted, or expanded. Your corrected sentence, along with the
>> explanation, clarified it, and makes a lot of sense.
>> Let's hear from Ben.
>>
>
> I'm okay with either. I think I personally would prefer the expanded
> explanation--but I gather the point is that this is up to RESTCONF to
> explain, and hopefully RESCONF already does that.
>
>
I will add some text to YANG Patch to clarify the issue.


> I would find it unfortunate if the write yang-patch semantics varied
> materially based on the protocol that carries it; but I am fine leaving
> that to other specifications that talk about how to do yang-patch over
> whatever non-RESTCONF protocol.
>
>
The use-case I have already implemented is CoAP
https://tools.ietf.org/html/draft-ietf-core-etch-03

The CoAP PATCH and iPATCH methods are atomic, like HTTP.




>
>
>> Regards, B.
>>
>>
>>> I am fine with removing the sentence not because it is implementation
>>> detail, but because you have already clarified in Section 5 that all
>>> patches must be validated before they are applied, and that they should not
>>> be applied if one of them fails.
>>>
>>> Ben, does this deletion combined with new text around atomic behavior
>>> for other protocols address your concerns?
>>>
>>
> Yes.
>
> Thanks!
>
> Ben.
>
>

Andy



> [...]
>