diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-02-15 17:03:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-15 17:03:06 +0100 |
commit | 40bf0d3ff0789378fc208a14437390a8135a7c76 (patch) | |
tree | f504fa32043139ded8e91c553efb6162d39d72e5 /src | |
parent | 3ecdcc69401bddaa4b07fe024da149d6edb5da2d (diff) | |
parent | 81add08137357b82aa8228491635c9a25f4b1800 (diff) | |
download | vyos-1x-40bf0d3ff0789378fc208a14437390a8135a7c76.tar.gz vyos-1x-40bf0d3ff0789378fc208a14437390a8135a7c76.zip |
Merge pull request #1222 from DmitriyEshenko/eq-1x-15022022
dhcpv6-server: T3494: Get address from network to correct sorting
Diffstat (limited to 'src')
-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]) |