From a6b75e03c1dae8d0929ccc5b4fc15169e9bd6814 Mon Sep 17 00:00:00 2001 From: Michael Prokop <mprokop@sipwise.com> Date: Tue, 11 Dec 2012 16:27:26 +0000 Subject: [PATCH] deployment: *_ext types should be assigned to ethX instead of lo interface Testing: https://bugtracker.sipwise.com/view.php?id=2487 From: Michael Prokop <mprokop@sipwise.com> --- deployment.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/deployment.sh b/deployment.sh index be2c6ac..6de39d4 100755 --- a/deployment.sh +++ b/deployment.sh @@ -1276,6 +1276,9 @@ if "$PRO_EDITION" ; then ngcp-network --host=$THIS_HOST --peer=$PEER ngcp-network --host=$THIS_HOST --move-from=lo --move-to=$INTERNAL_DEV --type=ha_int + # set *_ext types accordingly for PRO setup + ngcp-network --host=$THIS_HOST --move-from=lo --move-to=$INTERNAL_DEV --type=web_ext \ + --type=sip_ext --type=rtp_ext --type=ssh_ext --type=mon_ext ngcp-network --host=$PEER --peer=$THIS_HOST ngcp-network --host=$PEER --set-interface=lo --shared-ip=none --shared-ipv6=none @@ -1285,8 +1288,7 @@ if "$PRO_EDITION" ; then ngcp-network --host=$PEER --set-interface=$INTERNAL_DEV --ip=$IP2 --netmask=$DEFAULT_INTERNAL_NETMASK --type=ha_int ngcp-network --host=$PEER --role=proxy --role=lb --role=mgmt - ngcp-network --host=$PEER --set-interface=lo --type=sip_int --type=web_ext --type=sip_ext \ - --type=rtp_ext --type=ssh_ext --type=mon_ext --type=web_int + ngcp-network --host=$PEER --set-interface=lo --type=sip_int --type=web_int cp /etc/ngcp-config/network.yml /mnt/glusterfs/shared_config/network.yml @@ -1299,6 +1301,9 @@ if "$PRO_EDITION" ; then # finalize the --ip=$IP2 from previous run on first node ngcp-network --host=$THIS_HOST --set-interface=$INTERNAL_DEV --ip=auto --netmask=auto --hwaddr=auto --type=ha_int + # set *_ext types accordingly for PRO setup + ngcp-network --host=$THIS_HOST --set-interface=$INTERNAL_DEV --type=web_ext --type=sip_ext \ + --type=rtp_ext --type=ssh_ext --type=mon_ext ngcpcfg commit "deployed /etc/ngcp-config/network.yml on $ROLE" ngcpcfg push --shared-only