Re: [NGO] Re: Why NETCONF needs a data modeling language

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

Return-path: <ngo-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1Ixlrm-0007ni-C4; Thu, 29 Nov 2007 11:03:54 -0500
Received: from ngo by megatron.ietf.org with local (Exim 4.43) id 1Ixlrl-0007nP-DL for ngo-confirm+ok@megatron.ietf.org; Thu, 29 Nov 2007 11:03:53 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1Ixlrl-0007nD-3T for ngo@ietf.org; Thu, 29 Nov 2007 11:03:53 -0500
Received: from mailgw4.ericsson.se ([193.180.251.62]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ixlrj-0006VX-FQ for ngo@ietf.org; Thu, 29 Nov 2007 11:03:53 -0500
Received: from mailgw4.ericsson.se (unknown [127.0.0.1]) by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id C8439205B2; Thu, 29 Nov 2007 17:03:50 +0100 (CET)
X-AuditID: c1b4fb3e-afea1bb00000459d-d6-474ee2e68c2e
Received: from esealmw127.eemea.ericsson.se (unknown [153.88.254.122]) by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id A17C820FB0; Thu, 29 Nov 2007 17:03:50 +0100 (CET)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.175]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Thu, 29 Nov 2007 17:03:50 +0100
Received: from [159.107.198.61] ([159.107.198.61]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Thu, 29 Nov 2007 17:03:50 +0100
Message-ID: <474EE2E3.2000904@ericsson.com>
Date: Thu, 29 Nov 2007 17:03:47 +0100
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 2.0.0.4 (X11/20070604)
MIME-Version: 1.0
To: Ladislav Lhotka <lhotka@cesnet.cz>
Subject: Re: [NGO] Re: Why NETCONF needs a data modeling language
References: <474E0F71.2050003@andybierman.com> <953beacc0711282017p3ad865abw19920b4e68e82e80@mail.gmail.com> <20071129113446.GB10751@elstar.local> <1196348560.5918.76.camel@missotis>
In-Reply-To: <1196348560.5918.76.camel@missotis>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
X-OriginalArrivalTime: 29 Nov 2007 16:03:50.0220 (UTC) FILETIME=[6E5448C0:01C832A1]
X-Brightmail-Tracker: AAAAAA==
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -1.0 (-)
X-Scan-Signature: fb6060cb60c0cea16e3f7219e40a0a81
Cc: ngo@ietf.org
X-BeenThere: ngo@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: NETCONF Goes On - discussions on future work and extensions to NETCONF <ngo.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ngo>, <mailto:ngo-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ngo>
List-Post: <mailto:ngo@ietf.org>
List-Help: <mailto:ngo-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ngo>, <mailto:ngo-request@ietf.org?subject=subscribe>
Errors-To: ngo-bounces@ietf.org

Hello Ladislav,
Thanks for the comments. Some replies.
regards Balazs

Ladislav Lhotka wrote:
> Juergen Schoenwaelder píše v Čt 29. 11. 2007 v 12:34 +0100:
>  
>> a) that doing so will lead to a large reuse of available RNG tools for
>>    processing NETCONF data models (since they don't know the RNG
>>    subset nor the semantic additions)
> 
> For example, NETCONF data could be validated (as an XML document) using
> the existing tools, RNG specification requires that foreign elements be
> ignored. As for the subset of RNG - could it perhaps be just a
> convention, like "avoid mixed content"?
[BALAZS]: What can we validate? The Netconf data on the wire. However due to the structure of 
NETCONF, validation possibilities based on RNG or XSD have major limitations.

95% of XML elements will have to be optional because in many cases we do not specify what must 
be in an operation, but rather what has to be in the configuration datastore as a result of the 
operation.
E.g. We have a data model

list interface {
     key IfName;
     leaf IfName {
         type string;
     }
     leaf IfSpeed {
         type uint16;
         mandatory true;
     }
     leaf IfMtu {
         type uint16;
         mandatory true;
     }
}

If an interface is already there, you can send an edit-config just adjusting IfSpeed without 
including IfMtu. So in RNG/XSD you have to make IfSpeed optional and similarly IfMtu. This is 
why YANG  models the stored configuration data as a base, and the NETCONF operations are just 
derived from this.

There are other parts of the data model that I believe can not be validated either. e.g. things 
included in the YANG statements
- must
- unique
- keyref
- configuration data in operational data containers
- min-elements, max-elements (because we don't know how many elements exist already)

> 
> It would make sense if one could use both the traditional XML tools and
> new NETCONF-specific tools. The big advantage would be that both
> categories would use exactly the same data model specification. Even if
> someone writes conversion tools like YANG->RNG, it would be more
> difficult to guarantee consistency.
> 
[BALAZS]: Traditional tools CAN be used based on the XML YIN format and the XSD (and possibly 
also RNG) conversion. Consistency is an issue for the conversion tool makers, but they will be 
a very small part of the YANG user community.


_______________________________________________
NGO mailing list
NGO@ietf.org
https://www1.ietf.org/mailman/listinfo/ngo