Open
Description
Hi John,
I tried Merlin with our IOS-XE components, unfortunately we have the same problem as we hat on magic_carpet. Unfortunately I can´t find the issue anymore here on github. Thats why I wantend to reopen the issue here.
The script errors on step 37 - Store Data with the following error:
2021-05-26T14:33:53: %AETEST-INFO: The result of STEP 37: Store data is => ERRORED
2021-05-26T14:33:53: %AETEST-ERROR: Caught an exception while executing section parse:
2021-05-26T14:33:53: %AETEST-ERROR: Traceback (most recent call last):
2021-05-26T14:33:53: %AETEST-ERROR: File "/home/nouse4it/Scripts/merlin/IOS_XE_merlin.py", line 237, in parse
2021-05-26T14:33:53: %AETEST-ERROR: parsed_output_netjson_json = learned_acl_netjson_json_template.render(to_parse_access_list=self.learned_acl['acls'],device_alias = device.alias)
2021-05-26T14:33:53: %AETEST-ERROR: File "/home/nouse4it/Scripts/merlin/venv_merlin/lib/python3.8/site-packages/jinja2/environment.py", line 1090, in render
2021-05-26T14:33:53: %AETEST-ERROR: self.environment.handle_exception()
2021-05-26T14:33:53: %AETEST-ERROR: File "/home/nouse4it/Scripts/merlin/venv_merlin/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
2021-05-26T14:33:53: %AETEST-ERROR: reraise(*rewrite_traceback_stack(source=source))
2021-05-26T14:33:53: %AETEST-ERROR: File "/home/nouse4it/Scripts/merlin/venv_merlin/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
2021-05-26T14:33:53: %AETEST-ERROR: raise value.with_traceback(tb)
2021-05-26T14:33:53: %AETEST-ERROR: File "templates/cisco/ios_xe/learned_acl_netjson_json.j2", line 21, in top-level template code
2021-05-26T14:33:53: %AETEST-ERROR: "id": "UDP Source Port: {{ to_parse_access_list[list].aces[ace].matches.l4.udp.source_port.operator.port }}"
2021-05-26T14:33:53: %AETEST-ERROR: File "/home/nouse4it/Scripts/merlin/venv_merlin/lib/python3.8/site-packages/jinja2/environment.py", line 471, in getattr
2021-05-26T14:33:53: %AETEST-ERROR: return getattr(obj, attribute)
2021-05-26T14:33:53: %AETEST-ERROR: jinja2.exceptions.UndefinedError: 'genie.ops.base.maker.CmdDict object' has no attribute 'operator'
If I run genie learn acl
against the device from the same testbed everything works fine.
Seems like it´s a problem with j2. template for netjson.
Can you tell me how I can narrow it done, on which ACL it actually fails?
Metadata
Metadata
Assignees
Labels
No labels