From 90121a7e242137750e1e3046df67de1b7047ec1a Mon Sep 17 00:00:00 2001 From: Yan Xing'an Date: Mon, 13 Mar 2017 23:05:06 -0700 Subject: [PATCH] Fix file exists bug when creating network in devstack. Remove ip addresses before adding an ip address to dev. Change-Id: I43843bc3cfdf8fe7f8db7a2a46a2b569f36e5607 Closes-Bug: #1672243 --- devstack/lib/tacker | 1 + 1 file changed, 1 insertion(+) diff --git a/devstack/lib/tacker b/devstack/lib/tacker index 9fe57da97..60c769f76 100644 --- a/devstack/lib/tacker +++ b/devstack/lib/tacker @@ -388,6 +388,7 @@ function tacker_create_initial_network { echo "Assign ip address to BR_MGMT" sudo ip link set ${BR_MGMT} up + sudo ip -4 address flush dev ${BR_MGMT} sudo ip address add ${NETWORK_GATEWAY_MGMT_IP} dev ${BR_MGMT} }