From c43b0aa9b85a93bfc11c5f05db2f7a4089b766c8 Mon Sep 17 00:00:00 2001 From: Alejandro Huertas Date: Fri, 31 May 2019 09:28:47 +0200 Subject: [PATCH] F #3263: fix bug with mac --- src/onedb/fsck/network.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onedb/fsck/network.rb b/src/onedb/fsck/network.rb index 1da2c44f762..8f5eb692f56 100644 --- a/src/onedb/fsck/network.rb +++ b/src/onedb/fsck/network.rb @@ -238,7 +238,7 @@ def calculate_leases(address_range, oid, addrs, p_vnet, p_ar) address_range.at_xpath('SIZE').text.to_i.times do |index| lease = get_lease(oid, addrs[:mac], addrs[:ip], addrs[:ipv6], index) - counters[:vnet][p_vnet][:ar_leases][p_ar][mac] = lease + counters[:vnet][p_vnet][:ar_leases][p_ar][addrs[:mac]] = lease end end