Re: [IPFIX] WGLC for draft-ietf-ipfix-text-adt-00.txt

Brian Trammell <[email protected]> Tue, 28 Jan 2014 16:47:31 +0100
Newsgroups gmane.ietf.ipfix
Message-ID <[email protected]>
Hi Andrew, Paul,

I’ll answer this one first since it’s easy. :)

On 28 Jan 2014, at 16:05, Andrew Feren <[email protected]> wrote:

> Hi all,
> 
> On 01/28/2014 09:33 AM, Paul Aitken wrote:
>> Dear all,
>> 
>> Here's a review of draft-ietf-ipfix-text-adt-00.
>> 
>> P.
>> 
>> 
> [ snip ]
>>> 4.5.  boolean
>>> 
>>>    If the Enclosing Context defines a representation for boolean values,
>>>    that representation SHOULD be used.
>>> 
>>>    Otherwise, a true boolean value should be represented with the
>>>    literal string 1, and a false boolean value with the literal string
>>>    0.  In ABNF:
>>> 
>>>    boolean-yes = "1"
>>> 
>>>    boolean-no = "0"
>>> 
>>>    boolean = boolean-yes / boolean-no
>> 
>> Why 1/0 rather than true/false or yes/no ?

Internationalization, mainly. 

> Also why the departure from 1 for true and 2 for false in RFC 7011.

Because these are just wrong. I know we inherited them from SNMP. They were wrong there too.

In a textual format, which humans might have occasion to read and write, requiring “2” to mean “false” is just _asking_ for confusion, much more so than departing from the binary encoding of IPFIX.

Cheers,

Brian

> "
> 6.1.5.  boolean
> 
>    The boolean data type is specified according to the TruthValue in
>    [RFC2579].  It is encoded as a single-octet integer per
>    Section 6.1.1, with the value 1 for true and value 2 for false.
>    Every other value is undefined."
> 
> 1 and 2 aren't what I would have picked, but changing it up here only seems to create potential confusion.
> 
> As for why not true/false, I'm all in favor of a single encoding, but we already have IEs where 'Possible values are: { "yes", "y", 1 }, { "no", "n", 2 } and { "unassigned", "u", 0 }.'  (As an aside does anyone know why so many options anyways?)
> 
> -Andrew

_______________________________________________
IPFIX mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/ipfix
signature.asc (application/pgp-signature, 496 B)
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJS59ETAAoJENt3nsOmbNJcMBEH/3f4r38hxCBah5PiaVXNkmyg
/ZjkdANVsxXNb2PW5q1RReVdpdxI9JC3uRQtVNYiTfdjJZ0vVq7Y6KpvByHJn/8L
8fuY3KBfAnBp5maGSo32HLUy60wagCDj3nI++Y2vMiEhJAwdkSUxSGLMBATEVvP9
H7FIpakbuj5ghQtADRSXfpMU6+WSen3O4pBuAQH/BTD8pEOMuNH/tgdMZtciCChd
xBGvmz/i+e+03SMpbDAt47L9N5+20NypYjhgIMn+03MxomTIxjDwFGwmFsoufwbh
0YN+m0QvrYTT8oqMzkscGgjJVGHQ0vaAxhtPVorKHXV98LJmY90jomudDHgERfY=
=HbYR
-----END PGP SIGNATURE-----