diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-03-10 09:10:12 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-03-10 09:10:12 +0000 |
commit | 77448e1d5ece6244beeb7f92bd37d24a18259ac2 (patch) | |
tree | e33f4ff5bea218b31720e74fd579bbe9af427249 /src/op_mode/zone.py | |
parent | fe4da6288649b32779d30d5672e39cae40e72100 (diff) | |
download | vyos-1x-77448e1d5ece6244beeb7f92bd37d24a18259ac2.tar.gz vyos-1x-77448e1d5ece6244beeb7f92bd37d24a18259ac2.zip |
T4973: DHCP server fix output for long leases
With long lease time for example lease '4294967295' seconds
it is impossible to get end lease as value is 'ends never;'
It cause error to get timestamp() from 'ends never' and remaining
time 'lease.end - datetime.utcnow()'
Set default remaining and end lease to '-' if we cannot get this
info
Diffstat (limited to 'src/op_mode/zone.py')
0 files changed, 0 insertions, 0 deletions