Hi,
In RFC 7950 we find the following statement If the augmentation adds mandatory nodes (see Section 3) that represent configuration to a target node in another module, the augmentation MUST be made conditional with a "when" statement. Care must be taken when defining the "when" expression so that clients that do not know about the augmenting module do not break. How can we achieve the same if no when-clause can be constructed but we still would like to have a leaf to be mandatory. One way we thought of achieving this is - have a YANG module defining the augmented data - construct a must statement on the object being augmented where we check that something needs to be present that is added via a deviation. A client that knows about the augmented data model would also be aware of the deviation that has been added, a client that does not know about the augmented leafs would also not know about the deviation. So in principle this seems to be a solution. Are there any problems with this approach? Best regards - Vriendelijke groeten, Bart Bogaert Broadband-Access System Architect Data Contact number +32 3 2408310 (+32 477 673952) NOKIA Copernicuslaan 50, 2018 Antwerp, Belgium Fortis 220-0002334-42 VAT BE 0404 621 642 Register of Legal Entities Antwerp << This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited without the prior consent of its author. >>
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
