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:
|
else:
|
||||||
dhcp6_flag = 'False'
|
dhcp6_flag = 'False'
|
||||||
|
|
||||||
|
if not domain:
|
||||||
|
domain = '{}.local'.format(description)
|
||||||
|
|
||||||
# Add the new network to Zookeeper
|
# Add the new network to Zookeeper
|
||||||
zkhandler.writedata(zk_conn, {
|
zkhandler.writedata(zk_conn, {
|
||||||
'/networks/{}'.format(vni): description,
|
'/networks/{}'.format(vni): description,
|
||||||
|
|
Loading…
Reference in New Issue