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" 
<[email protected]<mailto:[email protected]>> wrote:

[External Email. Be cautious of content]


Ram Polisetty Subbaiah 
<[email protected]<mailto:[email protected]>> 
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$<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 <hello>
    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 <hello> message advertises one module "syslog".

    <hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
      <capability>
        
https://urldefense.com/v3/__http://example.com/syslog?module=syslog&amp;revision=2008-04-01__;!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAmPyrVZPQ$<https://urldefense.com/v3/__http:/example.com/syslog?module=syslog&amp;revision=2008-04-01__;!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAmPyrVZPQ$>
      </capability>
    </hello>
===

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

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
[email protected]<mailto:[email protected]>
https://urldefense.com/v3/__https://www.ietf.org/mailman/listinfo/netmod__;!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAlL7Ma5-A$<https://urldefense.com/v3/__https:/www.ietf.org/mailman/listinfo/netmod__;!!NEt6yMaO-gk!ViE3k69OOP_eUBbCYJQj30wOp5eFP5wV5Bex288dxmJ2T--9Z1TTLAlL7Ma5-A$>



Juniper Business Use Only
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to