[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Enumerated INTEGER - start with zero or one (0 or 1) ?



There are two examples I fell upon lately - still not RFCs, but in a relative advanced phase. One is the ARC MIB TC (in disman) IANAItuProbableCauseOrZero which takes the IANAItuProbableCause from the Alarm MIB, and appends to it a value of zero for the cases not covered in the enumeration. The second is the PaeControlledDirections TC in the 802.1X MIB (see bridge). This document is the replica of an IEEE MIB, and the IEEE folks did not follow the RFC2578 recommendation. 

Are these reasons good? I donno.

Dan


> -----Original Message-----
> From: C. M. Heard [mailto:heard@pobox.com]
> Sent: Thursday, January 02, 2003 1:45 AM
> To: Mreview (E-mail)
> Subject: RE: Enumerated INTEGER - start with zero or one (0 or 1) ?
> 
> 
> On Wed, 1 Jan 2003, Wijnen, Bert (Bert) wrote:
> 
> > basically OK with me... although I would rather have a reference
> > to an example in an RFC than in an I-D.
> 
> Does anyone on the list know of such a reference?  What I want is
> an RFC that contains a definition using an enumerated integer with
> values that don't start at 1 and/or are non-contiguous for a "good
> reason".  The example I cited was this TC from "Syslog Device
> Configuration MIB", <draft-ietf-syslog-device-mib-01.txt> ...
> 
> SyslogSeverity  ::=  TEXTUAL-CONVENTION
>     STATUS  current
>     DESCRIPTION
>         "This textual convention maps out to the severity levels
>          of syslog messages.  The syslog protocol uses the values
>          0 (emergency), to 7 (debug)."
>     SYNTAX  INTEGER {
>                       emergency(0),
>                       alert(1),
>                       critical(2),
>                       error(3),
>                       warning(4),
>                       notice(5),
>                       info(6),
>                       debug(7)
>                     }
> 
> Something similar a published document is what I want.  Either an
> object definition or a TC would be OK.
> 
> //cmh
> 
> 
>