RE: [YANG] new pyang errors

"Bert Wijnen" <bertietf@bwijnen.net> Fri, 25 January 2008 12:05 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 1JINIs-000510-3Y; Fri, 25 Jan 2008 07:05:02 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JINIr-00050m-4o for yang-confirm+ok@megatron.ietf.org; Fri, 25 Jan 2008 07:05:01 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JINIq-00050c-Px for yang@ietf.org; Fri, 25 Jan 2008 07:05:00 -0500
Received: from relay.versatel.net ([62.250.3.110]) by chiedprmail1.ietf.org with smtp (Exim 4.43) id 1JINIq-0004Hm-2d for yang@ietf.org; Fri, 25 Jan 2008 07:05:00 -0500
Received: (qmail 11005 invoked from network); 25 Jan 2008 12:04:57 -0000
Received: from unknown (HELO bwMedion) (87.215.199.34) by relay.versatel.net with SMTP; 25 Jan 2008 12:04:57 -0000
From: "Bert Wijnen" <bertietf@bwijnen.net>
To: "Balazs Lengyel" <balazs.lengyel@ericsson.com>, "Ladislav Lhotka" <lhotka@cesnet.cz>
Subject: RE: [YANG] new pyang errors
Date: Fri, 25 Jan 2008 13:05:00 +0100
Message-ID: <NIEJLKBACMDODCGLGOCNEEOMEFAA.bertietf@bwijnen.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
In-Reply-To: <4799C5BA.5020606@ericsson.com>
Importance: Normal
X-Spam-Score: 0.0 (/)
X-Scan-Signature: a7d2e37451f7f22841e3b6f40c67db0f
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

Inline

Bert Wijnen 

> -----Oorspronkelijk bericht-----
> Van: Balazs Lengyel [mailto:balazs.lengyel@ericsson.com]
> Verzonden: vrijdag 25 januari 2008 12:19
> Aan: Ladislav Lhotka
> CC: yang@ietf.org
> Onderwerp: Re: [YANG] new pyang errors
> 
> 
> Mandatory in YANG means mandatory to configure.
> Today YANG considers all mandatory and optional elements 
> mandatory to implement.
> 

OK, I like that. Can you make that statement explicit in the
draft, so everyone understands the intention.

> 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.

In some MIB modules we actually have pretty good MODULE-COMPLIANCE
statements that try to make it clear which objects must be implemented
and what their minimum implementation needs to support. Such MIB modules
often have multiple such module-compliance statements if that makes
sense for different environments. 

Other MIB modules just have one big MODULE-COMPLIANCE statement that
- requires to implement all objects
- but leaves it open to the implementation to implement them
  read-only or read-write. 
Supposedly that can be reported by the agent via a AGENT-CAPABILITIES,
(in which one can also report deviations) which results in an OID 
that one can store in the sysOrTable and so a manager can pick up the 
compliance that an agent claims and then supposedly can read the
AGENT-CAPABILITIES statement and so it can determine (in machine
readable form) what exactly is supported by the agent.

Well, at least that was/is the theory.

But other than during early SNMP interoperability tests in the mid-1990s
I have never seen it used much (if at all). 
So we should learn from this and think hard before we fall into the
same trap of designing mechanisms that no-one uses.

Bert
> (We could start using mustImplement or 
> something similar as a term for 
> mandatory to implement.)
> 
> 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
> 
> -- 
> Balazs Lengyel                       Ericsson Hungary Ltd.
> TSP System Manager
> ECN: 831 7320                        Fax: +36 1 4377792
> Tel: +36-1-437-7320     email: Balazs.Lengyel@ericsson.com
> 
> 
> _______________________________________________
> YANG mailing list
> YANG@ietf.org
> https://www1.ietf.org/mailman/listinfo/yang
> 



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