Re: analysis of YANG vs. RELAX NG

Balazs Lengyel <balazs.lengyel@ericsson.com> Thu, 29 November 2007 09:57 UTC

Return-path: <discuss-bounces@apps.ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1Ixg8t-0008GP-K1; Thu, 29 Nov 2007 04:57:11 -0500
Received: from discuss by megatron.ietf.org with local (Exim 4.43) id 1Ixg8s-0008De-6o for discuss-confirm+ok@megatron.ietf.org; Thu, 29 Nov 2007 04:57:10 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1Ixg8r-0008DU-TO for discuss@apps.ietf.org; Thu, 29 Nov 2007 04:57:09 -0500
Received: from mailgw3.ericsson.se ([193.180.251.60]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ixg8q-0005ox-6f for discuss@apps.ietf.org; Thu, 29 Nov 2007 04:57:09 -0500
Received: from mailgw3.ericsson.se (unknown [127.0.0.1]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 88F53205B3; Thu, 29 Nov 2007 10:57:07 +0100 (CET)
X-AuditID: c1b4fb3c-aff97bb0000030cf-10-474e8cf3d218
Received: from esealmw127.eemea.ericsson.se (unknown [153.88.254.122]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 7AAC220857; Thu, 29 Nov 2007 10:57:07 +0100 (CET)
Received: from esealmw129.eemea.ericsson.se ([153.88.254.177]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Thu, 29 Nov 2007 10:57:07 +0100
Received: from [159.107.198.61] ([159.107.198.61]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Thu, 29 Nov 2007 10:57:07 +0100
Message-ID: <474E8CE9.10900@ericsson.com>
Date: Thu, 29 Nov 2007 10:56:57 +0100
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 2.0.0.4 (X11/20070604)
MIME-Version: 1.0
To: Rohan Mahy <rohan.mahy@gmail.com>
Subject: Re: analysis of YANG vs. RELAX NG
References: <20071127.130355.18118495.mbj@tail-f.com> <953beacc0711271504y7aea5f21jc301ccad886d3611@mail.gmail.com> <474D9194.3060103@ericsson.com> <953beacc0711281025w4d993dd7u77d729111074496c@mail.gmail.com>
In-Reply-To: <953beacc0711281025w4d993dd7u77d729111074496c@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 29 Nov 2007 09:57:07.0058 (UTC) FILETIME=[336C3520:01C8326E]
X-Brightmail-Tracker: AAAAAA==
X-Spam-Score: -1.0 (-)
X-Scan-Signature: 8b431ad66d60be2d47c7bfeb879db82c
Cc: discuss@apps.ietf.org
X-BeenThere: discuss@apps.ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: general discussion of application-layer protocols <discuss.apps.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/discuss>, <mailto:discuss-request@apps.ietf.org?subject=unsubscribe>
List-Post: <mailto:discuss@apps.ietf.org>
List-Help: <mailto:discuss-request@apps.ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/discuss>, <mailto:discuss-request@apps.ietf.org?subject=subscribe>
Errors-To: discuss-bounces@apps.ietf.org

Hello Rohan,
Some questions/answers below.
Balazs

Rohan Mahy wrote:
> Hi,
> 
> Comments inline.
> 
> On Nov 28, 2007 8:04 AM, Balazs Lengyel <balazs.lengyel@ericsson.com 
> <mailto:balazs.lengyel@ericsson.com>> wrote:
> 
>     Hello,
>     I am no expert in RelaxNg but here are some thoughts why I like Yang
>     better.
> 
>     I have the feeling once you extend RelaxNg with all the necessary
>     bits, half your statements
>     will start with <other:xxx>. 
> 
> 
> We will never know unless we try the exercise. It seems you are However, I see a pretty small number
> of additional semantic items you list below:
> - an indicator of a default value (if any)
> - a flag that indicates whether a subtree is atomic for edit-config
> - an indicator that the schema is an rpc method and what its matching 
> request or response is
> - a flag that indicates whether a subtree is configuration or 
> operational data (read-write or read-only).
[BALAZS]: Please add
- what does a default value mean for operation data?
- a flag stating if a part of configuration is current, deprecated, obsolete
- a flag indicating if a bit of writable data is stored in non-volatile storage
- information indicating whether the sort order in a list is set by the user or the managed system
- a number of documentation options. And it is not enough to just say documentation, we need 
separate tags/elements for description, contact, revision info etc.
- enterprise specific extensions, do you need to define them or just use them
- formal descriptions of constraint e.g. if encryption method is non-null then we need a password
- references between different parts of the model e.g. this subscriber should use XXX 
application server. And simple ID based referencing is not enough as I want to state that here 
you can only reference application servers but not DNS servers.
- how do you handle data models with multiple roots, that are not well formed XML. (This is a 
current, existing customer demand not a theoretical question.)
- how do you refer to managed object instances e.g. a the observed speed of interface eth0
- etc.

-- 
Balazs Lengyel                       Ericsson Hungary Ltd.
TSP System Manager
ECN: 831 7320                        Fax: +36 1 4377792
Tel: +36-1-437-7320     email: Balazs.Lengyel@ericsson.com