Re: [media-types] [Netconf] review request for media type application/yang-patch

Sean Leonard <dev+ietf@seantek.com> Tue, 19 July 2016 11:10 UTC

Return-Path: <dev+ietf@seantek.com>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A73AB12D50E for <media-types@ietfa.amsl.com>; Tue, 19 Jul 2016 04:10:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001] autolearn=unavailable autolearn_force=no
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 gr9YIFo5Kxe8 for <media-types@ietfa.amsl.com>; Tue, 19 Jul 2016 04:10:25 -0700 (PDT)
Received: from pechora7.dc.icann.org (pechora7.icann.org [IPv6:2620:0:2830:201::1:73]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 16FE212D501 for <media-types@ietf.org>; Tue, 19 Jul 2016 04:10:25 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by pechora7.dc.icann.org (8.13.8/8.13.8) with ESMTP id u6JBA314001427 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for <media-types@iana.org>; Tue, 19 Jul 2016 11:10:24 GMT
Received: from [192.168.123.151] (unknown [75.83.2.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 1FD7F509B5; Tue, 19 Jul 2016 07:10:02 -0400 (EDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Sean Leonard <dev+ietf@seantek.com>
In-Reply-To: <CABCOCHT2b7Ap0A_v_aGM34SaBp7CcANvMi9PVfLEyFmEHLiXkQ@mail.gmail.com>
Date: Tue, 19 Jul 2016 04:10:01 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <A4522279-E887-4FED-B73E-84CDAB7F6FF8@seantek.com>
References: <CABCOCHT2b7Ap0A_v_aGM34SaBp7CcANvMi9PVfLEyFmEHLiXkQ@mail.gmail.com>
To: Andy Bierman <andy@yumaworks.com>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/t0VRLPsB2UXXhaKontzfbEUkxQk>
Cc: Netconf <netconf@ietf.org>, media-types@iana.org
Subject: Re: [media-types] [Netconf] review request for media type application/yang-patch
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "IANA mailing list for reviewing Media Type \(MIME Type, Content Type\) registration requests." <media-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/media-types>, <mailto:media-types-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types/>
List-Post: <mailto:media-types@ietf.org>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/media-types>, <mailto:media-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 19 Jul 2016 11:10:26 -0000

My feedback remains that these ought to remain application/yang-patch+xml and application/yang-data+xml.

I would be happy to be rebuked (with appropriate justifications), but have not heard compelling reasons to vary from that course.

Three observations:
1. If you occupy application/yang-patch as the XML variant now, what happens when you have CBOR or some other fancy format du jour? Now you’ve used up the “main one”.

2. Consider that image/svg+xml uses +xml, but doesn’t use XPointer for fragment identifiers. It uses “SVG barenames” or “SVG views”. See <http://www.w3.org/TR/SVG/mimereg.html>.

3. If the fragment identifier syntax is what’s causing the stumbling block, how about application/yang-patch-xml and application/yang-data-xml ? That keeps the format front-and-center but avoids the (perceived) fragment identifier stumbling block.

Best regards,

Sean


> On Jul 8, 2016, at 4:10 PM, Andy Bierman <andy@yumaworks.com> wrote:
> 
> Hi,
> 
> Here is the revised application/yang-patch media type registration request
> (was application/yang-patch+xml)
>       Type name: application
> 
>       Subtype name: yang-patch
> 
>       Required parameters: None
> 
>       Optional parameters: None
> 
>      // RFC Ed.: replace draft-ietf-netmod-rfc6020bis with
>      // the actual RFC reference for YANG 1.1, and remove this note.
> 
>      // RFC Ed.: replace 'XXXX' with the real RFC number,
>      // and remove this note
> 
>       Encoding considerations: 8-bit
>          Each conceptual YANG data node is encoded according to the
>          XML Encoding Rules and Canonical Format for the specific
>          YANG data node type defined in [draft-ietf-netmod-rfc6020bis].
>          In addition, the "yang-patch" YANG data template found
>          in [RFCXXXX] defines the structure of a YANG Patch request.
> 
>      // RFC Ed.: replace 'NN' in Section NN of [RFCXXXX] with the
>      // section number for Security Considerations
>      // Replace 'XXXX' in Section NN of [RFCXXXX] with the actual
>      // RFC number, and remove this note.
> 
>       Security considerations: Security considerations related
>          to the generation and consumption of RESTCONF messages
>          are discussed in Section NN of [RFCXXXX].
>          Additional security considerations are specific to the
>          semantics of particular YANG data models. Each YANG module
>          is expected to specify security considerations for the
>          YANG data defined in that module.
> 
>      // RFC Ed.: replace XXXX with actual RFC number and remove this
> 
>      // note
> 
>       Interoperability considerations: [RFCXXXX] specifies the format
>          of conforming messages and the interpretation thereof.
> 
>      // RFC Ed.: replace XXXX with actual RFC number and remove this
>      // note.
> 
>       Published specification: RFC XXXX
> 
>       Applications that use this media type: Instance document
>         data parsers used within a protocol or automation tool
>         that utilize the YANG Patch data structure.
> 
>       Fragment identifier considerations: The fragment field in the
>          request URI has no defined purpose.
> 
>       Additional information:
> 
>         Deprecated alias names for this type: N/A
>         Magic number(s): N/A
>         File extension(s): .xml
>         Macintosh file type code(s): "TEXT"
> 
>      // RFC Ed.: replace XXXX with actual RFC number and remove this
>      // note.
> 
>       Person & email address to contact for further information: See
>          Authors' Addresses section of [RFCXXXX].
> 
>       Intended usage: COMMON
> 
>       Restrictions on usage: N/A
> 
>      // RFC Ed.: replace XXXX with actual RFC number and remove this
>      // note.
> 
>       Author: See Authors' Addresses section of [RFCXXXX].
> 
>       Change controller: Internet Engineering Task Force
>          (mailto:
> iesg&ietf.org
> ).
> 
>       Provisional registration? (standards tree only): no
> 
> 
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf