Re: [NGO] NETCONF Data types

Andy Bierman <ietf@andybierman.com> Wed, 05 December 2007 02:12 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 1Izjkc-0000YT-OB; Tue, 04 Dec 2007 21:12:38 -0500
Received: from ngo by megatron.ietf.org with local (Exim 4.43) id 1Izjkc-0000VS-2z for ngo-confirm+ok@megatron.ietf.org; Tue, 04 Dec 2007 21:12:38 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1Izjkb-0000Sl-Lk for ngo@ietf.org; Tue, 04 Dec 2007 21:12:37 -0500
Received: from smtp118.sbc.mail.sp1.yahoo.com ([69.147.64.91]) by ietf-mx.ietf.org with smtp (Exim 4.43) id 1Izjkb-00089t-6c for ngo@ietf.org; Tue, 04 Dec 2007 21:12:37 -0500
Received: (qmail 99606 invoked from network); 5 Dec 2007 02:12:36 -0000
Received: from unknown (HELO dhcp-16b6.ietf70.org) (andybierman@att.net@130.129.22.182 with plain) by smtp118.sbc.mail.sp1.yahoo.com with SMTP; 5 Dec 2007 02:12:36 -0000
X-YMail-OSG: Pz1CaqIVM1kn4KF3fuZQPAhwr.8xZ19gRyIKo4T22uCBPic4
Message-ID: <475608BB.9090602@andybierman.com>
Date: Tue, 04 Dec 2007 18:11:07 -0800
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 2.0.0.5 (X11/20070716)
MIME-Version: 1.0
To: j.schoenwaelder@jacobs-university.de
Subject: Re: [NGO] NETCONF Data types
References: <713043CE8B8E1348AF3C546DBE02C1B412218939@zcarhxm2.corp.nortel.com> <20071205011542.GA21999@elstar.local>
In-Reply-To: <20071205011542.GA21999@elstar.local>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 4d87d2aa806f79fed918a62e834505ca
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

Juergen Schoenwaelder wrote:
> On Tue, Dec 04, 2007 at 07:33:55PM -0500, Sharon Chisholm wrote:
>  
>   
>> One of the things that people seemed to agree on early in the NETCONF
>> content discussion was that SNMP & SMI defined too many similar data
>> types and we didn't want to do that in NETCONF. Do people still agree
>> that we don't want 30 flavours of integers defined? 
>>     
>
> In SMI land, we defined many types in an attempt to express
> relationships which are otherwise not expressable. The reason we have
> things such as InterfaceIndex and InterfaceIndexOrZero is that we
> wanted to capture 'hey this number here actually identifies an
> interface'. With a different data modeling language, you might not
> need to do this anymore via the type system since you might have other
> mechanisms to express the information that a value is actually
> identifying an interface.
>
> <soap>
>   This is actually an nice example demonstrating that the features of
>   a data modeling language will influence the way other features of a
>   language are used. The INET-ADDRESS-MIB is another example demoing
>   how we had to hack around the lack of unions in the SMI. You can of
>   course convert all this stuff algorithmically to XSD; whether the
>   result is useful in other contexts (say for NETCONF configuration)
>   needs to be considered.
> </soap>
>
> That said, I take most of the blame for the collection of data types
> in the YANG modules contained in the YANG draft. I tries to create a
> core collection of reusable types, but I am sure the result is
> somewhat biased and I might have simply overlooked something. I like
> to encourage people to take a look at the defined types in the YANG
> document and if you think something is wrong, missing, or should not
> be there, please drop a note so we can work things out.
>
>   

I like the data types in YANG.
There needs to be a clear distinction between builtin types and
derived types.  IMO, the list of builtin numeric data types is fine
the way it is.  The collection of 'extra' derived types is debatable
and will probably grow over time.


> /js
>
>   

Andy



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