Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread Jürgen Schönwälder
On Wed, Sep 15, 2021 at 01:01:11AM +0200, Carsten Bormann wrote: > > If BBF already > > defined to use -1, so be it. > > That works for me and is consistent with the information model in 9046. > > What I find not so great is the side effect of going from uint16 to int32. > > I don’t see a big di

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread Carsten Bormann
On 14. Sep 2021, at 21:16, Jürgen Schönwälder wrote: > > Carsten, > > whatever you do, you will at the end need an extra bit. Sure. There are 65537 values, so you need at least 16.22 bits :-) > If BBF already > defined to use -1, so be it. That works for me and is consistent with the in

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread Mahesh Jethanandani
A related question. > On Sep 14, 2021, at 12:31 PM, Mahesh Jethanandani > wrote: > > Hi Martin, > >> On Sep 14, 2021, at 11:17 AM, Martin Björklund > > wrote: >> >> Mahesh Jethanandani > > wrote: >>> Hi Juergen, >>> On Sep 14, 202

Re: [netmod] Revision-labels within filenames

2021-09-14 Thread Joe Clarke (jclarke)
> I wasn't thinking of a URL to get the revision-label, I was more thinking of > a URL to identify the source YANG file for a particular revision. > > E.g., in the YANG packages examples: > > https://datatracker.ietf.org/doc/html/draft-ietf-netmod-yang-packages#appendix-A > > Ideally, I would like

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread Mahesh Jethanandani
Hi Martin, > On Sep 14, 2021, at 11:17 AM, Martin Björklund wrote: > > Mahesh Jethanandani > wrote: >> Hi Juergen, >> >>> On Sep 14, 2021, at 10:17 AM, Jürgen Schönwälder >>> wrote: >>> >>> On Tue, Sep 14, 2021 at 01:51:36PM +, STARK, BARBARA H wrote: >>>

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread Jürgen Schönwälder
Carsten, whatever you do, you will at the end need an extra bit. If BBF already defined to use -1, so be it. The alternative is to not instantiate the leaf if there is no value and to accept that a client can't tell the difference between 'there is no value' and 'the value has been suppressed by

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread Carsten Bormann
On 14. Sep 2021, at 19:17, Jürgen Schönwälder wrote: > > If other data models use an extended integer range and -1 to indicate > a special case, then this may be a strong reason to do the same in the > IETF YANG data model. Any data model based on FORTRAN certainly will do. Most other data mode

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread Martin Björklund
Mahesh Jethanandani wrote: > Hi Juergen, > > > On Sep 14, 2021, at 10:17 AM, Jürgen Schönwälder > > wrote: > > > > On Tue, Sep 14, 2021 at 01:51:36PM +, STARK, BARBARA H wrote: > > > >> As I mentioned, BBF TR-181 uses int with range -1:65535 with -1 > >> meaning NULL. So I certainly

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread Acee Lindem (acee)
All, From: netmod on behalf of Mahesh Jethanandani Date: Tuesday, September 14, 2021 at 1:38 PM To: Juergen Schoenwaelder Cc: Babel at IETF , "STARK, BARBARA H" , "netmod@ietf.org" Subject: Re: [netmod] [babel] NULL value for uint16 Hi Juergen, On Sep 14, 2021, at 10:17 AM, Jürgen Schönwä

Re: [netmod] Revision-labels within filenames

2021-09-14 Thread Rob Wilton (rwilton)
Hi Kent, It was the YANG package definitions that I had in mind. More details in the response that I have just sent back to Joe. Regards, Rob > -Original Message- > From: Kent Watsen > Sent: 14 September 2021 18:19 > To: Joe Clarke (jclarke) > Cc: Rob Wilton (rwilton) ; netmod@ietf.

Re: [netmod] Revision-labels within filenames

