summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-04-19 09:32:42 +0700
committerGitHub <noreply@github.com>2019-04-19 09:32:42 +0700
commit4a460b8b67cc21409ed1efd04002cfad2b0cb3a6 (patch)
treee7ed71c252dedc13a6d74c9e33f1730873ac16cc /src
parent87ddd50f55cd80873e295d66803ceb072de6fd74 (diff)
parent31ad6b67e3bc22bc340ba5b4f95cf3dd548e31b9 (diff)
downloadvyos-1x-4a460b8b67cc21409ed1efd04002cfad2b0cb3a6.tar.gz
vyos-1x-4a460b8b67cc21409ed1efd04002cfad2b0cb3a6.zip
Merge pull request #67 from tmarlok88/current
T1343: do not remove zeros DHCP static route
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/dhcp_server.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py
index e8ac1742f..c8ae2fa91 100755
--- a/src/conf_mode/dhcp_server.py
+++ b/src/conf_mode/dhcp_server.py
@@ -572,10 +572,9 @@ def get_config():
# add router bytes
bytes = subnet['static_router'].split('.')
for b in bytes:
- if b != '0':
- string += b
- if b is not bytes[-1]:
- string += ','
+ string += b
+ if b is not bytes[-1]:
+ string += ','
subnet['static_route'] = string