Re: [Netconf] I-D Action: draft-ietf-netconf-yang-patch-11.txt
Benoit Claise <bclaise@cisco.com> Thu, 22 September 2016 07:51 UTC
Return-Path: <bclaise@cisco.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 1352412D76E; Thu, 22 Sep 2016 00:51:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -16.837
X-Spam-Level:
X-Spam-Status: No, score=-16.837 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.316, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 P7CErkM_37Vq; Thu, 22 Sep 2016 00:51:34 -0700 (PDT)
Received: from aer-iport-3.cisco.com (aer-iport-3.cisco.com [173.38.203.53]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6839A12D56C; Thu, 22 Sep 2016 00:51:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=20139; q=dns/txt; s=iport; t=1474530693; x=1475740293; h=subject:to:references:cc:from:message-id:date: mime-version:in-reply-to; bh=+OZSVskjvSv72FQJuYkbe6kKzKK7/zMQy6paQf6PCsg=; b=Im4mBLhmZIOg/viyi4GWQ0z1sBrWd1lxg1a/1XTXY2800tbslb7yYGLI yWieX1ktLHqLf+WdBQBWHUBUgUMlWtp/b0rhF98GyzbqKJyl9sx5HnhZq Xzsq3b6sdGpAkiy07T8gDGqX+D/5xrM6h8DDhss5KPIKk4MMybQPP0Nbc g=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0A/AwDui+NX/xbLJq1UChkBAQEBAQEBAQEBAQcBAQEBAYM7AQEBAQF1KlKETIhnpjWFD4IEGQEMhS5KAoIdFAECAQEBAQEBAV4nhGIBAQQBAQEgSwsQCxgVEgMCAicfEQYNBgIBAReIMA6uY4xLAQEBAQEBAQEBAQEBAQEBAQEBAQEBHIY3gXwIglCEHBJVgkWCWgWUHoVXhieJPoFuToQWgxSGBokZg0+DfB42gmCCJzw0AYdaAQEB
X-IronPort-AV: E=Sophos;i="5.30,378,1470700800"; d="scan'208,217";a="646897383"
Received: from aer-iport-nat.cisco.com (HELO aer-core-1.cisco.com) ([173.38.203.22]) by aer-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2016 07:51:31 +0000
Received: from [10.60.67.84] (ams-bclaise-8913.cisco.com [10.60.67.84]) by aer-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id u8M7pUMC006789; Thu, 22 Sep 2016 07:51:30 GMT
To: Andy Bierman <andy@yumaworks.com>
References: <147128640777.31546.5965034967964862585.idtracker@ietfa.amsl.com> <bef9cf96-e77b-9e5c-6e66-7f036648a5b9@cisco.com> <CABCOCHQ5S_CSeFnaSrxGonupp1skxDjZp-=+Exwqhg19P=6x2Q@mail.gmail.com>
From: Benoit Claise <bclaise@cisco.com>
Message-ID: <10fc4b9c-dc23-77e2-1540-71af5a261de9@cisco.com>
Date: Thu, 22 Sep 2016 09:51:30 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
MIME-Version: 1.0
In-Reply-To: <CABCOCHQ5S_CSeFnaSrxGonupp1skxDjZp-=+Exwqhg19P=6x2Q@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------038E15F57051208D2C4ABC26"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/4cood48Ov8YIWuHGP9i-Spxu0fk>
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: Thu, 22 Sep 2016 07:51:41 -0000
Andy, > > > On Wed, Sep 21, 2016 at 9:53 AM, Benoit Claise <bclaise@cisco.com > <mailto: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 > <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? My bad. Sorry I blindly followed the link from the YANG Patch normative references, and looked up the RESTCONF draft v13. > > > - 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 > <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. Ok. > > > 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". > > Ok. > > - 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". When I see "If a YANG Patch is completed with errors, the RESTCONF server SHOULD return a "yang-patch-status" message.", I'm concerned that no error message would be sent to the RESTCONF client if a YANG Patch is completed with errors. It's good practice, when you have a SHOULD to explain the exception(s) (btw, same remark for "If a YANG Patch is completed without errors, the RESTCONF server SHOULD return a "yang-patch-status" message"). I guess that you are after some text such as: "If a YANG Patch is completed with errors, the RESTCONF server MUST return a "yang-patch-status" message, unless a previous related error is already sent by the RESTCONF server, e.g, "405 Method Not Allowed". Regards, Benoit > > 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/ >> <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 >> <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 >> <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 attools.ietf.org <http://tools.ietf.org>. >> >> Internet-Drafts are also available by anonymous FTP at: >> ftp://ftp.ietf.org/internet-drafts/ >> <ftp://ftp.ietf.org/internet-drafts/> >> >> _______________________________________________ >> Netconf mailing list >> Netconf@ietf.org <mailto:Netconf@ietf.org> >> https://www.ietf.org/mailman/listinfo/netconf >> <https://www.ietf.org/mailman/listinfo/netconf> >
- [Netconf] I-D Action: draft-ietf-netconf-yang-pat… internet-drafts
- Re: [Netconf] I-D Action: draft-ietf-netconf-yang… Benoit Claise
- Re: [Netconf] I-D Action: draft-ietf-netconf-yang… Andy Bierman
- Re: [Netconf] I-D Action: draft-ietf-netconf-yang… Benoit Claise