diff --git a/client-common/network.py b/client-common/network.py index 6be4d7a5..2a9f6629 100644 --- a/client-common/network.py +++ b/client-common/network.py @@ -253,6 +253,10 @@ def add_network(zk_conn, vni, description, nettype, if 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,