2021-09-14 Thread Rob Wilton (rwilton)
> -Original Message- > From: Joe Clarke (jclarke) > Sent: 14 September 2021 17:57 > To: Rob Wilton (rwilton) ; netmod@ietf.org > Subject: Re: Revision-labels within filenames > > On 9/14/21 12:01, Rob Wilton (rwilton) wrote: > > Hi Joe, > > > > Sorry, I was on PTO for the meeting where

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread Mahesh Jethanandani
Hi Juergen, > On Sep 14, 2021, at 10:17 AM, Jürgen Schönwälder > wrote: > > On Tue, Sep 14, 2021 at 01:51:36PM +, STARK, BARBARA H wrote: > >> As I mentioned, BBF TR-181 uses int with range -1:65535 with -1 >> meaning NULL. So I certainly have no issue with that approach. The langua

Re: [netmod] Revision-labels within filenames

2021-09-14 Thread Kent Watsen
>> Sorry, I was on PTO for the meeting where this was discussed. I don't think >> that it is great that the character needs to be encoded in a URL. How often are YANG module names in URLs? A website for downloading modules would reference modules by URL but, as Joe said, the encoding would

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread Jürgen Schönwälder
On Tue, Sep 14, 2021 at 01:51:36PM +, STARK, BARBARA H wrote: > As I mentioned, BBF TR-181 uses int with range-1:65535 with -1 > meaning NULL. So I certainly have no issue with that approach. The language > in RFC9046 was intended to make sure this approach was allowed, since this is

Re: [netmod] yang-instance-file include-defaults leaf

2021-09-14 Thread Andy Bierman
Hi, I do not have time for a conference on this leaf. You think this cut-and-paste is good engineering and not confusing to users. I disagree. IMO it is less confusing to use the correct typedef and declare in your leaf description-stmt that the inclusion of defaults is not considered a retrieval

Re: [netmod] Revision-labels within filenames

2021-09-14 Thread Joe Clarke (jclarke)
On 9/14/21 12:01, Rob Wilton (rwilton) wrote: > Hi Joe, > > Sorry, I was on PTO for the meeting where this was discussed. I don't think > that it is great that the character needs to be encoded in a URL. It would > seem to make references to YANG files in YANG packages a lot more awkward to >

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread tom petch
From: STARK, BARBARA H Sent: 14 September 2021 14:51 > I seem to be coming into this discussion in the middle, so I hope I'm > understanding where things are. Comments in-line. > > > Hi Mahesh, > > > > management interface usually do not change protocol semantics (for the > > simple reason that

Re: [netmod] Revision-labels within filenames

2021-09-14 Thread Rob Wilton (rwilton)
Hi Joe, Sorry, I was on PTO for the meeting where this was discussed. I don't think that it is great that the character needs to be encoded in a URL. It would seem to make references to YANG files in YANG packages a lot more awkward to read/write. Perhaps reusing '@' is pragmatically the bes

[netmod] Revision-labels within filenames

2021-09-14 Thread Joe Clarke (jclarke)
Carsten raised a point at the mic at IETF111 that the chosen character '#' to separate the module name and module revision-label in filenames is problematic. Currently, the YANG module versioning draft says that if you want to use revision-label within the filename, you use MODULE_NAME#REVISION_LA

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread STARK, BARBARA H
> I seem to be coming into this discussion in the middle, so I hope I'm > understanding where things are. Comments in-line. > > > Hi Mahesh, > > > > management interface usually do not change protocol semantics (for the > > simple reason that protocol engines do not necessarily know which > > m

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread Juliusz Chroboczek
>> the Babel RFC makes it clear that 0 is a valid value that must not be >> confused with NULL. This is true for both seqnos and metrics. A route with metric 0 is perfectly valid, and in fact the value 0 is the default for a directly connected prefix. -- Juliusz

Re: [netmod] [babel] NULL value for uint16

2021-09-14 Thread tom petch
rom: netmod on behalf of STARK, BARBARA H Sent: 13 September 2021 21:59 I seem to be coming into this discussion in the middle, so I hope I'm understanding where things are. Comments in-line. > Hi Mahesh, > > management interface usually do not change protocol semantics (for the > simple reas