Re: [YANG] 7.1.5 import statement

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Wed, 09 January 2008 22:07 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 1JCj58-0002pS-A8; Wed, 09 Jan 2008 17:07:30 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JCj56-0002o3-U0 for yang-confirm+ok@megatron.ietf.org; Wed, 09 Jan 2008 17:07:28 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JCj56-0002kg-Gp for yang@ietf.org; Wed, 09 Jan 2008 17:07:28 -0500
Received: from hermes.jacobs-university.de ([212.201.44.23]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JCj56-0002VB-4p for yang@ietf.org; Wed, 09 Jan 2008 17:07:28 -0500
Received: from localhost (demetrius.jacobs-university.de [212.201.44.32]) by hermes.jacobs-university.de (Postfix) with ESMTP id AE6978A386; Wed, 9 Jan 2008 23:07:26 +0100 (CET)
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id 09064-05; Wed, 9 Jan 2008 23:07:22 +0100 (CET)
Received: from elstar.local (elstar.iuhb02.iu-bremen.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id F3C138A35F; Wed, 9 Jan 2008 23:07:21 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 8839D45FF1B; Wed, 9 Jan 2008 23:07:20 +0100 (CET)
Date: Wed, 9 Jan 2008 23:07:20 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Martin Bjorklund <mbj@tail-f.com>
Subject: Re: [YANG] 7.1.5 import statement
Message-ID: <20080109220720.GA5390@elstar.local>
Mail-Followup-To: Martin Bjorklund <mbj@tail-f.com>, ietf@andybierman.com, yang@ietf.org
References: <4784F78B.5040000@andybierman.com> <20080109172201.GA5298@elstar.local> <478505D3.1060405@andybierman.com> <20080109.202700.57813514.mbj@tail-f.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20080109.202700.57813514.mbj@tail-f.com>
User-Agent: Mutt/1.5.17 (2007-11-01)
X-Virus-Scanned: amavisd-new 2.3.3 (20050822) at jacobs-university.de
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 2409bba43e9c8d580670fda8b695204a
Cc: yang@ietf.org
X-BeenThere: yang@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: j.schoenwaelder@jacobs-university.de
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

On Wed, Jan 09, 2008 at 08:27:00PM +0100, Martin Bjorklund wrote:
> Andy Bierman <ietf@andybierman.com> wrote:
> > Fine.  One compiler complains and continues, and another complains
> > and exits.
> > 
> > It would be nice if DM writers who invest time and money in YANG
> > know what 'valid YANG' is,
> 
> The problem is that in this case it depends on the environment (a file
> cannot be found).  So when my tool exits it doesn't say that the
> module is invalid YANG.

I believe all listed imports must resolve to a valid YANG module in
order to parse a given YANG module successfully. This should be part
of the language definition.

What actually happens if a parser hits an unresolvable import is
implementation specific. Some implementations may choose to stop
immediately when they hit an unresolvable import while others may
choose to complain loudly and try to continue as far as they get.

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1, 28759 Bremen, Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>


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