Re: [YANG] extension naming scope

Andy Bierman <ietf@andybierman.com> Sun, 10 February 2008 21:22 UTC

Return-Path: <yang-bounces@ietf.org>
X-Original-To: ietfarch-yang-archive@core3.amsl.com
Delivered-To: ietfarch-yang-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E575A3A67A6; Sun, 10 Feb 2008 13:22:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.265
X-Spam-Level:
X-Spam-Status: No, score=-2.265 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334]
Received: from core3.amsl.com ([127.0.0.1]) by localhost (mail.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UxDGsm2NlF6X; Sun, 10 Feb 2008 13:22:57 -0800 (PST)
Received: from core3.amsl.com (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id AA3423A695E; Sun, 10 Feb 2008 13:22:42 -0800 (PST)
X-Original-To: yang@core3.amsl.com
Delivered-To: yang@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6C90F3A68F8 for <yang@core3.amsl.com>; Sun, 10 Feb 2008 13:22:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
Received: from core3.amsl.com ([127.0.0.1]) by localhost (mail.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 51Ki8kMN1hYo for <yang@core3.amsl.com>; Sun, 10 Feb 2008 13:22:35 -0800 (PST)
Received: from smtp122.sbc.mail.sp1.yahoo.com (smtp122.sbc.mail.sp1.yahoo.com [69.147.64.95]) by core3.amsl.com (Postfix) with SMTP id 13C773A68FE for <yang@ietf.org>; Sun, 10 Feb 2008 13:22:11 -0800 (PST)
Received: (qmail 73388 invoked from network); 10 Feb 2008 21:23:38 -0000
Received: from unknown (HELO ?192.168.0.10?) (andybierman@att.net@67.126.128.21 with plain) by smtp122.sbc.mail.sp1.yahoo.com with SMTP; 10 Feb 2008 21:23:38 -0000
X-YMail-OSG: gQUf4L0VM1nVkGzAay99Cp3i26S.yjbzlYEqERLIzltzoTp0
X-Yahoo-Newman-Property: ymail-3
Message-ID: <47AF6B58.6080204@andybierman.com>
Date: Sun, 10 Feb 2008 13:23:36 -0800
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: Martin Bjorklund <mbj@tail-f.com>
References: <47AE266D.4070601@andybierman.com> <20080210.220508.149362842.mbj@tail-f.com>
In-Reply-To: <20080210.220508.149362842.mbj@tail-f.com>
Cc: yang@ietf.org
Subject: Re: [YANG] extension naming scope
X-BeenThere: yang@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: YANG modeling Language for NETCONF <yang.ietf.org>
List-Unsubscribe: <http://www.ietf.org/mailman/listinfo/yang>, <mailto:yang-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/pipermail/yang>
List-Post: <mailto:yang@ietf.org>
List-Help: <mailto:yang-request@ietf.org?subject=help>
List-Subscribe: <http://www.ietf.org/mailman/listinfo/yang>, <mailto:yang-request@ietf.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: yang-bounces@ietf.org
Errors-To: yang-bounces@ietf.org

Martin Bjorklund wrote:
> Andy Bierman <ietf@andybierman.com> wrote:
>> Hi,
>>
>> I think the extension naming scope needs to be removed, and extensions
>> need to be in the same scope as rpc, notification, and all objects.
>> When converted to YIN, an extension element is in the same XML namespace
>> as the object instances defined in the same module.
> 
> I don't think this is a problem.  The same thing is done in XSD, where
> e.g. simpleTypes and elements have different naming scopes.  In XSD,
> there can be a simpleType named 'foo' and an element named 'foo' and a
> group named 'foo' at the same time.
> 

I disagree.

   leaf foo { type int16; }


   extension foo {
     argument bar {
       yin-element false;
     }
   }

These are both defined in the same XML namespace.

   <foo>17</foo>

   <foo bar="some string"/>

The <element generated for the extension is in the same namespace
as the one generated for the leaf.


> 
> /martin
> 
> 
> 

Andy

_______________________________________________
YANG mailing list
YANG@ietf.org
http://www.ietf.org/mailman/listinfo/yang