Fix missed zkhandler conversion

This commit is contained in:
Joshua Boniface 2021-06-01 11:53:33 -04:00
parent 6beea0693c
commit 8f66a8d00e
1 changed files with 1 additions and 6 deletions

View File

@ -388,12 +388,7 @@ add rule inet filter forward ip6 saddr {netaddr6} counter jump {vxlannic}-out
if reservation not in old_reservations_list:
# Add new reservation file
filename = '{}/{}'.format(self.dnsmasq_hostsdir, reservation)
ipaddr = self.zkhandler.readdata(
'/networks/{}/dhcp4_reservations/{}/ipaddr'.format(
self.vni,
reservation
)
)
ipaddr = self.zkhandler.read('/networks/{}/dhcp4_reservations/{}/ipaddr'.format(self.vni, reservation))
entry = '{},{}'.format(reservation, ipaddr)
# Write the entry
with open(filename, 'w') as outfile: