Fix bugs around dhcp4_flag

This commit is contained in:
2020-01-06 15:37:53 -05:00
parent 3816da6be6
commit 096a740c4f
3 changed files with 7 additions and 7 deletions

View File

@ -253,10 +253,6 @@ def add_network(zk_conn, vni, description, nettype,
if nettype == 'managed' and not domain:
domain = '{}.local'.format(description)
# Make sure the DHCP4 flag is always boolean
if dhcp4_flag is None:
dhcp4_flag = False
# Add the new network to Zookeeper
zkhandler.writedata(zk_conn, {
'/networks/{}'.format(vni): description,