Re: [YANG] relation to XML PDUs
Martin Bjorklund <mbj@tail-f.com> Mon, 21 January 2008 17:47 UTC
Return-path: <yang-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
by megatron.ietf.org with esmtp (Exim 4.43)
id 1JH0k8-0006Ho-LK; Mon, 21 Jan 2008 12:47:32 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43)
id 1JH0k6-00065P-Nt
for yang-confirm+ok@megatron.ietf.org; Mon, 21 Jan 2008 12:47:30 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org)
by megatron.ietf.org with esmtp (Exim 4.43) id 1JH0k6-00065E-DO
for yang@ietf.org; Mon, 21 Jan 2008 12:47:30 -0500
Received: from [213.180.94.162] (helo=mail.tail-f.com)
by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JH0k5-0000I2-Vn
for yang@ietf.org; Mon, 21 Jan 2008 12:47:30 -0500
Received: from localhost (c213-100-166-13.swipnet.se [213.100.166.13])
by mail.tail-f.com (Postfix) with ESMTP id F06F31B80C5;
Mon, 21 Jan 2008 18:47:27 +0100 (CET)
Date: Mon, 21 Jan 2008 18:46:01 +0100 (CET)
Message-Id: <20080121.184601.38475099.mbj@tail-f.com>
To: ietf@andybierman.com
Subject: Re: [YANG] relation to XML PDUs
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <4794C67F.1000303@andybierman.com>
References: <1200921746.6914.176.camel@missotis>
<20080121.145054.158522565.mbj@tail-f.com>
<4794C67F.1000303@andybierman.com>
X-Mailer: Mew version 5.1.51 on Emacs 22.1 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Scan-Signature: a7d6aff76b15f3f56fcb94490e1052e4
Cc: yang@ietf.org, lhotka@cesnet.cz
X-BeenThere: yang@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: YANG modeling Language for NETCONF <yang.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/yang>,
<mailto:yang-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/yang>
List-Post: <mailto:yang@ietf.org>
List-Help: <mailto:yang-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/yang>,
<mailto:yang-request@ietf.org?subject=subscribe>
Errors-To: yang-bounces@ietf.org
Andy Bierman <ietf@andybierman.com> wrote: > Martin Bjorklund wrote: > > Ladislav Lhotka <lhotka@cesnet.cz> wrote: > >> Hi, > >> > >> I understand that YANG data models describe entire configuration > >> datasets, but do they also pose any restrictions to the NETCONF XML > >> PDUs? For example: the order of children in a YANG model is fixed - does > >> it mean that the corresponding XML elements in PDUs must appear in the > >> same order? > > > > Currently we do this, mainly b/c of the requirement to be XSD > > compatible, i.e. we want to be able to generate an XSD which can be > > used to validate the PDUs. > > > > > Really? Where is that documented? In the XML Encoding Rules section of the container statetement (and same for list statement). > Let's review the NETCONF PDUs so we can stop talking about > schema validation in high altitude abstractions. [...] > 3) XML represents config database fragment > XSD cannot do much with this unless minOccurs=0 is set for > every element and the NETCONF operation attribute is added > everywhere it is allowed. I have never seen an XSD that > actually does this. Instead they all model the config-database > representation, not any particular PDU. I'm not protesting here. So if they do model the config-database representation, is the order important in this config-database? Is the NETCONF server supposed to keep an XML instance document representation of the config database, with all elements in order? This sounds like vendor-specific internals... /martin _______________________________________________ YANG mailing list YANG@ietf.org https://www1.ietf.org/mailman/listinfo/yang
- [YANG] relation to XML PDUs Ladislav Lhotka
- Re: [YANG] relation to XML PDUs Martin Bjorklund
- Re: [YANG] relation to XML PDUs Andy Bierman
- Re: [YANG] relation to XML PDUs Martin Bjorklund
- Re: [YANG] relation to XML PDUs Andy Bierman