Vojtech Vilimek <[email protected]> writes:

> Hi,
>
> On 5/23/26 9:38 AM, Ladislav Lhotka wrote:
>> Hi,
>> 
>> Vojtech Vilimek<[email protected]> writes:
>> 
>>> Dear netmod WG,
>>>
>>> Let's say I am implementing a server, the server consists of two
>>> components from different vendors, first vendor has module A,
>>> second has module B. Both of them depend on a module D but
>>> vendor with module A depends on newer revision of D.
>>>
>>>     A -> D@2
>>>     B -> D@1
>>>
>>> (The module D is import-only, otherwise this does not work.)
>>>
>>> Is following YANG Library valid, does it describe this situation?
>
>> It is valid, multiple revisions of the same import-only module may coexist 
>> in a module set. That's why the "import-only-module" list has name & 
>> revision as its key.
>> 
>> Lada
>> 
>
> Is is possible to decode this information from a YANG Library?
>
> By the information is meant what implemented module depends on what
> import-only module.

These dependencies are specified in the importing modules. In your example,
module A should import D with revision 2 and B with revision 1.

A complete example using two revisions of the ietf-inet-types module is here:

https://yangson.labs.nic.cz/examples.html#example-3

Lada

>
> Best regards,
> Vojtech Vilimek
>

-- 
Ladislav Lhotka <[email protected]>
PGP Key ID: 0xB8F92B08A9F76C67

_______________________________________________
netmod mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to