From d8dca50af406ebf367ee498e3b05c22fddc141a0 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 24 Jun 2019 12:59:32 -0400 Subject: [PATCH] Ensure domain is always set --- client-common/network.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client-common/network.py b/client-common/network.py index ded97389..3fad1267 100644 --- a/client-common/network.py +++ b/client-common/network.py @@ -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,