'How to deviate a leaf to container in Yang?

Vice versa would work as well. I looked in RFC#6020 but cannot think of how to do this. The container contains 4 leaves. I was planning to do a deviate replace, but am unable to figure out how the container could be added.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source