[YANG] so many naming scopes

Andy Bierman <ietf@andybierman.com> Thu, 03 January 2008 18:44 UTC

Return-path: <yang-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1JAV3L-0007dV-1r; Thu, 03 Jan 2008 13:44:27 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JAV3I-0007Rf-Vq for yang-confirm+ok@megatron.ietf.org; Thu, 03 Jan 2008 13:44:24 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JAV3C-0007Dh-5z for yang@ietf.org; Thu, 03 Jan 2008 13:44:18 -0500
Received: from smtp121.sbc.mail.sp1.yahoo.com ([69.147.64.94]) by ietf-mx.ietf.org with smtp (Exim 4.43) id 1JAV3B-0004m7-Pf for yang@ietf.org; Thu, 03 Jan 2008 13:44:18 -0500
Received: (qmail 97585 invoked from network); 3 Jan 2008 18:44:17 -0000
Received: from unknown (HELO ?192.168.0.10?) (andybierman@att.net@68.120.80.25 with plain) by smtp121.sbc.mail.sp1.yahoo.com with SMTP; 3 Jan 2008 18:44:17 -0000
X-YMail-OSG: dBqix5gVM1k7Jv9wcADE3.rCpkcBnWorWRrXNcKNJi_i.0BIjG1NFYycnqyCpmIeneGr_F.HWHEu4bOjHejE64xK
Message-ID: <477D2D00.2010108@andybierman.com>
Date: Thu, 03 Jan 2008 10:44:16 -0800
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: yang <yang@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 9ed51c9d1356100bce94f1ae4ec616a9
Subject: [YANG] so many naming scopes
X-BeenThere: yang@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: YANG modeling Language for NETCONF <yang.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/yang>, <mailto:yang-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/yang>
List-Post: <mailto:yang@ietf.org>
List-Help: <mailto:yang-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/yang>, <mailto:yang-request@ietf.org?subject=subscribe>
Errors-To: yang-bounces@ietf.org

Hi,

Sec. 6.2 lists several naming scopes for various YANG constructs.
Most of it seems fine, except I am concerned about the confusion factor
that can result:

module foo {
   namespace "http://example.com/foo-ns";
   prefix "foo";
   description "do you have anything without foo in it?";

   typedef foo {
     type int32;
   }

   grouping foo {
     leaf x { type foo; }
   }

   container foo {
     leaf a { type foo; }
     uses foo;
     choice b {
       case foo {
         leaf c { type foo; }
       }
       case b {
         container d {
           uses foo;
         }
       }
     }
   }

}


Is this much flexibility such a good idea?
I don't think the lack of individual naming scopes for every
type of identifier has been a big problem in the SNMP world.


Andy


_______________________________________________
YANG mailing list
YANG@ietf.org
https://www1.ietf.org/mailman/listinfo/yang