Fix missed zkhandler conversion
This commit is contained in:
parent
6beea0693c
commit
8f66a8d00e
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue