aboutsummaryrefslogtreecommitdiffstats
path: root/mcp
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2017-12-07 07:56:28 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-07 07:56:28 +0000
commita9fbe3c47a680eded71680a4ee3b77b5e82af3c6 (patch)
treed3c1218ae59b46f5e5bcc173de90900021e55468 /mcp
parenta6bc08b2be51b069b629d357a44cfa5979f09c2a (diff)
parenta1c323835f808e6d729c645c8df75a43e51851fe (diff)
Merge "lib.sh: persistent cfg01, mas01 mcpcontrol"
Diffstat (limited to 'mcp')
-rw-r--r--mcp/scripts/lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index 8dd92e1ec..5a69609ba 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -277,9 +277,9 @@ function update_mcpcontrol_network {
local cmac=$(virsh domiflist cfg01 2>&1| awk '/mcpcontrol/ {print $5; exit}')
local amac=$(virsh domiflist mas01 2>&1| awk '/mcpcontrol/ {print $5; exit}')
virsh net-update "mcpcontrol" add ip-dhcp-host \
- "<host mac='${cmac}' name='cfg01' ip='${SALT_MASTER}'/>" --live
+ "<host mac='${cmac}' name='cfg01' ip='${SALT_MASTER}'/>" --live --config
[ -z "${amac}" ] || virsh net-update "mcpcontrol" add ip-dhcp-host \
- "<host mac='${amac}' name='mas01' ip='${MAAS_IP}'/>" --live
+ "<host mac='${amac}' name='mas01' ip='${MAAS_IP}'/>" --live --config
}
function start_vms {