Re: [Netconf] I-D Action: draft-ietf-netconf-yang-patch-11.txt

Andy Bierman <andy@yumaworks.com> Wed, 21 September 2016 17:06 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 44A2612B997 for <netconf@ietfa.amsl.com>; Wed, 21 Sep 2016 10:06:52 -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 mWOtGA1rfjEX for <netconf@ietfa.amsl.com>; Wed, 21 Sep 2016 10:06:49 -0700 (PDT)
Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 2DA2B12B98D for <netconf@ietf.org>; Wed, 21 Sep 2016 10:06:49 -0700 (PDT)
Received: by mail-wm0-x22a.google.com with SMTP id l132so279944388wmf.0 for <netconf@ietf.org>; Wed, 21 Sep 2016 10:06:49 -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=8S9vpYTCCcqSbj+duduqUDV3hpJL46xldb3FBTdCwQE=; b=LIFqG3K6SvYmERS5lO2ZO5diyatRJL69x2Q5X0s9nNISdxEhKnv1EzQQY69EfW49mw HH/WTqGot1TR3I1pDwtgEvRC7vqKzNvocQ0AJXlRQmdgqLjSjBXcLyTJBirpW4eKErgA urnL47BPznL/RwHZp8DSPmIHQQattVmxtRS7wGTgy3mOKpbM4N74aXUYggbFJNvQJ+ag MY5lOT+fu/oga35YydyXZJr0JZQaELTtCJXBvwYmP1LafjVCjuzMrtETz16tIh1ummQ4 50Vlie49c+P6lEdgqK9SeWXV2+yZ2MmNaPFqQeqyGBGsIgqkPKJcghBbdBY4hWOjEu/q YnEg==
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=8S9vpYTCCcqSbj+duduqUDV3hpJL46xldb3FBTdCwQE=; b=jRtHKuLpaDyB5feuFj4FIWi6Umeofx6ol7o+j4u0WBYbiIq0l1wiWPF1Sn6uHH+dc5 M/ydWIfLibEjMwt0GLLc853p+abXJQUWKDOxFzBBElncolh5jK6huzGFdxiEUmFIFxhf Ou+V1k1oh7a8ruIEGyULZ3SEP8sT/SYy3GzGE1Isk1JbIcHd6kvpkPNV/J6UEi4ijRw+ KEKqb9+kvf9cBYiuZukrXONFSjPjDrnYcuUCWIYCSshOtYxA4mZpv3hkRwQBKcH5tjMx QapUSAqJDq9CBUTRQs3tETkZXvo6s5uCpgN+og0KQVAP0CsU7/Q0E3komMzAdWt+SKQV rWTA==
X-Gm-Message-State: AE9vXwOpIprhYSaN5e1/d3QegC/Zdrfs0Dc6H2Ey3ct38Vif4qZPVmhlb9nh10d5DAdNflF4p+YB5w65Qk6SBg==
X-Received: by 10.28.175.147 with SMTP id y141mr4103229wme.9.1474477607550; Wed, 21 Sep 2016 10:06:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.80.141.78 with HTTP; Wed, 21 Sep 2016 10:06:46 -0700 (PDT)
In-Reply-To: <bef9cf96-e77b-9e5c-6e66-7f036648a5b9@cisco.com>
References: <147128640777.31546.5965034967964862585.idtracker@ietfa.amsl.com> <bef9cf96-e77b-9e5c-6e66-7f036648a5b9@cisco.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 21 Sep 2016 10:06:46 -0700
Message-ID: <CABCOCHQ5S_CSeFnaSrxGonupp1skxDjZp-=+Exwqhg19P=6x2Q@mail.gmail.com>
To: Benoit Claise <bclaise@cisco.com>
Content-Type: multipart/alternative; boundary="001a11443f0a074e5d053d079257"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/5bYTCp3nHoTYNuObRMt7fZlF3fU>
Cc: "draft-ietf-netconf-yang-patch@ietf.org" <draft-ietf-netconf-yang-patch@ietf.org>, Netconf <netconf@ietf.org>
Subject: Re: [Netconf] I-D Action: draft-ietf-netconf-yang-patch-11.txt
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: Wed, 21 Sep 2016 17:06:52 -0000

On Wed, Sep 21, 2016 at 9:53 AM, Benoit Claise <bclaise@cisco.com> wrote:

