diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-04-26 09:40:47 +0000 |
---|---|---|
committer | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2021-04-26 09:40:47 +0000 |
commit | ee4891fe9ad69953c2bab1bf0edc76829b856803 (patch) | |
tree | 3f6e470170d5a9b0b6426da2b316b2b58d6a8b31 | |
parent | b6301bfd6a6cb084671fd24970a4a06b10a89d90 (diff) | |
download | vyos-1x-ee4891fe9ad69953c2bab1bf0edc76829b856803.tar.gz vyos-1x-ee4891fe9ad69953c2bab1bf0edc76829b856803.zip |
dhcpv6-server: T3494: Get address from network to correct sorting
-rwxr-xr-x | src/op_mode/show_dhcpv6.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/show_dhcpv6.py b/src/op_mode/show_dhcpv6.py index ac211fb0a..f70f04298 100755 --- a/src/op_mode/show_dhcpv6.py +++ b/src/op_mode/show_dhcpv6.py @@ -139,7 +139,7 @@ def get_leases(config, leases, state, pool=None, sort='ip'): # apply output/display sort if sort == 'ip': - leases = sorted(leases, key = lambda k: int(ip_address(k['ip']))) + leases = sorted(leases, key = lambda k: int(ip_address(k['ip'].split('/')[0]))) else: leases = sorted(leases, key = lambda k: k[sort]) |