diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-03-03 18:15:32 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-03-03 18:15:32 +0100 |
commit | 0e23fc10581cde7b31101990566f59eded826233 (patch) | |
tree | b1fa32fb8c1e06039a92a29e472c358e6def9da8 /python/vyos/ifconfig/interface.py | |
parent | 0a67d4421e9e1de3995a934f7a41c66cd30ecb52 (diff) | |
download | vyos-1x-0e23fc10581cde7b31101990566f59eded826233.tar.gz vyos-1x-0e23fc10581cde7b31101990566f59eded826233.zip |
interface: T4203: switch to new recursive node_changed() implementation
Diffstat (limited to 'python/vyos/ifconfig/interface.py')
-rwxr-xr-x | python/vyos/ifconfig/interface.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index cf1887bf6..8c5ff576e 100755 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -1,4 +1,4 @@ -# Copyright 2019-2021 VyOS maintainers and contributors <maintainers@vyos.io> +# Copyright 2019-2022 VyOS maintainers and contributors <maintainers@vyos.io> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -1250,7 +1250,7 @@ class Interface(Control): # the old lease is released a new one is acquired (T4203). We will # only restart DHCP client if it's option changed, or if it's not # running, but it should be running (e.g. on system startup) - if 'dhcp_options_old' in self._config or not is_systemd_service_active(systemd_service): + if 'dhcp_options_changed' in self._config or not is_systemd_service_active(systemd_service): return self._cmd(f'systemctl restart {systemd_service}') return None else: |