Re: [netmod] Adveritzing submodule in

2020-10-20 Thread Juergen Schoenwaelder
On Tue, Oct 20, 2020 at 04:28:45PM +0200, Martin Björklund wrote:
> Hi,
> 
> Ram Polisetty Subbaiah  wrote:
> > Thanks Martin,
> > 
> > One more follow up question:
> > 
> > If in case both Client and Server are compatible only with Yang 1.0,
> > how client/server are supposed to
> > handle capabilities advertisement for submodules? By any chance is it
> > a limitation in 1.0?
> 
> If the module uses include-by-revision (which it should ;-) then both
> sides know which revisions of the submodules a given revision of the
> module refers to.
> 
> In any case, a server that implements YANG 1 can implement YANG
> library revision 2016-06-21, which includes info about the submodules.
>

Perhaps a bit of extra information: The  exchange can get very
long on systems that support many modules and not every client needs
the complete module list every time a connection is (re-)established.
This is why the recommendation is to use the YANG library wherever
possible, it scales better than the orignal  exchange design
and it is more flexible.

/js

-- 
Juergen Schoenwaelder   Jacobs University Bremen gGmbH
Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103 

___
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod


Re: [netmod] Adveritzing submodule in

2020-10-20 Thread Martin Björklund
Hi,

Ram Polisetty Subbaiah  wrote:
> Thanks Martin,
> 
> One more follow up question:
> 
> If in case both Client and Server are compatible only with Yang 1.0,
> how client/server are supposed to
> handle capabilities advertisement for submodules? By any chance is it
> a limitation in 1.0?

If the module uses include-by-revision (which it should ;-) then both
sides know which revisions of the submodules a given revision of the
module refers to.

In any case, a server that implements YANG 1 can implement YANG
library revision 2016-06-21, which includes info about the submodules.


/martin




> 
> Thanks,
> Ram
> 
> On 20/10/20, 7:34 PM, "Martin Björklund"
> mailto:mbj+i...@4668.se>> wrote:
> 
> [External Email. Be cautious of content]
> 
> 
> Ram Polisetty Subbaiah
> mailto:ramas=40juniper@dmarc.ietf.org>>
> wrote:
> Hi,
> 
> As per RFC 6020:
> 
> ===
> https://urldefense.com/v3/__https://tools.ietf.org/html/rfc6020*section-5.6.4.1__;Iw!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAk4tCUc3Q$
> Modules
> Servers indicate the names of supported modules via the 
> message.  Module namespaces are encoded as the base URI in the
> capability string, and the module name is encoded as the "module"
> parameter to the base URI.
> 
> A server MUST advertise all revisions of all modules it implements.
> 
> For example, this  message advertises one module "syslog".
> 
> 
>   
> 
> https://urldefense.com/v3/__http://example.com/syslog?module=syslogrevision=2008-04-01__;!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAmPyrVZPQ$
>   
> 
> ===
> 
> My question is, if there are some submodules, should server advertise
> the submodules also in ?
> 
> No.
> 
> Note that module advertisement is done through YANG library in YANG
> 1.1 (RFC 7950).  Submodules are present in the YANG library (RFC
> 8525).
> 
> 
> /martin
> 
> 
> If so, what is the defined format for advertising the same?
> 
> Thanks,
> Ram
> 
> 
> Juniper Business Use Only
> ___
> netmod mailing list
> netmod@ietf.org
> https://urldefense.com/v3/__https://www.ietf.org/mailman/listinfo/netmod__;!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAlL7Ma5-A$
> 
> 
> 
> Juniper Business Use Only

___
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod


Re: [netmod] Adveritzing submodule in

2020-10-20 Thread Ram Polisetty Subbaiah
Thanks Martin,

One more follow up question:

If in case both Client and Server are compatible only with Yang 1.0, how 
client/server are supposed to
handle capabilities advertisement for submodules? By any chance is it a 
limitation in 1.0?

Thanks,
Ram

On 20/10/20, 7:34 PM, "Martin Björklund" 
mailto:mbj+i...@4668.se>> wrote:

[External Email. Be cautious of content]


Ram Polisetty Subbaiah 
mailto:ramas=40juniper@dmarc.ietf.org>> 
wrote:
Hi,

As per RFC 6020:

===
https://urldefense.com/v3/__https://tools.ietf.org/html/rfc6020*section-5.6.4.1__;Iw!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAk4tCUc3Q$
Modules
Servers indicate the names of supported modules via the 
message.  Module namespaces are encoded as the base URI in the
capability string, and the module name is encoded as the "module"
parameter to the base URI.

A server MUST advertise all revisions of all modules it implements.

For example, this  message advertises one module "syslog".


  

https://urldefense.com/v3/__http://example.com/syslog?module=syslogrevision=2008-04-01__;!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAmPyrVZPQ$
  

===

My question is, if there are some submodules, should server advertise
the submodules also in ?

No.

Note that module advertisement is done through YANG library in YANG
1.1 (RFC 7950).  Submodules are present in the YANG library (RFC
8525).


/martin


If so, what is the defined format for advertising the same?

Thanks,
Ram


Juniper Business Use Only
___
netmod mailing list
netmod@ietf.org
https://urldefense.com/v3/__https://www.ietf.org/mailman/listinfo/netmod__;!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAlL7Ma5-A$



Juniper Business Use Only
___
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod


Re: [netmod] Adveritzing submodule in

2020-10-20 Thread Martin Björklund
Ram Polisetty Subbaiah  wrote:
> Hi,
> 
> As per RFC 6020:
> 
> ===
> https://tools.ietf.org/html/rfc6020#section-5.6.4.1   Modules
>Servers indicate the names of supported modules via the 
>message.  Module namespaces are encoded as the base URI in the
>capability string, and the module name is encoded as the "module"
>parameter to the base URI.
> 
>A server MUST advertise all revisions of all modules it implements.
> 
>For example, this  message advertises one module "syslog".
> 
>
>  
>http://example.com/syslog?module=syslogrevision=2008-04-01
>  
>
> ===
> 
> My question is, if there are some submodules, should server advertise
> the submodules also in ?

No.

Note that module advertisement is done through YANG library in YANG
1.1 (RFC 7950).  Submodules are present in the YANG library (RFC
8525).


/martin


> If so, what is the defined format for advertising the same?
> 
> Thanks,
> Ram
> 
> 
> Juniper Business Use Only
> ___
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod

___
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod


[netmod] Adveritzing submodule in

2020-10-20 Thread Ram Polisetty Subbaiah
Hi,

As per RFC 6020:

===
https://tools.ietf.org/html/rfc6020#section-5.6.4.1   Modules
   Servers indicate the names of supported modules via the 
   message.  Module namespaces are encoded as the base URI in the
   capability string, and the module name is encoded as the "module"
   parameter to the base URI.

   A server MUST advertise all revisions of all modules it implements.

   For example, this  message advertises one module "syslog".

   
 
   http://example.com/syslog?module=syslogrevision=2008-04-01
 
   
===

My question is, if there are some submodules, should server advertise
the submodules also in ?
If so, what is the defined format for advertising the same?

Thanks,
Ram


Juniper Business Use Only
___
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod