summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-10-21 17:25:47 +0000
committerViacheslav <v.gletenko@vyos.io>2021-10-21 17:25:47 +0000
commit78cfb949cc6bceab744271cf23f269276b178182 (patch)
treeb1841d7729ef783b35dec1c784a95abec9a25201
parentc3a65c60cfc854113a9af371f37fba6eb71ad05e (diff)
downloadvyos-1x-78cfb949cc6bceab744271cf23f269276b178182.tar.gz
vyos-1x-78cfb949cc6bceab744271cf23f269276b178182.zip
dhcp-server: T3610: Allow configuration for non-primary ip address
-rwxr-xr-xsrc/conf_mode/dhcp_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py
index 28f2a4ca5..28e40f1eb 100755
--- a/src/conf_mode/dhcp_server.py
+++ b/src/conf_mode/dhcp_server.py
@@ -226,7 +226,7 @@ def verify(dhcp):
# There must be one subnet connected to a listen interface.
# This only counts if the network itself is not disabled!
if 'disable' not in network_config:
- if is_subnet_connected(subnet, primary=True):
+ if is_subnet_connected(subnet, primary=False):
listen_ok = True
# Subnets must be non overlapping