summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorBin Sun <bins@vmware.com>2018-06-07 11:03:25 +0800
committerBin Sun <bins@vmware.com>2018-06-07 11:05:05 +0800
commit3b93ad7d722930f70c3f70b89c035b5c17d3f63a (patch)
tree4bd16e930279a8977ac82d51716b022f9a2722a4 /docker
parent439dd5d538f23c0c10193f96260925bd153c7516 (diff)
Fix bug for Dynamic Recovery
Change-Id: Ic16d530d20de98b99e77c7d1ddf27afb3a951530 Issue-ID: VFC-791 Signed-off-by: Bin Sun <bins@vmware.com>
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/instance_config.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/instance_config.sh b/docker/instance_config.sh
index 3f566453..3a9f3a03 100755
--- a/docker/instance_config.sh
+++ b/docker/instance_config.sh
@@ -3,6 +3,9 @@
MSB_IP=`echo $MSB_ADDR | cut -d: -f 1`
MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2`
+MR_IP=`echo $MR_ADDR | cut -d: -f 1`
+MR_PORT=`echo $MR_ADDR | cut -d: -f 2`
+
if [ $MSB_IP ]; then
sed -i "s|MSB_SERVICE_IP.*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/nfvo/lcm/lcm/pub/config/config.py
fi
@@ -11,6 +14,14 @@ if [ $MSB_PORT ]; then
sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/nfvo/lcm/lcm/pub/config/config.py
fi
+if [ $MR_IP ]; then
+ sed -i "s|MR_IP.*|MR_IP = '$MR_IP'|" vfc/nfvo/lcm/lcm/pub/config/config.py
+fi
+
+if [ $MR_PORT ]; then
+ sed -i "s|MR_PORT.*|MR_PORT = '$MR_PORT'|" vfc/nfvo/lcm/lcm/pub/config/config.py
+fi
+
if [ $SERVICE_IP ]; then
sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" vfc/nfvo/lcm/lcm/pub/config/config.py
fi