Closed lyckety closed 3 years ago
I believe the issue here is that ygot merges all the modules contents into a single fake root, causing the two labels to conflict. This means ygot currently imposes a more restrictive requirement than YANG, where uniqueness has to be ensured across all modules' top-levels instead of just within a module.
One way to solve the issue, and is often used by OpenConfig, would be to put everything within each module inside a container, in this case "lag" and "port". They would cause ygot to generate another layer of hierarchy that avoids the conflict.
Thank you for your quick response and recommendation.
It would be nice if, when generating fakeroot in the future, it would be possible to solve this problem using an additional parameter. For example, in my case, structures with the names "PortLabel", "LagLabel" were created in fakeroot
Good day! I have a device that supports configuration via netconf. Yang-files look like this:
switch.yang
port.yang
lag.yang
When trying to generate go structures with fakeroot using this command:
i get an error:
How can I solve this problem? Thanks!