diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-04-26 19:15:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-26 19:15:38 +0200 |
commit | 41152d41a18fc75f91e105a7a85ccc64e67a99c0 (patch) | |
tree | 3f6e470170d5a9b0b6426da2b316b2b58d6a8b31 /src/op_mode/show_dhcpv6.py | |
parent | b6301bfd6a6cb084671fd24970a4a06b10a89d90 (diff) | |
parent | ee4891fe9ad69953c2bab1bf0edc76829b856803 (diff) | |
download | vyos-1x-41152d41a18fc75f91e105a7a85ccc64e67a99c0.tar.gz vyos-1x-41152d41a18fc75f91e105a7a85ccc64e67a99c0.zip |
Merge pull request #819 from DmitriyEshenko/1x-fix-dhcpv6-26042021
dhcpv6-server: T3494: Get address from network to correct sorting
Diffstat (limited to 'src/op_mode/show_dhcpv6.py')
-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]) |