robshakir / pyangbind

A plugin for pyang that creates Python bindings for a YANG model.
Other
203 stars 121 forks source link

circular dependency for module #266

Closed TribuneX closed 11 months ago

TribuneX commented 4 years ago

I am trying to generate classes for the yang models provided by Nokia: https://github.com/nokia/7x50_YangModels/tree/db3ffd43852235c9ec453625df3b8ca9ccf3c742

e.g. the nokia-conf.yang

However, I get the following error during code generation:

pyang --plugindir $PYBINDPLUGIN -f pybind -o nokia_conf.py nokia-conf.yang
nokia-conf-aaa.yang:8: warning: imported module "ietf-yang-types" not used
nokia-conf-aps.yang:8: warning: imported module "nokia-types-sros" not used
nokia-conf-bmp.yang:10: error: circular dependency for module "nokia-conf-system"
nokia-conf-bmp.yang:11: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-card.yang:7: warning: imported module "ietf-yang-types" not used
nokia-conf-filter.yang:17: error: circular dependency for module "nokia-conf-log"
nokia-conf-filter.yang:19: error: circular dependency for module "nokia-conf-service"
nokia-conf-groups.yang:12: warning: imported module "nokia-types-cellular" not used
nokia-conf-groups.yang:26: warning: imported module "nokia-types-lldp" not used
nokia-conf-groups.yang:31: warning: imported module "nokia-types-oam" not used
nokia-conf-groups.yang:35: warning: imported module "nokia-types-ptp" not used
nokia-conf-groups.yang:38: warning: imported module "nokia-types-redundancy" not used
nokia-conf-groups.yang:48: warning: imported module "nokia-types-wlan" not used
nokia-conf.yang:202 (at nokia-conf-groups.yang:54113): warning: default value for a key leaf is ignored
nokia-conf.yang:202 (at nokia-conf-groups.yang:67347): warning: default value for a key leaf is ignored
nokia-conf.yang:202 (at nokia-conf-groups.yang:68971): warning: default value for a key leaf is ignored
nokia-conf-ipsec.yang:13: error: circular dependency for module "nokia-conf-aaa"
nokia-conf-ipsec.yang:14: error: circular dependency for module "nokia-conf-system"
nokia-conf-ipsec.yang:15: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-isa-application-assurance-group.yang:7: warning: imported module "ietf-yang-types" not used
nokia-conf-isa-application-assurance-group.yang:9: warning: imported module "nokia-types-application-assurance" not used
nokia-conf-isa-application-assurance-group.yang:10: warning: imported module "nokia-types-isa" not used
nokia-conf-isa-application-assurance-group.yang:11: warning: imported module "nokia-types-sros" not used
nokia-conf-isa.yang:7: warning: imported module "ietf-yang-types" not used
nokia-conf-isa.yang:14: error: circular dependency for module "nokia-conf-aaa"
nokia-conf-lag.yang:15: error: circular dependency for module "nokia-conf-port"
nokia-conf-lag.yang:16: error: circular dependency for module "nokia-conf-service"
nokia-conf-log.yang:13: error: circular dependency for module "nokia-conf-python"
nokia-conf-mcast-mgmt.yang:7: warning: imported module "ietf-yang-types" not used
nokia-conf-multilink-bundle.yang:8: warning: imported module "nokia-types-sros" not used
nokia-conf-oam-pm.yang:7: warning: imported module "ietf-yang-types" not used
nokia-conf.yang:213 (at nokia-conf-openflow.yang:55): warning: default value for a key leaf is ignored
nokia-conf-port-cellular.yang:8: warning: imported module "nokia-types-sros" not used
nokia-conf-port-cellular.yang:11: error: circular dependency for module "nokia-conf-system"
nokia-conf-port-eth-access.yang:13: error: circular dependency for module "nokia-conf-log"
nokia-conf-port-eth-access.yang:14: error: circular dependency for module "nokia-conf-port"
nokia-conf-port-eth-access.yang:16: error: circular dependency for module "nokia-conf-port-ethernet"
nokia-conf-port-eth-dot1x.yang:14: error: circular dependency for module "nokia-conf-system"
nokia-conf-port-eth-network.yang:12: error: circular dependency for module "nokia-conf-log"
nokia-conf-port-ethernet.yang:16: error: circular dependency for module "nokia-conf-log"
nokia-conf-port-sonet.yang:7: warning: imported module "ietf-yang-types" not used
nokia-conf-port-sonet.yang:9: warning: imported module "nokia-types-port" not used
nokia-conf-port-sonet.yang:10: warning: imported module "nokia-types-qos" not used
nokia-conf-port-sonet.yang:11: warning: imported module "nokia-types-sros" not used
nokia-conf-port-sonet.yang:12: warning: imported module "nokia-types-subscriber-mgmt" not used
nokia-conf-port-sonet.yang:15: error: circular dependency for module "nokia-conf-log"
nokia-conf-port-tdm.yang:7: warning: imported module "ietf-yang-types" not used
nokia-conf-port-tdm.yang:9: warning: imported module "nokia-types-port" not used
nokia-conf-port-tdm.yang:10: warning: imported module "nokia-types-qos" not used
nokia-conf-port-tdm.yang:11: warning: imported module "nokia-types-sros" not used
nokia-conf-port-tdm.yang:14: error: circular dependency for module "nokia-conf-log"
nokia-conf-port-wlan.yang:8: warning: imported module "nokia-types-wlan" not used
nokia-conf-pw-port.yang:13: error: circular dependency for module "nokia-conf-service"
nokia-conf-pxc.yang:12: error: circular dependency for module "nokia-conf-port"
nokia-conf-redundancy.yang:15: error: circular dependency for module "nokia-conf-aaa"
nokia-conf-redundancy.yang:16: error: circular dependency for module "nokia-conf-isa"
nokia-conf-redundancy.yang:18: error: circular dependency for module "nokia-conf-port"
nokia-conf-redundancy.yang:20: error: circular dependency for module "nokia-conf-system"
nokia-conf-redundancy.yang:21: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-router-bgp.yang:14: error: circular dependency for module "nokia-conf-system"
nokia-conf-router-bgp.yang:15: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-router-firewall.yang:11: error: circular dependency for module "nokia-conf-isa"
nokia-conf-router-gmpls.yang:8: warning: imported module "nokia-types-mpls" not used
nokia-conf-router-gmpls.yang:9: warning: imported module "nokia-types-sros" not used
nokia-conf-router-gmpls.yang:12: error: circular dependency for module "nokia-conf-router"
nokia-conf-router-gtm.yang:11: error: circular dependency for module "nokia-conf-router"
nokia-conf-router-igmp.yang:15: error: circular dependency for module "nokia-conf-router"
nokia-conf-router-igmp.yang:16: error: circular dependency for module "nokia-conf-service"
nokia-conf-router-isis.yang:16: error: circular dependency for module "nokia-conf-router"
nokia-conf-router-isis.yang:19: error: circular dependency for module "nokia-conf-system"
nokia-conf-router-isis.yang:20: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-router-l2tp.yang:13: error: circular dependency for module "nokia-conf-aaa"
nokia-conf-router-l2tp.yang:15: error: circular dependency for module "nokia-conf-isa"
nokia-conf-router-ldp.yang:9: warning: imported module "nokia-types-services" not used
nokia-conf-router-ldp.yang:14: error: circular dependency for module "nokia-conf-log"
nokia-conf-router-ldp.yang:16: error: circular dependency for module "nokia-conf-router"
nokia-conf-router-ldp.yang:17: error: circular dependency for module "nokia-conf-system"
nokia-conf-router-ldp.yang:18: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-router-lmp.yang:8: warning: imported module "nokia-types-mpls" not used
nokia-conf-router-lmp.yang:9: warning: imported module "nokia-types-sros" not used
nokia-conf-router-mld.yang:15: error: circular dependency for module "nokia-conf-service"
nokia-conf-router-mpls-transport-profile.yang:7: warning: imported module "ietf-yang-types" not used
nokia-conf-router-mpls-transport-profile.yang:9: warning: imported module "nokia-types-mpls" not used
nokia-conf-router-mpls-transport-profile.yang:10: warning: imported module "nokia-types-sros" not used
nokia-conf-router-mpls.yang:7: warning: imported module "ietf-yang-types" not used
nokia-conf-router-mpls.yang:14: error: circular dependency for module "nokia-conf-log"
nokia-conf-router-mpls.yang:16: error: circular dependency for module "nokia-conf-router"
nokia-conf-router-nat.yang:11: error: circular dependency for module "nokia-conf-filter"
nokia-conf-router-nat.yang:13: error: circular dependency for module "nokia-conf-isa"
nokia-conf-router-nat.yang:14: error: circular dependency for module "nokia-conf-service"
nokia-conf-router-ospf.yang:15: error: circular dependency for module "nokia-conf-router"
nokia-conf-router-ospf.yang:17: error: circular dependency for module "nokia-conf-system"
nokia-conf-router-ospf.yang:18: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-router-ospf3.yang:16: error: circular dependency for module "nokia-conf-router"
nokia-conf-router-pim.yang:14: error: circular dependency for module "nokia-conf-service"
nokia-conf-router-radius.yang:12: error: circular dependency for module "nokia-conf-isa"
nokia-conf-router-radius.yang:13: error: circular dependency for module "nokia-conf-python"
nokia-conf-router-rib-api.yang:7: warning: imported module "ietf-yang-types" not used
nokia-conf-router-rib-api.yang:12: error: circular dependency for module "nokia-conf-router"
nokia-conf-router-rsvp.yang:13: error: circular dependency for module "nokia-conf-router"
nokia-conf-router-rsvp.yang:14: error: circular dependency for module "nokia-conf-system"
nokia-conf-router-rsvp.yang:15: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-router-segment-routing.yang:11: error: circular dependency for module "nokia-conf-router"
nokia-conf-router.yang:11: warning: imported module "nokia-types-ipsec" not used
nokia-conf-router.yang:18: error: circular dependency for module "nokia-conf-filter"
nokia-conf-router.yang:21: error: circular dependency for module "nokia-conf-isa"
nokia-conf-router.yang:22: error: circular dependency for module "nokia-conf-log"
nokia-conf-router.yang:25: error: circular dependency for module "nokia-conf-python"
nokia-conf-router.yang:57: error: circular dependency for module "nokia-conf-service"
nokia-conf-router.yang:61: error: circular dependency for module "nokia-conf-system"
nokia-conf-router.yang:62: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-submgt-ancp.yang:12: error: circular dependency for module "nokia-conf-service"
nokia-conf-submgt-gtp.yang:13: error: circular dependency for module "nokia-conf-python"
nokia-conf-submgt-gtp.yang:15: error: circular dependency for module "nokia-conf-subscriber-mgmt"
nokia-conf-submgt-vrgw.yang:10: error: circular dependency for module "nokia-conf-aaa"
nokia-conf-subscriber-mgmt.yang:16: warning: imported module "nokia-types-router" not used
nokia-conf-subscriber-mgmt.yang:21: error: circular dependency for module "nokia-conf-aaa"
nokia-conf-subscriber-mgmt.yang:22: error: circular dependency for module "nokia-conf-filter"
nokia-conf-subscriber-mgmt.yang:24: error: circular dependency for module "nokia-conf-log"
nokia-conf-subscriber-mgmt.yang:28: error: circular dependency for module "nokia-conf-python"
nokia-conf-subscriber-mgmt.yang:30: error: circular dependency for module "nokia-conf-service"
nokia-conf-subscriber-mgmt.yang:40: error: circular dependency for module "nokia-conf-svc-vpls"
nokia-conf-subscriber-mgmt.yang:41: error: circular dependency for module "nokia-conf-system"
nokia-conf-subscriber-mgmt.yang:42: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-svc-apipe.yang:8: warning: imported module "nokia-types-qos" not used
nokia-conf-svc-apipe.yang:9: warning: imported module "nokia-types-services" not used
nokia-conf-svc-apipe.yang:10: warning: imported module "nokia-types-sros" not used
nokia-conf-svc-apipe.yang:14: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-apipe.yang:16: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-cpipe.yang:8: warning: imported module "nokia-types-qos" not used
nokia-conf-svc-cpipe.yang:9: warning: imported module "nokia-types-services" not used
nokia-conf-svc-cpipe.yang:10: warning: imported module "nokia-types-sros" not used
nokia-conf-svc-cpipe.yang:14: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-cpipe.yang:16: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-epipe.yang:16: error: circular dependency for module "nokia-conf-filter"
nokia-conf-svc-epipe.yang:18: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-epipe.yang:21: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-epipe.yang:22: error: circular dependency for module "nokia-conf-svc-vpls"
nokia-conf-svc-epipe.yang:23: error: circular dependency for module "nokia-conf-system"
nokia-conf-svc-epipe.yang:24: error: circular dependency for module "nokia-conf-system-security"
nokia-conf.yang:226 (at nokia-conf-svc-epipe.yang:3363): warning: default value for a key leaf is ignored
nokia-conf-svc-fpipe.yang:8: warning: imported module "nokia-types-qos" not used
nokia-conf-svc-fpipe.yang:9: warning: imported module "nokia-types-services" not used
nokia-conf-svc-fpipe.yang:10: warning: imported module "nokia-types-sros" not used
nokia-conf-svc-fpipe.yang:15: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-fpipe.yang:17: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-ies-grp-if-wlangw.yang:14: error: circular dependency for module "nokia-conf-aaa"
nokia-conf-svc-ies-grp-if-wlangw.yang:16: error: circular dependency for module "nokia-conf-isa"
nokia-conf-svc-ies-grp-if-wlangw.yang:18: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-ies-grp-if-wlangw.yang:24: error: circular dependency for module "nokia-conf-svc-vpls"
nokia-conf-svc-ies-sub-if-wlangw.yang:11: error: circular dependency for module "nokia-conf-isa"
nokia-conf-svc-ies-sub-if.yang:14: error: circular dependency for module "nokia-conf-aaa"
nokia-conf-svc-ies-sub-if.yang:16: error: circular dependency for module "nokia-conf-filter"
nokia-conf-svc-ies-sub-if.yang:19: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-ies-sub-if.yang:22: error: circular dependency for module "nokia-conf-python"
nokia-conf-svc-ies-sub-if.yang:24: error: circular dependency for module "nokia-conf-router"
nokia-conf-svc-ies-sub-if.yang:27: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-ies-sub-if.yang:32: error: circular dependency for module "nokia-conf-svc-ies"
nokia-conf-svc-ies-sub-if.yang:37: error: circular dependency for module "nokia-conf-system"
nokia-conf-svc-ies-sub-if.yang:38: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-svc-ies-vdo-if.yang:11: error: circular dependency for module "nokia-conf-filter"
nokia-conf-svc-ies-vdo-if.yang:13: error: circular dependency for module "nokia-conf-isa"
nokia-conf-svc-ies-vdo-if.yang:15: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-ies-vdo-if.yang:17: error: circular dependency for module "nokia-conf-system"
nokia-conf-svc-ies-vdo-if.yang:18: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-svc-ies.yang:19: error: circular dependency for module "nokia-conf-filter"
nokia-conf-svc-ies.yang:22: error: circular dependency for module "nokia-conf-isa"
nokia-conf-svc-ies.yang:23: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-ies.yang:25: error: circular dependency for module "nokia-conf-python"
nokia-conf-svc-ies.yang:27: error: circular dependency for module "nokia-conf-router"
nokia-conf-svc-ies.yang:30: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-ies.yang:36: error: circular dependency for module "nokia-conf-system"
nokia-conf-svc-ies.yang:37: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-svc-ipipe.yang:8: warning: imported module "nokia-types-eth-cfm" not used
nokia-conf-svc-ipipe.yang:9: warning: imported module "nokia-types-qos" not used
nokia-conf-svc-ipipe.yang:10: warning: imported module "nokia-types-services" not used
nokia-conf-svc-ipipe.yang:11: warning: imported module "nokia-types-sros" not used
nokia-conf-svc-ipipe.yang:17: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-ipipe.yang:19: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-nat.yang:12: error: circular dependency for module "nokia-conf-isa"
nokia-conf-svc-nat.yang:13: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-sdp.yang:12: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-sdp.yang:13: error: circular dependency for module "nokia-conf-router"
nokia-conf-svc-sdp.yang:14: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-vpls.yang:21: error: circular dependency for module "nokia-conf-filter"
nokia-conf-svc-vpls.yang:23: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-vpls.yang:27: error: circular dependency for module "nokia-conf-python"
nokia-conf-svc-vpls.yang:31: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-vpls.yang:34: error: circular dependency for module "nokia-conf-system"
nokia-conf-svc-vpls.yang:35: error: circular dependency for module "nokia-conf-system-security"
nokia-conf.yang:226 (at nokia-conf-svc-vpls.yang:616): warning: default value for a key leaf is ignored
nokia-conf.yang:226 (at nokia-conf-svc-vpls.yang:2537): warning: default value for a key leaf is ignored
nokia-conf-svc-vprn-grp-if-wlangw.yang:14: error: circular dependency for module "nokia-conf-aaa"
nokia-conf-svc-vprn-grp-if-wlangw.yang:16: error: circular dependency for module "nokia-conf-isa"
nokia-conf-svc-vprn-grp-if-wlangw.yang:18: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-vprn-grp-if-wlangw.yang:24: error: circular dependency for module "nokia-conf-svc-vpls"
nokia-conf-svc-vprn-isis.yang:16: error: circular dependency for module "nokia-conf-system"
nokia-conf-svc-vprn-isis.yang:17: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-svc-vprn-ospf.yang:16: error: circular dependency for module "nokia-conf-system"
nokia-conf-svc-vprn-ospf.yang:18: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-svc-vprn-radius.yang:12: error: circular dependency for module "nokia-conf-isa"
nokia-conf-svc-vprn-radius.yang:13: error: circular dependency for module "nokia-conf-python"
nokia-conf-svc-vprn-radius.yang:14: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-vprn-radius.yang:15: error: circular dependency for module "nokia-conf-svc-vprn"
nokia-conf-svc-vprn-ripng.yang:13: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-vprn-ripng.yang:14: error: circular dependency for module "nokia-conf-svc-vprn"
nokia-conf-svc-vprn-sub-if-wlangw.yang:11: error: circular dependency for module "nokia-conf-isa"
nokia-conf-svc-vprn-sub-if.yang:14: error: circular dependency for module "nokia-conf-aaa"
nokia-conf-svc-vprn-sub-if.yang:16: error: circular dependency for module "nokia-conf-filter"
nokia-conf-svc-vprn-sub-if.yang:19: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-vprn-sub-if.yang:22: error: circular dependency for module "nokia-conf-python"
nokia-conf-svc-vprn-sub-if.yang:25: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-vprn-sub-if.yang:30: error: circular dependency for module "nokia-conf-svc-vprn"
nokia-conf-svc-vprn-sub-if.yang:34: error: circular dependency for module "nokia-conf-system"
nokia-conf-svc-vprn-sub-if.yang:35: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-svc-vprn-vdo-if.yang:11: error: circular dependency for module "nokia-conf-filter"
nokia-conf-svc-vprn-vdo-if.yang:13: error: circular dependency for module "nokia-conf-isa"
nokia-conf-svc-vprn-vdo-if.yang:15: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-vprn-vdo-if.yang:17: error: circular dependency for module "nokia-conf-system"
nokia-conf-svc-vprn-vdo-if.yang:18: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-svc-vprn.yang:25: error: circular dependency for module "nokia-conf-aaa"
nokia-conf-svc-vprn.yang:29: error: circular dependency for module "nokia-conf-filter"
nokia-conf-svc-vprn.yang:32: error: circular dependency for module "nokia-conf-isa"
nokia-conf-svc-vprn.yang:33: error: circular dependency for module "nokia-conf-log"
nokia-conf-svc-vprn.yang:38: error: circular dependency for module "nokia-conf-python"
nokia-conf-svc-vprn.yang:41: error: circular dependency for module "nokia-conf-router"
nokia-conf-svc-vprn.yang:44: error: circular dependency for module "nokia-conf-service"
nokia-conf-svc-vprn.yang:61: error: circular dependency for module "nokia-conf-system"
nokia-conf-svc-vprn.yang:62: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-system-ptp.yang:7: warning: imported module "ietf-yang-types" not used
nokia-conf-system-ptp.yang:9: warning: imported module "nokia-types-ptp" not used
nokia-conf-system-ptp.yang:10: warning: imported module "nokia-types-sros" not used
nokia-conf-system-security-aaa.yang:13: error: circular dependency for module "nokia-conf-system"
nokia-conf-system-security-aaa.yang:14: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-system-security-cli-script.yang:10: error: circular dependency for module "nokia-conf-system"
nokia-conf-system-security-cli-script.yang:11: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-system-security-cpm.yang:16: error: circular dependency for module "nokia-conf-filter"
nokia-conf-system-security-cpm.yang:18: error: circular dependency for module "nokia-conf-service"
nokia-conf-system-security-pki.yang:13: error: circular dependency for module "nokia-conf-system"
nokia-conf.yang:229 (at nokia-conf-system-security-snmp.yang:65): warning: default value for a key leaf is ignored
nokia-conf-system-security-tls.yang:11: error: circular dependency for module "nokia-conf-system"
nokia-conf-system-security-tls.yang:12: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-system-security-user-parameters.yang:13: error: circular dependency for module "nokia-conf-system"
nokia-conf-system-security-user-parameters.yang:14: error: circular dependency for module "nokia-conf-system-security"
nokia-conf-system.yang:9: warning: imported module "nokia-types-cellular" not used
INFO: encountered (<pyang.error.Position object at 0x11d325c80>, 'UNUSED_IMPORT', 'ietf-yang-types')
INFO: encountered (<pyang.error.Position object at 0x11d329dc0>, 'UNUSED_IMPORT', 'nokia-types-sros')
INFO: encountered (<pyang.error.Position object at 0x1151fac30>, 'CIRCULAR_DEPENDENCY', ('module', 'nokia-conf-system'))
FATAL: pyangbind cannot build module that pyang has found errors with.

Anybody tried to generate classes from those models yet?

JoseIgnacioTamayo commented 1 year ago

That seems to be rather an error in the YANG modules, not with pyangbind.

Maybe a recent version of the YANG model does not have a dependency loop.

TribuneX commented 1 year ago

True. We found the same issue with other yang tools. It needs to be fixed in the model rather than the tooling.

robshakir commented 1 year ago

In ygot/goyang, we added a flag to the generator to ignore circular dependencies, since this model seemed to still compile like this. The error that pyangbind is throwing here is just reacting to pyang's output -- so something similar could be done here. (It's not necessarily clear that this will make the modules build in all cases.)

JoseIgnacioTamayo commented 11 months ago

@TribuneX , OK to close this issue, as likely the dependency loop would be fixed in the YANG model?