summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-10-21 17:25:47 +0000
committerChristian Poessinger <christian@poessinger.com>2021-10-21 19:58:28 +0200
commit28d1f0252a10fe71abc8fdda1509295eeb97ee7c (patch)
tree40a6922bea7a55e05361990321fdb36af9348aa2 /src/conf_mode
parentf04799dfb638567f72ebf6cd9d1d1d5ba614fdb5 (diff)
downloadvyos-1x-28d1f0252a10fe71abc8fdda1509295eeb97ee7c.tar.gz
vyos-1x-28d1f0252a10fe71abc8fdda1509295eeb97ee7c.zip
dhcp-server: T3610: Allow configuration for non-primary ip address
(cherry picked from commit 78cfb949cc6bceab744271cf23f269276b178182)
Diffstat (limited to 'src/conf_mode')
-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 71b71879c..a8cef5ebf 100755
--- a/src/conf_mode/dhcp_server.py
+++ b/src/conf_mode/dhcp_server.py
@@ -232,7 +232,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