summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-08-29 21:26:09 +0200
committerChristian Poessinger <christian@poessinger.com>2018-08-29 21:26:09 +0200
commit37aeb227c346ee52d4fbed91c79cb59774ceb5ae (patch)
tree035a09fb13125581ef6b3cf156c1625df7d0a3dc
parentc2351f4dc49c96b70c060edfe7657da5ac423f5d (diff)
downloadvyos-1x-37aeb227c346ee52d4fbed91c79cb59774ceb5ae.tar.gz
vyos-1x-37aeb227c346ee52d4fbed91c79cb59774ceb5ae.zip
dhcp_server.py: fix KeyError in verify()
-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 3a095b618..8ca72164a 100755
--- a/src/conf_mode/dhcp_server.py
+++ b/src/conf_mode/dhcp_server.py
@@ -677,7 +677,7 @@ def verify(dhcp):
if (len(subnet['range']) == 0):
for mapping in subnet['static_mapping']:
# we need at least one active mapping
- if (not active_mapping) and (not mapping['disable']):
+ if (not active_mapping) and (not mapping['disabled']):
active_mapping = True
else:
active_mapping = True