|
|
|
|
@ -1280,6 +1280,10 @@ if "$PRO_EDITION" ; then
|
|
|
|
|
ngcp-network --host=$PEER --peer=$THIS_HOST
|
|
|
|
|
ngcp-network --host=$PEER --set-interface=lo --shared-ip=none --shared-ipv6=none
|
|
|
|
|
ngcp-network --host=$PEER --set-interface=lo --ipv6='::1' --ip=auto --netmask=auto --hwaddr=auto
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
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
|
|
|
|
|
@ -1292,7 +1296,10 @@ if "$PRO_EDITION" ; then
|
|
|
|
|
else # ROLE = sp2
|
|
|
|
|
ngcpcfg pull
|
|
|
|
|
ngcp-network --host=$THIS_HOST --set-interface=$DEFAULT_INSTALL_DEV --ip=auto --netmask=auto --hwaddr=auto
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
ngcpcfg commit "deployed /etc/ngcp-config/network.yml on $ROLE"
|
|
|
|
|
ngcpcfg push --shared-only
|
|
|
|
|
ssh-keyscan $PEER >> ~/.ssh/known_hosts
|
|
|
|
|
|