diff options
author | tmarlok88 <tmarlok@gmail.com> | 2019-04-18 16:25:38 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-04-21 13:32:34 +0200 |
commit | c20762cdbf28828083fcc5c323380a259182d704 (patch) | |
tree | a1fe4476eaf51b2f4c3fcc9ac8ba78cf92b4cfd6 /src | |
parent | 476aa4c3a561ea0ef0bf9b4c26ec8b78d18a5d02 (diff) | |
download | vyos-1x-c20762cdbf28828083fcc5c323380a259182d704.tar.gz vyos-1x-c20762cdbf28828083fcc5c323380a259182d704.zip |
T1343: do not remove zeros DHCP static route
(cherry picked from commit 31ad6b67e3bc22bc340ba5b4f95cf3dd548e31b9)
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/dhcp_server.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py index 239c44076..ba0749b97 100755 --- a/src/conf_mode/dhcp_server.py +++ b/src/conf_mode/dhcp_server.py @@ -570,10 +570,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 |