Open SlavomirMazurPantheon opened 4 years ago
Hi @SlavomirMazurPantheon ,
I wanted to reproduce the errors with the example you attached, but _parse_features_string(feature_name)
on line 68 was not defined. Can you tell me where is the implementation of _parse_features_string()
, or can you provide it?
Hello @fredgan,
I'm sorry, I forgot to include it in the minimal, reproducible example. Here is the implementation of the method:
def _parse_features_string(feature_str):
if feature_str.find(':') == -1:
return (feature_str, [])
[module_name, rest] = feature_str.split(':', 1)
if rest == '':
return (module_name, [])
features = rest.split(',')
return (module_name, features)
Hello,
after a few hundreds of use of pyang parser call, which uses the IETF plugin, we get the following maximum recursion depth error:
Workaround for now was to reset the state of the variables in statements.py after each use of the pyang parser.
Minimal, reproducible example:
NOTE: I manually decreased recursion limit for test purposes, because it would take longer for the error to occur (but it would occur anyway)