> Dear authors,
>
> Even if I saw "all these issues addressed in github version" (at
> https://github.com/netconf-wg/yang-patch/issues/10), I've been checking
> whether all my "AD review: draft-ietf-netconf-yang-patch-10" feedback has
> been taken into account.
>
> - I see the new definition:
>
> YANG Patch template: this is similar to a YANG data template,
>       except it has a representation with the media type "application/
>       yang-patch-xml" or "application/yang-patch+json".
>
>
> YANG data template is defined in [I-D.ietf-netconf-restconf
> <https://tools.ietf.org/html/draft-ietf-netconf-yang-patch-11#ref-I-D.ietf-netconf-restconf>]
> according to section 1.1.4
> However, I don't find this term in the RESTCONF draft.
>
>
YANG data template is defined in RESTCONF.
YANG Patch template is defined in YANG Patch.
RESTCONF never uses the term YANG Patch template.
Why is this a problem?


- I'm not sure how these two pieces of feedback have been resolved:
>
> Btw, I guess that nothing prevents a RESTCONF server to support
> simultaneously the plain PATCH ( https://tools.ietf.org/html/
> draft-ietf-netconf-restconf-14#section-4.6) and the PATCH in this
> document? However, doing so, would provide a useless audit log, since the
> plain PATCH doesn't have a patch-id
>
>       leaf patch-id {
>            type string;
>            description
>              "An arbitrary string provided by the client to identify
>               the entire patch.  This value SHOULD be present in any
>               audit logging records generated by the server for the
>               patch. Error messages returned by the server pertaining
>               to this patch will be identified by this patch-id value.";
>          }
>
> Worth writing some text about it?
>
>

There is no standard audit log so to say the audit log cannot differentiate
between a plain and YANG PATCH is pure speculation about an
implementation.



>
> leaf comment {
>            type string;
>            description
>              "An arbitrary string provided by the client to describe
>               the entire patch.  This value SHOULD be present in any
>               audit logging records generated by the server for the
>               patch.";
>
>
> I don't understand why it's not a MUST. Is this because this field is
> optional?
> So if it's not in the audit logging, we don't know if it's because the
> field is empty, or because someone decided not to include it.
> Do you want to say: If populated, this value MUST be present in any audit
> logging records generated by the server for the patch.
>
>


There is no standard audit log.
A server implementation MAY toss the comments since they do not
impact the operation.

If the IETF wants to standardize audit logging then that
should be properly, and not place MUST requirements
to support undefined mechanisms.

Why should this draft mandate the structure of proprietary
audit logging solutions?  SHOULD seems more appropriate.
If there was a standard logging mechanism that had a <comment> field,
then it would be OK to say "implementations of the ietf-audit-log module
MUST populate the <comment> field with the contents of this field".




> - And I see this diff between version 8 and 9.
>
>
>
> Surprised that, if there is any error, it's not a MUST to return the "yang-patch-status" message?
> Maybe I missed the discussion on the mailing list. Feel free to let me know.
>
>

In our implementation there are errors handled before the "YANG Patch code"
ever sees
the internal representation of the message. e.g, "405 Method Not Allowed".

Regards, Benoit
>
>

Andy


> A New Internet-Draft is available from the on-line Internet-Drafts directories.
> This draft is a work item of the Network Configuration of the IETF.
>
>         Title           : YANG Patch Media Type
>         Authors         : Andy Bierman
>                           Martin Bjorklund
>                           Kent Watsen
> 	Filename        : draft-ietf-netconf-yang-patch-11.txt
> 	Pages           : 41
> 	Date            : 2016-08-15
>
> Abstract:
>    This document describes a method for applying patches to
>    configuration datastores using data defined with the YANG data
>    modeling language.
>
>
> The IETF datatracker status page for this draft is:https://datatracker.ietf.org/doc/draft-ietf-netconf-yang-patch/
>
> There's also a htmlized version available at:https://tools.ietf.org/html/draft-ietf-netconf-yang-patch-11
>
> A diff from the previous version is available at:https://www.ietf.org/rfcdiff?url2=draft-ietf-netconf-yang-patch-11
>
>
> Please note that it may take a couple of minutes from the time of submission
> until the htmlized version and diff are available at tools.ietf.org.
>
> Internet-Drafts are also available by anonymous FTP at:ftp://ftp.ietf.org/internet-drafts/
>
> _______________________________________________
> Netconf mailing listNetconf@ietf.orghttps://www.ietf.org/mailman/listinfo/netconf
>
>