diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-07-03 13:10:50 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-07-03 13:10:51 +0200 |
commit | 5d9a89a522079eeb3d86cafc480b37f0616e4658 (patch) | |
tree | bd94aa495500a9b837d4365a4b6f4ee4caa99e18 /interface-definitions/service_console-server.xml.in | |
parent | 3395cefd5af205ab45b2db9269bbb4daa10ba7df (diff) | |
download | vyos-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/service_console-server.xml.in')
0 files changed, 0 insertions, 0 deletions