Ensure domain is always set

This commit is contained in:
Joshua Boniface 2019-06-24 12:59:32 -04:00
parent 4922e973c7
commit d8dca50af4
1 changed files with 3 additions and 0 deletions

View File

@ -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,