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: if reservation not in old_reservations_list:
# Add new reservation file # Add new reservation file
filename = '{}/{}'.format(self.dnsmasq_hostsdir, reservation) filename = '{}/{}'.format(self.dnsmasq_hostsdir, reservation)
ipaddr = self.zkhandler.readdata( ipaddr = self.zkhandler.read('/networks/{}/dhcp4_reservations/{}/ipaddr'.format(self.vni, reservation))
'/networks/{}/dhcp4_reservations/{}/ipaddr'.format(
self.vni,
reservation
)
)
entry = '{},{}'.format(reservation, ipaddr) entry = '{},{}'.format(reservation, ipaddr)
# Write the entry # Write the entry
with open(filename, 'w') as outfile: with open(filename, 'w') as outfile: