MT#9837 Listen web_ext/web_int on localhost by default (necessary for system-tests)

We cannot test web services avialability if they listen eth0 only,
so we have to continue listening localhost (which is fine from 
security point of view) to be able to connect nginx/ngcp-panel.

In this case ngcp-system-tests will be fine.

Change-Id: Ia4097461d03be51221c1f622018a7974f3984b44
changes/53/453/2
Alexander Lutay 11 years ago
parent 2d577141a6
commit dc40b24078

@ -1758,8 +1758,9 @@ elif "$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=$EXTERNAL_DEV --type=web_ext \
ngcp-network --host=$THIS_HOST --move-from=lo --move-to=$EXTERNAL_DEV \
--type=sip_ext --type=rtp_ext --type=mon_ext
ngcp-network --host=$THIS_HOST --set-interface=$EXTERNAL_DEV --type=web_ext
ngcp-network --host=$PEER --peer=$THIS_HOST
ngcp-network --host=$PEER --set-interface=$EXTERNAL_DEV --shared-ip=none --shared-ipv6=none
@ -1777,7 +1778,7 @@ elif "$PRO_EDITION" ; then
# needed to make sure MySQL setup is OK for first node until second node is set up
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 --role=rtp --role=db
ngcp-network --host=$PEER --set-interface=lo --type=sip_int --type=web_int --type=aux_ext
ngcp-network --host=$PEER --set-interface=lo --type=sip_int --type=web_int --type=web_ext --type=aux_ext
# version >= mr3.5, previous versions has no dbnode option
ngcp-network --host=$PEER --dbnode=2 || true

Loading…
Cancel
Save