You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
container interfaces {
description
"Interface parameters.";
list interface {
key "name";
...
container interfaces-state {
config false;
status deprecated;
description
"Data nodes for the operational state of interfaces.";
list interface {
key "name";
status deprecated;
The text was updated successfully, but these errors were encountered:
Issue description
proto_generator incorrectly processes IETF interfaces YANG model and generates duplicate InterfaceKey message at top-level ietf_interfaces.proto.
Steps to reproduce:
Launch proto_generator as follows:
proto_generator -output_dir=./proto -package_hierarchy=true ietf-interfaces@2018-02-20.yang ietf-arp@2019-11-04.yang
Obtain unexpected duplicate InterfaceKey message in generation result in ./proto/openconfig/ietf_interfaces/ietf_interfaces.proto
Expected result
Expected result is that InterfaceKey is not duplicated.
proto_generator works as expected with nested messages (without -package_hierarchy=true).
Supplementary information
Contents of ietf-interfaces@2018-02-20.yang
The text was updated successfully, but these errors were encountered: