Don't set a domain except on managed networks

This commit is contained in:
Joshua Boniface 2020-01-06 15:06:00 -05:00
parent 65be917542
commit 3816da6be6
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ def add_network(zk_conn, vni, description, nettype,
else:
dhcp6_flag = 'False'
if not domain:
if nettype == 'managed' and not domain:
domain = '{}.local'.format(description)
# Make sure the DHCP4 flag is always boolean