Re: [YANG] errors

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Thu, 24 January 2008 19:41 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 1JI7xP-0005gJ-O0; Thu, 24 Jan 2008 14:41:51 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JI7xP-0005fs-Cu for yang-confirm+ok@megatron.ietf.org; Thu, 24 Jan 2008 14:41:51 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JI7xP-0005fk-1s for yang@ietf.org; Thu, 24 Jan 2008 14:41:51 -0500
Received: from hermes.jacobs-university.de ([212.201.44.23]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JI7xO-00018T-Lx for yang@ietf.org; Thu, 24 Jan 2008 14:41:50 -0500
Received: from localhost (demetrius.jacobs-university.de [212.201.44.32]) by hermes.jacobs-university.de (Postfix) with ESMTP id 11DC68A330; Thu, 24 Jan 2008 20:41:50 +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 23945-07; Thu, 24 Jan 2008 20:41:45 +0100 (CET)
Received: from elstar.local (elstar.iuhb02.iu-bremen.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 4E0028A32D; Thu, 24 Jan 2008 20:41:45 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 6406648A0A4; Thu, 24 Jan 2008 20:41:43 +0100 (CET)
Date: Thu, 24 Jan 2008 20:41:43 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Andy Bierman <ietf@andybierman.com>
Subject: Re: [YANG] errors
Message-ID: <20080124194143.GC16515@elstar.local>
Mail-Followup-To: Andy Bierman <ietf@andybierman.com>, Martin Bjorklund <mbj@tail-f.com>, yang@ietf.org
References: <20080124.153853.210376606.mbj@tail-f.com> <4798BFCD.3000706@andybierman.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4798BFCD.3000706@andybierman.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 Thu, Jan 24, 2008 at 08:41:49AM -0800, Andy Bierman wrote:

> What if the DM writer wants to raise an existing standard error?
> Does there need to be a standard module for the NETCONF errors,
> added as an appendix?

Yes. And I think it would be also nice if standard NETCONF operations
could be defined in YANG itself; would be a nice proof of concept.  (I
know the unfortunate attribute usage in edit-config - so this might be
the only thing we need to handle in the DESCRIPTION clause.)

> Notably missing from the error-stmt is definition of any error-info data.
> An open issue is whether there is some simple mechanism for defining
> error-info, other than full-blown data-def-stmt, to define error leafs.
> (E.g., lock-denied has the <session-id> of the current lock owner.)
> If not, then I would rather leave it out.

Correct, this is needed. I think error-info is actually not much
different from in and out parameters where we also use standard YANG
constructs.

/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