From 4cba45c00c7d31bf71a6fb4b3cf9fabea4bb285a Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 23 Nov 2020 11:30:36 +0100 Subject: vyos.template: fix is_ipv6 Jinja2 filter Commit 6962bc53 ("vyos.template: provide general is_ip(v4|v6) helpers") introduced new Jinja2 template filters, but the one for checking an address if it is an IPv6 address was broken as it was yet unused. --- python/vyos/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/vyos/template.py b/python/vyos/template.py index 58ba75972..7860b581f 100644 --- a/python/vyos/template.py +++ b/python/vyos/template.py @@ -154,7 +154,7 @@ def is_ipv4(text): try: return ip_interface(text).version == 4 except: return False -@register_filter('ipv6') +@register_filter('is_ipv6') def is_ipv6(text): """ Filter IP address, return True on IPv6 address, False otherwise """ from ipaddress import ip_interface -- cgit v1.2.3