Re: [YANG] new pyang errors

Ladislav Lhotka <lhotka@cesnet.cz> Fri, 25 January 2008 11:55 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 1JIN9K-0003t5-6B; Fri, 25 Jan 2008 06:55:10 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JIN9J-0003sq-HC for yang-confirm+ok@megatron.ietf.org; Fri, 25 Jan 2008 06:55:09 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JIN9J-0003si-7a for yang@ietf.org; Fri, 25 Jan 2008 06:55:09 -0500
Received: from office2.cesnet.cz ([195.113.144.244]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JIN9I-0003pC-M8 for yang@ietf.org; Fri, 25 Jan 2008 06:55:09 -0500
Received: from [172.29.2.201] (asus-gx.lhotka.cesnet.cz [195.113.161.161]) by office2.cesnet.cz (Postfix) with ESMTP id 6BE10D800C4; Fri, 25 Jan 2008 12:55:08 +0100 (CET)
Subject: Re: [YANG] new pyang errors
From: Ladislav Lhotka <lhotka@cesnet.cz>
To: Balazs Lengyel <balazs.lengyel@ericsson.com>
In-Reply-To: <4799C5BA.5020606@ericsson.com>
References: <200801250614.m0P6EJwJ036835@idle.juniper.net> <1201256406.24635.82.camel@missotis> <4799C5BA.5020606@ericsson.com>
Content-Type: text/plain; charset=utf-8
Organization: CESNET
Date: Fri, 25 Jan 2008 12:55:08 +0100
Message-Id: <1201262108.24635.124.camel@missotis>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.1
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 244a2fd369eaf00ce6820a760a3de2e8
Cc: yang@ietf.org
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 Balasz,

Balazs Lengyel píše v Pá 25. 01. 2008 v 12:19 +0100:
> Mandatory in YANG means mandatory to configure.
> Today YANG considers all mandatory and optional elements mandatory to implement.
> 
> Later we will probably define a conformance mechanism, then YANG will be able to say:
> 
> module foo defines 100 leafs and these 85 are mandatory to implement and the rest is optional.
> 
> We consider this conformance mechanism to belong to step to in the DML. AFAIK it is not really 
> used in SNMP either. (We could start using mustImplement or something similar as a term for 
> mandatory to implement.)

I guess it's actually one of the differences between the SNMP and XML
worlds. Validity of an XML document means conformance to a schema.

Lada

> 
> Balazs
> 
> Ladislav Lhotka wrote:
> > Phil Shafer píše v Pá 25. 01. 2008 v 01:14 -0500:
> >> "Randy Presuhn" writes:
> >>> In the SNMP/SMI worlds, the "optionality" Ladislav refers to is
> >>> handled by conformance statements, rather than the model per se.
> >> Ah so maybe the confusion is "mandatory to implement" versus
> >> "mandatory to configure".  YANG's mandatory statement is the latter.
> > 
> > Oh yes, this is the Pudels Kern :-) I am sorry I wasn't able to express
> > myself so concisely. However, I still think Sec. 7.6.4 in the YANG draft
> > can be understood as "mandatory to implement": >>If "mandatory" is
> > "true", the node must exist in a valid configuration if its parent node
> > exists.<< I guess it's again due to the different meanings of validity.
> > 
> > Lada
> > 
> >> YANG has no conformance mechanism.  Whether it appears in YANG-2.0,
> >> I can't predict, but I'm hoping we can make base models that devices
> >> can implement, with augmentations for additional config.
> >>
> >> Thanks,
> >>  Phil
> >>
> >>
> >> _______________________________________________
> >> YANG mailing list
> >> YANG@ietf.org
> >> https://www1.ietf.org/mailman/listinfo/yang
> 
-- 
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C



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