summaryrefslogtreecommitdiff
path: root/interface-definitions/interfaces-pseudo-ethernet.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-03 13:10:50 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-03 13:10:51 +0200
commit5d9a89a522079eeb3d86cafc480b37f0616e4658 (patch)
treebd94aa495500a9b837d4365a4b6f4ee4caa99e18 /interface-definitions/interfaces-pseudo-ethernet.xml.in
parent3395cefd5af205ab45b2db9269bbb4daa10ba7df (diff)
downloadvyos-1x-5d9a89a522079eeb3d86cafc480b37f0616e4658.tar.gz
vyos-1x-5d9a89a522079eeb3d86cafc480b37f0616e4658.zip
vyos.template: T2676: add custom Jinja2 filter for IP handling
NTP configuration file requires the IP address and a netmask for client subnets but the CLI will only provide a prefix based ntoation. Use custom, reusable JInja2 template to transform a CIDR based prefix into its address and netmask portion for IPv4 and IPv6. Jinja2 custom filters are regular python functions - thus they can be re-used directly when e.g. verifying the configuration in vyos-smoketests.
Diffstat (limited to 'interface-definitions/interfaces-pseudo-ethernet.xml.in')
0 files changed, 0 insertions, 0 deletions