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
When a YANG file imports another module with a revision date but a newer revision is available in the YANG repository then pyangbind raises a RuntimeError. This is easily reproducible with some trivial YANG files:
(venv)% pyang --plugindir $PYBINDPLUGIN -f pybind -o binding.py [email protected]
Traceback (most recent call last):
File "/Users/anjohnso/Development/cirrus/cirrus-bundles/venv2/bin/pyang", line 580, in <module>
run()
File "/Users/anjohnso/Development/cirrus/cirrus-bundles/venv2/bin/pyang", line 549, in run
emit_obj.emit(ctx, modules, fd)
File "/Users/anjohnso/Development/cirrus/cirrus-bundles/venv2/lib/python3.10/site-packages/pyangbind/plugin/pybind.py", line 222, in emit
build_pybind(ctx, modules, fd)
File "/Users/anjohnso/Development/cirrus/cirrus-bundles/venv2/lib/python3.10/site-packages/pyangbind/plugin/pybind.py", line 406, in build_pybind
build_identities(ctx, defn['identity'])
File "/Users/anjohnso/Development/cirrus/cirrus-bundles/venv2/lib/python3.10/site-packages/pyangbind/plugin/pybind.py", line 446, in build_identities
idstore.build_store_from_definitions(ctx, defnd)
File "/Users/anjohnso/Development/cirrus/cirrus-bundles/venv2/lib/python3.10/site-packages/pyangbind/helpers/identity.py", line 75, in build_store_from_definitions
mod_ref_prefixes = module_import_prefixes(ctx)
File "/Users/anjohnso/Development/cirrus/cirrus-bundles/venv2/lib/python3.10/site-packages/pyangbind/helpers/misc.py", line 24, in module_import_prefixes
for mod in ctx.modules:
RuntimeError: dictionary changed size during iteration
(venv)%
When a YANG file imports another module with a revision date but a newer revision is available in the YANG repository then pyangbind raises a RuntimeError. This is easily reproducible with some trivial YANG files:
[email protected]
[email protected]
[email protected]
The text was updated successfully, but these errors were encountered: