From a1c323835f808e6d729c645c8df75a43e51851fe Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Mon, 27 Nov 2017 23:03:29 +0100 Subject: lib.sh: persistent cfg01, mas01 mcpcontrol cfg01, mas01 DHCP leases in mcpcontrol virtual network should be persistent (if cfg01 IP changes, minions can't find Salt Master). Change-Id: I497207ebe1537af94fd92de12491664d17ad3144 Signed-off-by: Alexandru Avadanii --- mcp/scripts/lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh index c6d5d26ce..93ee59d0b 100644 --- a/mcp/scripts/lib.sh +++ b/mcp/scripts/lib.sh @@ -144,9 +144,9 @@ function update_mcpcontrol_network { # shellcheck disable=SC2155 local amac=$(virsh domiflist mas01 2>&1| awk '/mcpcontrol/ {print $5; exit}') virsh net-update "mcpcontrol" add ip-dhcp-host \ - "" --live + "" --live --config [ -z "${amac}" ] || virsh net-update "mcpcontrol" add ip-dhcp-host \ - "" --live + "" --live --config } function start_vms { -- cgit 1.2.3-korg