diff options
author | Christian Breunig <christian@breunig.cc> | 2024-09-13 20:31:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 20:31:06 +0200 |
commit | f25f0c1d09cbb3d43685d5630686d143810281b4 (patch) | |
tree | 2b08e9f6e0ad8902fcb43d1f7850bb51c7aec8e6 /src | |
parent | 6c467b1fdc9d2e32d3ea60c15843008f31f98dca (diff) | |
parent | ec8ceb934c9486bedc56a2682830f0d2164b7f24 (diff) | |
download | vyos-1x-f25f0c1d09cbb3d43685d5630686d143810281b4.tar.gz vyos-1x-f25f0c1d09cbb3d43685d5630686d143810281b4.zip |
Merge pull request #4065 from natali-rs1985/T6626-sagitta
op-mode: T6626: Fix for show dhcpv6 server leases
Diffstat (limited to 'src')
-rwxr-xr-x | src/op_mode/dhcp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/dhcp.py b/src/op_mode/dhcp.py index dffd99de5..5a1351431 100755 --- a/src/op_mode/dhcp.py +++ b/src/op_mode/dhcp.py @@ -170,9 +170,9 @@ def _get_formatted_server_leases(raw_data, family='inet'): ipaddr = lease.get('ip') state = lease.get('state') start = lease.get('last_communication') - start = _utc_to_local(start).strftime('%Y/%m/%d %H:%M:%S') + start = _utc_to_local(start).strftime('%Y/%m/%d %H:%M:%S') end = lease.get('end') - end = _utc_to_local(end).strftime('%Y/%m/%d %H:%M:%S') + end = _utc_to_local(end).strftime('%Y/%m/%d %H:%M:%S') if end else '-' remain = lease.get('remaining') lease_type = lease.get('type') pool = lease.get('pool') |