diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-19 11:32:04 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-09-19 11:32:07 +0200 |
commit | 2985035bcb2f3732e15a41e3c2ee6c6c93a6836e (patch) | |
tree | a02d0cb2a4c07bc14fad313c5130368238032097 /src/conf_mode | |
parent | 59e5b5eb4c0507f9d3831483152a748b58560bfd (diff) | |
download | vyos-1x-2985035bcb2f3732e15a41e3c2ee6c6c93a6836e.tar.gz vyos-1x-2985035bcb2f3732e15a41e3c2ee6c6c93a6836e.zip |
dhcp-server: T3672: re-add missing "name" CLI option
This option is mandatory and must be user configurable as it needs to match
on both sides.
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/dhcp_server.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py index 5b3809017..28f2a4ca5 100755 --- a/src/conf_mode/dhcp_server.py +++ b/src/conf_mode/dhcp_server.py @@ -247,7 +247,7 @@ def verify(dhcp): if not failover_ok: raise ConfigError('DHCP failover must be enabled for at least one subnet!') - for key in ['source_address', 'remote', 'status']: + for key in ['name', 'remote', 'source_address', 'status']: if key not in dhcp['failover']: tmp = key.replace('_', '-') raise ConfigError(f'DHCP failover requires "{tmp}" to be specified!') |