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
fatal: [sw4.eos]: FAILED! => {"changed": false, "msg": "template error while templating string: no filter named 'version_compare'. String: ! templates/varp_mac_addr.j2\n#jinja2: trim_blocks: False\n#jinja2: lstrip_blocks: False\n\n{# From EOS 4.17 and up, removing the ip virtual-router mac-address #}\n{# is done by setting the addr to 00:00:00:00:00:00. We need to check #}\n{# the version and process the removal of the mac addr appropriately #}\n{% set version = _eos_config | re_search("! device: .\(., EOS-(.*)\)$") %}\n{% set eos_417_up = version.group(1) | version_compare("4.17", ">=") %}\n\n{% if virtual_mac_addr %}\n\nip virtual-router mac-address {{ virtual_mac_addr }}\n\n{% else %}\n {% if eos_417_up %}\n\nip virtual-router mac-address 00:00:00:00:00:00\n\n {% else %}\n\nno ip virtual-router mac-address\n\n {% endif %} # eos_417_up\n\n{% endif %}"}
The text was updated successfully, but these errors were encountered:
➜ ~ ansible --version
ansible 2.9.2
fatal: [sw4.eos]: FAILED! => {"changed": false, "msg": "template error while templating string: no filter named 'version_compare'. String: ! templates/varp_mac_addr.j2\n#jinja2: trim_blocks: False\n#jinja2: lstrip_blocks: False\n\n{# From EOS 4.17 and up, removing the ip virtual-router mac-address #}\n{# is done by setting the addr to 00:00:00:00:00:00. We need to check #}\n{# the version and process the removal of the mac addr appropriately #}\n{% set version = _eos_config | re_search("! device: .\(., EOS-(.*)\)$") %}\n{% set eos_417_up = version.group(1) | version_compare("4.17", ">=") %}\n\n{% if virtual_mac_addr %}\n\nip virtual-router mac-address {{ virtual_mac_addr }}\n\n{% else %}\n {% if eos_417_up %}\n\nip virtual-router mac-address 00:00:00:00:00:00\n\n {% else %}\n\nno ip virtual-router mac-address\n\n {% endif %} # eos_417_up\n\n{% endif %}"}
The text was updated successfully, but these errors were encountered: