openconfig / public

Repository for publishing OpenConfig models, documentation, and other material for the community.
Apache License 2.0
897 stars 656 forks source link

network-instance module fails pyang validation. #278

Closed li-ch closed 3 months ago

li-ch commented 5 years ago

When I run pyang on network-instance module:

pyang -p ./release/models/ -p ./third_party/ietf/ --plugindir $PYBINDPLUGIN -f pybind -o oc_network_instance.py ./release/models/network-instance/openconfig-network-instance.yang

I got the following error message:

./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:218): warning: node "openconfig-network-instance::type" is not found in "openconfig-network-instance::config"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:264): warning: node "openconfig-network-instance::type" is not found in "openconfig-network-instance::config"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:282): warning: node "openconfig-network-instance::type" is not found in "openconfig-network-instance::config"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:402): warning: node "openconfig-network-instance::type" is not found in "openconfig-network-instance::route-limits"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:620): warning: node "openconfig-network-instance::config" is not found in "openconfig-network-instance::mpls"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:628): warning: node "openconfig-network-instance::config" is not found in "openconfig-network-instance::segment-routing"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:692): warning: node "openconfig-network-instance::config" is not found in "openconfig-network-instance::static-routes"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:703): warning: node "openconfig-network-instance::config" is not found in "openconfig-network-instance::local-aggregates"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:714): warning: node "openconfig-network-instance::config" is not found in "openconfig-network-instance::bgp"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:725): warning: node "openconfig-network-instance::config" is not found in "openconfig-network-instance::ospfv2"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:733): warning: node "openconfig-network-instance::config" is not found in "openconfig-network-instance::isis"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:744): warning: node "openconfig-network-instance::config" is not found in "openconfig-network-instance::pim"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:755): warning: node "openconfig-network-instance::config" is not found in "openconfig-network-instance::igmp"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:775): warning: node "openconfig-network-instance::type" is not found in "openconfig-network-instance::enabled-address-families"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at ./release/models/network-instance/openconfig-network-instance.yang:784): warning: node "openconfig-network-instance::type" is not found in "openconfig-network-instance::mtu"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at release/models/ospf/openconfig-ospfv2-lsdb.yang:2310): warning: node "openconfig-network-instance::state" is not found in "openconfig-network-instance::lsas"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at release/models/ospf/openconfig-ospfv2-lsdb.yang:2318): warning: node "openconfig-network-instance::state" is not found in "openconfig-network-instance::lsas"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at release/models/ospf/openconfig-ospfv2-lsdb.yang:2329): warning: node "openconfig-network-instance::state" is not found in "openconfig-network-instance::lsas"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at release/models/ospf/openconfig-ospfv2-lsdb.yang:2337): warning: node "openconfig-network-instance::state" is not found in "openconfig-network-instance::lsas"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at release/models/ospf/openconfig-ospfv2-lsdb.yang:2345): warning: node "openconfig-network-instance::state" is not found in "openconfig-network-instance::lsas"
./release/models/network-instance/openconfig-network-instance.yang:1160 (at release/models/ospf/openconfig-ospfv2-lsdb.yang:2355): warning: node "openconfig-network-instance::state" is not found in "openconfig-network-instance::lsas"
INFO: encountered (<pyang.error.Position object at 0x113ed6870>, 'XPATH_NODE_NOT_FOUND1', ('openconfig-network-instance', 'type', 'openconfig-network-instance', 'config'))
FATAL: pyangbind cannot build module that pyang has found errors with.
github-actions[bot] commented 4 months ago

This issue is stale because it has been open 180 days with no activity. If you wish to keep this issue active, please remove the stale label or add a comment, otherwise will be closed in 14 days.