From 06ebe8f8cf0ab8fc8c914108f3c10aecf50c5636 Mon Sep 17 00:00:00 2001 From: Michael Prokop <mprokop@sipwise.com> Date: Wed, 17 Oct 2012 20:54:21 +0000 Subject: [PATCH] deployment: store factory settings of network.yml before running ngcp-network, update file on glusterfs share From: Michael Prokop <mprokop@sipwise.com> --- deployment.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deployment.sh b/deployment.sh index f54ef5f..ccfcec9 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1181,6 +1181,8 @@ if "$PRO_EDITION" ; then exit 0 fi + cp /etc/ngcp-config/network.yml /etc/ngcp-config/network.yml.factory_default + ngcp-network --set-interface=lo --set-interface=$DEFAULT_INSTALL_DEV --set-interface=$INTERNAL_DEV ngcp-network --peer=$PEER ngcp-network --host=$PEER --peer=$ROLE --set-interface=lo @@ -1188,6 +1190,8 @@ if "$PRO_EDITION" ; then ngcp-network --move-from=lo --move-to=$INTERNAL_DEV --type=ha_int ngcp-network --set-interface=eth1 --host=$PEER --ip=$DEFAULT_IP2 --netmask=$DEFAULT_INTERNAL_NETMASK --type=ha_int + cp /etc/ngcp-config/network.yml /mnt/glusterfs/shared_config/network.yml + ngcpcfg build EOT fi