From 16368f155cfce0797eebdbe88cc0f6ed8cb1b38c Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Thu, 30 Nov 2023 12:31:10 +0000 Subject: [PATCH] add filters --- extensions/ext_ansible_netcommon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/ext_ansible_netcommon.py b/extensions/ext_ansible_netcommon.py index 5eeecdd..a30a836 100644 --- a/extensions/ext_ansible_netcommon.py +++ b/extensions/ext_ansible_netcommon.py @@ -43,6 +43,8 @@ def __init__(self, environment): environment.filters[p + 'slaac'] = slaac environment.filters[p + 'hwaddr'] = hwaddr environment.filters[p + 'macaddr'] = macaddr + + for p in ('', 'ansible.netcommon.'): environment.filters[p + 'vlan_expander'] = vlan_expander environment.filters[p + 'vlan_parser'] = vlan_parser