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

"Romascanu, Dan (Dan)" <dromasca@avaya.com> Thu, 29 November 2007 16:09 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 1IxlxB-0003Lq-M5; Thu, 29 Nov 2007 11:09:29 -0500
Received: from ngo by megatron.ietf.org with local (Exim 4.43) id 1IxlxA-0003LY-3d for ngo-confirm+ok@megatron.ietf.org; Thu, 29 Nov 2007 11:09:28 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1Ixlx9-0003LO-Ok for ngo@ietf.org; Thu, 29 Nov 2007 11:09:27 -0500
Received: from de307622-de-outbound.net.avaya.com ([198.152.71.100]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1Ixlx9-0006Sa-7V for ngo@ietf.org; Thu, 29 Nov 2007 11:09:27 -0500
X-IronPort-AV: E=Sophos;i="4.23,229,1194238800"; d="scan'208";a="76726524"
Received: from unknown (HELO co300216-co-erhwest.avaya.com) ([198.152.7.5]) by de307622-de-outbound.net.avaya.com with ESMTP; 29 Nov 2007 11:09:25 -0500
X-IronPort-AV: E=Sophos;i="4.23,229,1194238800"; d="scan'208";a="135295456"
Received: from unknown (HELO 307622ANEX5.global.avaya.com) ([135.64.140.16]) by co300216-co-erhwest-out.avaya.com with ESMTP; 29 Nov 2007 11:08:44 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [NGO] Re: Why NETCONF needs a data modeling language
Date: Thu, 29 Nov 2007 17:08:29 +0100
Message-ID: <EDC652A26FB23C4EB6384A4584434A046840E1@307622ANEX5.global.avaya.com>
In-Reply-To: <474EE2E3.2000904@ericsson.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [NGO] Re: Why NETCONF needs a data modeling language
Thread-Index: AcgyoXJhKGyAUSnJQr+uzI6j+/ZZyAAAHmgQ
References: <474E0F71.2050003@andybierman.com> <953beacc0711282017p3ad865abw19920b4e68e82e80@mail.gmail.com> <20071129113446.GB10751@elstar.local><1196348560.5918.76.camel@missotis> <474EE2E3.2000904@ericsson.com>
From: "Romascanu, Dan (Dan)" <dromasca@avaya.com>
To: Balazs Lengyel <balazs.lengyel@ericsson.com>, Ladislav Lhotka <lhotka@cesnet.cz>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: f66b12316365a3fe519e75911daf28a8
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

Is not this discussion better fit for yang@ietf.org or even discuss@apps.ietf.org? 

Dan

 

> -----Original Message-----
> From: Balazs Lengyel [mailto:balazs.lengyel@ericsson.com] 
> Sent: Thursday, November 29, 2007 6:04 PM
> To: Ladislav Lhotka
> Cc: ngo@ietf.org
> Subject: Re: [NGO] Re: Why NETCONF needs a data modeling language
> 
> 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
> 


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