Hi,

We're trying to figure out whether it is possible to define a module in the 
parent schema which would use a node being a leafref to a node in a model under 
a mount point.  I don't seem to find any statement that would prohibit this but 
RFC 8530, referred to from the schema mount RFC, uses a leafref to a node in a 
module which is still in the list of YANG modules of the parent (and 
consequently in the YANG library of the parent).

So, using RFC8530 as example:

Instead of lne:bind-lne-name being a leafref to 
/logical-network-elements/logical-network-element/name we would point to 
/logical-network-elements/logical-network-element/interfaces/interface/name.

The interfaces YANG module is also part of the YANG library of the parent but 
I'm not so sure whether above construction would work well as the information 
related to the mounted YANG modules is in a YANG library different from the 
parent's YANG library.

Note that there is also some confusion with the examples in RFC8530: while the 
bind-lne-name in the YANG module is a leafref as syntax, the examples work with 
a string as syntax for that same leaf.

Best regards, Bart
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to