diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-16 12:14:56 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-16 12:14:56 +0200 |
commit | 039e323d7e46f7d8244c42794f713a0bfecbe2d3 (patch) | |
tree | a7e3e29f7f110cbf2adccd717eca9d09c8c1eb0b /python | |
parent | cb014d8818a864512680f57953d6f21ad5467e59 (diff) | |
download | vyos-1x-039e323d7e46f7d8244c42794f713a0bfecbe2d3.tar.gz vyos-1x-039e323d7e46f7d8244c42794f713a0bfecbe2d3.zip |
dhcp(v6)-client: T4353: fix Jinja2 linting errors
Diffstat (limited to 'python')
-rwxr-xr-x | python/vyos/ifconfig/interface.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index 6b0f08fd4..2345457dd 100755 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -1243,8 +1243,8 @@ class Interface(Control): tmp = {'dhcp_options' : { 'host_name' : hostname}} self._config = dict_merge(tmp, self._config) - render(options_file, 'dhcp-client/daemon-options.tmpl', self._config) - render(config_file, 'dhcp-client/ipv4.tmpl', self._config) + render(options_file, 'dhcp-client/daemon-options.j2', self._config) + render(config_file, 'dhcp-client/ipv4.j2', self._config) # When the DHCP client is restarted a brief outage will occur, as # the old lease is released a new one is acquired (T4203). We will @@ -1274,8 +1274,7 @@ class Interface(Control): systemd_service = f'dhcp6c@{ifname}.service' if enable and 'disable' not in self._config: - render(config_file, 'dhcp-client/ipv6.tmpl', - self._config) + render(config_file, 'dhcp-client/ipv6.j2', self._config) # We must ignore any return codes. This is required to enable # DHCPv6-PD for interfaces which are yet not up and running. |