From 7ed4e3b147143c5c9eaff55d01452d66436e7905 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Mon, 18 Apr 2016 12:58:56 +0200 Subject: [PATCH] MT#18723 Add ability to redefine HA shared IP using GRML boot option Change-Id: I6a55f92a260e65516e1266ea37b0decaea8c0b23 --- deployment.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deployment.sh b/deployment.sh index f5d18bd..9559541 100755 --- a/deployment.sh +++ b/deployment.sh @@ -511,6 +511,10 @@ if checkBootParam ngcpip2 ; then IP2=$(getBootParam ngcpip2) fi +if checkBootParam ngcpipshared ; then + IP_HA_SHARED=$(getBootParam ngcpipshared) +fi + if checkBootParam ngcpnetmask ; then INTERNAL_NETMASK=$(getBootParam ngcpnetmask) fi @@ -680,6 +684,7 @@ Control target system: ngcpeiface=... - external interface device (defaults to eth0) ngcpip1=... - IP address of first node ngcpip2=... - IP address of second node + ngcpipshared=... - HA shared IP address ngcpnetmask=... - netmask of ha_int interface ngcpeaddr=... - Cluster IP address @@ -715,6 +720,7 @@ for param in $* ; do *ngcpeaddr=*) EADDR=$(echo $param | sed 's/ngcpeaddr=//');; *ngcpip1=*) IP1=$(echo $param | sed 's/ngcpip1=//');; *ngcpip2=*) IP2=$(echo $param | sed 's/ngcpip2=//');; + *ngcpipshared=*) IP_HA_SHARED=$(echo $param | sed 's/ngcpipshared=//');; *ngcpnetmask=*) INTERNAL_NETMASK=$(echo $param | sed 's/ngcpnetmask=//');; *ngcpextnetmask=*) EXTERNAL_NETMASK=$(echo $param | sed 's/ngcpextnetmask=//');; *ngcpmcast=*) MCASTADDR=$(echo $param | sed 's/ngcpmcast=//');;