Ensure domain is always set
This commit is contained in:
parent
4922e973c7
commit
d8dca50af4
|
@ -580,6 +580,9 @@ def add_network(zk_conn, vni, description, nettype,
|
|||
else:
|
||||
dhcp6_flag = 'False'
|
||||
|
||||
if not domain:
|
||||
domain = '{}.local'.format(description)
|
||||
|
||||
# Add the new network to Zookeeper
|
||||
zkhandler.writedata(zk_conn, {
|
||||
'/networks/{}'.format(vni): description,
|
||||
|
|
Loading…
Reference in New Issue