diff options
author | tmarlok88 <tmarlok@gmail.com> | 2019-04-18 16:25:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-18 16:25:38 +0200 |
commit | 31ad6b67e3bc22bc340ba5b4f95cf3dd548e31b9 (patch) | |
tree | 313ec700b5ddb0e74643cad1b7bfbc62e875a690 /src/conf_mode/dhcp_server.py | |
parent | d748e526ca50f3acb98ec511fab977c4b044aea8 (diff) | |
download | vyos-1x-31ad6b67e3bc22bc340ba5b4f95cf3dd548e31b9.tar.gz vyos-1x-31ad6b67e3bc22bc340ba5b4f95cf3dd548e31b9.zip |
T1343: do not remove zeros DHCP static route
Diffstat (limited to 'src/conf_mode/dhcp_server.py')
-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 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 |