Re: [netmod] Y34: remove anyxml
Martin Bjorklund <mbj@tail-f.com> Wed, 19 November 2014 17:54 UTC
Return-Path: <mbj@tail-f.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 62CD81AD3F7 for <netmod@ietfa.amsl.com>; Wed, 19 Nov 2014 09:54:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.495
X-Spam-Level:
X-Spam-Status: No, score=-2.495 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.594, SPF_PASS=-0.001] autolearn=ham
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 NlXzMCJxpj2o for <netmod@ietfa.amsl.com>; Wed, 19 Nov 2014 09:54:24 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [83.241.162.140]) by ietfa.amsl.com (Postfix) with ESMTP id 9247D1AD3F1 for <netmod@ietf.org>; Wed, 19 Nov 2014 09:54:24 -0800 (PST)
Received: from localhost (unknown [193.13.112.215]) by mail.tail-f.com (Postfix) with ESMTPSA id D19D21280988; Wed, 19 Nov 2014 18:54:23 +0100 (CET)
Date: Wed, 19 Nov 2014 18:54:31 +0100
Message-Id: <20141119.185431.1418351492001253435.mbj@tail-f.com>
To: phil@juniper.net
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <201411191708.sAJH88ST090107@idle.juniper.net>
References: <20141119.111524.1777990919940157291.mbj@tail-f.com> <201411191708.sAJH88ST090107@idle.juniper.net>
X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/netmod/ZbUdF_7vq-rHk1PJoy1pn3eKFXc
Cc: netmod@ietf.org
Subject: Re: [netmod] Y34: remove anyxml
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Nov 2014 17:54:26 -0000
Phil Shafer <phil@juniper.net> wrote: > Martin Bjorklund writes: > >> I'm not following why anyxml is being considered for removal. > >> I consider it an important feature and strongly object. > >The problem is that it is encoding-specifc. In most case where it is > >used, what we really mean is "any data modelled with YANG". Hence, > >the proposal Y34-02 suggests we add 'anydata' for this purpose. Such > >data can be encoded in XML or JSON. > > I take is as a given that there's no realistic say to round trip > between arbitrary XML and arbitrary JSON (or whatever else the > future may hold for other potential non-NETCONF uses of YANG). > So the choices are to keep anyxml or replace it with a string. > I would be strongly against the latter. anyxml allows one to > carry opaque chunks of XML in a YANG data model. > > Consider the recent proxy feature as spec'd in the "peer mount" > draft and how easily anyxml allows the encapsulation of subhierarchies > of data within a parent hierarchy. This is just the sort of problem > anyxml was meant to address. > > Or consider the need for undocumented content. In JUNOS, we put > undocumented configuration under an "anyxml undocumented" member > so we can transmit our secrets without documenting them. Clients > can validate the known parts of their config without tripping on > the unknown parts. > > anyxml is a useful feature and should not be removed. The proposal is (Y34-02): Keep 'anyxml'. Introduce 'anydata' 'anyxml' would still be used to represent unrestricted XML, as is done in NETCONF. 'anydata' would be an unknown chunk of data that can be modelled with YANG. Can be encoded as xml or json. /martin
- Re: [netmod] Y09: optional keys Phil Shafer
- [netmod] YANG 1.1 virtual interim 2014-11-19 Juergen Schoenwaelder
- Re: [netmod] YANG 1.1 virtual interim 2014-11-19 Phil Shafer
- [netmod] Y03: allow if-feature in refine (Was: YA… Martin Bjorklund
- [netmod] Y09: optional keys (Was: YANG 1.1 virtua… Martin Bjorklund
- [netmod] Y10: restrictions on enums (Was: YANG 1.… Martin Bjorklund
- [netmod] Y18: when context node (Was: YANG 1.1 vi… Martin Bjorklund
- [netmod] Y25: enum numbering (Was: YANG 1.1 virtu… Martin Bjorklund
- [netmod] Y26: mandatory nodes in augment (Was: YA… Martin Bjorklund
- [netmod] Y34: remove anyxml (Was: YANG 1.1 virtua… Martin Bjorklund
- [netmod] Y58: actions (Was: YANG 1.1 virtual inte… Martin Bjorklund
- [netmod] Y05: unprefixed paths in typedefs (Was: … Martin Bjorklund
- Re: [netmod] YANG 1.1 virtual interim 2014-11-19 Juergen Schoenwaelder
- Re: [netmod] Y03: allow if-feature in refine (Was… Phil Shafer
- Re: [netmod] Y34: remove anyxml (Was: YANG 1.1 vi… Phil Shafer
- Re: [netmod] Y26: mandatory nodes in augment (Was… Phil Shafer
- Re: [netmod] Y58: actions (Was: YANG 1.1 virtual … Phil Shafer
- Re: [netmod] Y34: remove anyxml Martin Bjorklund
- Re: [netmod] Y34: remove anyxml Martin Bjorklund
- Re: [netmod] Y26: mandatory nodes in augment Martin Bjorklund
- Re: [netmod] Y34: remove anyxml Ladislav Lhotka
- Re: [netmod] Y34: remove anyxml Kent Watsen
- Re: [netmod] Y34: remove anyxml Martin Bjorklund
- Re: [netmod] Y34: remove anyxml Andy Bierman
- Re: [netmod] Y34: remove anyxml Phil Shafer
- Re: [netmod] Y34: remove anyxml Martin Bjorklund
- Re: [netmod] Y34: remove anyxml Andy Bierman
- Re: [netmod] Y34: remove anyxml Phil Shafer
- Re: [netmod] Y34: remove anyxml Ladislav Lhotka
- Re: [netmod] Y34: remove anyxml Ladislav Lhotka
- Re: [netmod] Y09: optional keys (Was: YANG 1.1 vi… Ladislav Lhotka
- Re: [netmod] Y34: remove anyxml Martin Bjorklund
- Re: [netmod] Y09: optional keys Martin Bjorklund
- Re: [netmod] Y34: remove anyxml Ladislav Lhotka
- Re: [netmod] Y09: optional keys Ladislav Lhotka
- Re: [netmod] Y26: mandatory nodes in augment Ladislav Lhotka
- Re: [netmod] Y09: optional keys Martin Bjorklund
- Re: [netmod] Y09: optional keys Ladislav Lhotka
- Re: [netmod] Y09: optional keys Martin Bjorklund
- Re: [netmod] Y09: optional keys Ladislav Lhotka
- Re: [netmod] Y34: remove anyxml Kent Watsen
- Re: [netmod] Y34: remove anyxml Kent Watsen
- Re: [netmod] Y34: remove anyxml Ladislav Lhotka
- Re: [netmod] Y09: optional keys Andy Bierman
- Re: [netmod] Y09: optional keys Martin Bjorklund
- Re: [netmod] Y09: optional keys Ladislav Lhotka
- Re: [netmod] Y09: optional keys Andy Bierman
- Re: [netmod] Y26: mandatory nodes in augment Andy Bierman
- Re: [netmod] Y26: mandatory nodes in augment Ladislav Lhotka
- Re: [netmod] Y26: mandatory nodes in augment Andy Bierman
- Re: [netmod] Y26: mandatory nodes in augment Ladislav Lhotka
- Re: [netmod] Y26: mandatory nodes in augment Andy Bierman
- [netmod] Y07: do not allow when or if-feature on … Martin Bjorklund
- Re: [netmod] Y07: do not allow when or if-feature… Ladislav Lhotka
- Re: [netmod] Y07: do not allow when or if-feature… Martin Bjorklund
- Re: [netmod] Y07: do not allow when or if-feature… Andy Bierman
- Re: [netmod] Y07: do not allow when or if-feature… Ladislav Lhotka
- Re: [netmod] Y07: do not allow when or if-feature… Andy Bierman
- Re: [netmod] Y07: do not allow when or if-feature… Martin Bjorklund
- Re: [netmod] Y07: do not allow when or if-feature… Andy Bierman
- Re: [netmod] Y07: do not allow when or if-feature… Martin Bjorklund
- Re: [netmod] Y07: do not allow when or if-feature… Ladislav Lhotka
- Re: [netmod] Y07: do not allow when or if-feature… Andy Bierman
- Re: [netmod] Y07: do not allow when or if-feature… Ladislav Lhotka
- Re: [netmod] Y07: do not allow when or if-feature… Andy Bierman
- Re: [netmod] Y07: do not allow when or if-feature… Ladislav Lhotka
- Re: [netmod] Y07: do not allow when or if-feature… Juergen Schoenwaelder