Blame SOURCES/aliyun-vpc-move-ip-4-bundled.patch

b4b3ce
diff -uNr a/heartbeat/aliyun-vpc-move-ip b/heartbeat/aliyun-vpc-move-ip
b4b3ce
--- a/heartbeat/aliyun-vpc-move-ip	2018-08-03 15:21:34.869664678 +0200
b4b3ce
+++ b/heartbeat/aliyun-vpc-move-ip	2018-08-03 15:22:48.632185198 +0200
b4b3ce
@@ -36,13 +36,13 @@
b4b3ce
 			ip_drop
b4b3ce
 		fi
b4b3ce
 
b4b3ce
-		cmd="aliyuncli vpc CreateRouteEntry --RouteTableId $OCF_RESKEY_routing_table --DestinationCidrBlock ${OCF_RESKEY_address}/32 --NextHopId $ECS_INSTANCE_ID --NextHopType Instance --output text"
b4b3ce
+		cmd="aliyuncli-ra vpc CreateRouteEntry --RouteTableId $OCF_RESKEY_routing_table --DestinationCidrBlock ${OCF_RESKEY_address}/32 --NextHopId $ECS_INSTANCE_ID --NextHopType Instance --output text"
b4b3ce
 		ocf_log debug "executing command: $cmd"
b4b3ce
 		$cmd
b4b3ce
 		rc=$?
b4b3ce
 		while [ $rc -ne 0 ]; do
b4b3ce
 			sleep 1
b4b3ce
-			cmd="aliyuncli vpc CreateRouteEntry --RouteTableId $OCF_RESKEY_routing_table --DestinationCidrBlock ${OCF_RESKEY_address}/32 --NextHopId $ECS_INSTANCE_ID --NextHopType Instance --output text"
b4b3ce
+			cmd="aliyuncli-ra vpc CreateRouteEntry --RouteTableId $OCF_RESKEY_routing_table --DestinationCidrBlock ${OCF_RESKEY_address}/32 --NextHopId $ECS_INSTANCE_ID --NextHopType Instance --output text"
b4b3ce
 			ocf_log debug "executing command: $cmd"
b4b3ce
 			$cmd
b4b3ce
 			rc=$?
b4b3ce
@@ -75,7 +75,7 @@
b4b3ce
 		return $OCF_ERR_GENERIC
b4b3ce
 	fi
b4b3ce
 
b4b3ce
-	cmd="aliyuncli vpc DeleteRouteEntry --RouteTableId $OCF_RESKEY_routing_table --DestinationCidrBlock ${OCF_RESKEY_address}/32 --NextHopId $ROUTE_TO_INSTANCE --output text"
b4b3ce
+	cmd="aliyuncli-ra vpc DeleteRouteEntry --RouteTableId $OCF_RESKEY_routing_table --DestinationCidrBlock ${OCF_RESKEY_address}/32 --NextHopId $ROUTE_TO_INSTANCE --output text"
b4b3ce
 	ocf_log debug "executing command: $cmd"
b4b3ce
 	$cmd
b4b3ce
 	if [ $? -ne 0 ]; then
b4b3ce
@@ -90,13 +90,13 @@
b4b3ce
 }
b4b3ce
 
b4b3ce
 wait_for_started() {
b4b3ce
-	cmd="aliyuncli vpc DescribeRouteTables --RouteTableId $OCF_RESKEY_routing_table --output text"
b4b3ce
+	cmd="aliyuncli-ra vpc DescribeRouteTables --RouteTableId $OCF_RESKEY_routing_table --output text"
b4b3ce
 	ocf_log debug "executing command: $cmd"
b4b3ce
 	ROUTE_TO_INSTANCE="$($cmd | grep $OCF_RESKEY_address | awk '{ print $3 }')"
b4b3ce
 
b4b3ce
 	while [ "$ECS_INSTANCE_ID" != "$ROUTE_TO_INSTANCE" ]; do
b4b3ce
 		sleep 3
b4b3ce
-		cmd="aliyuncli vpc DescribeRouteTables --RouteTableId $OCF_RESKEY_routing_table --output text"
b4b3ce
+		cmd="aliyuncli-ra vpc DescribeRouteTables --RouteTableId $OCF_RESKEY_routing_table --output text"
b4b3ce
 		ocf_log debug "executing command: $cmd"
b4b3ce
 		ROUTE_TO_INSTANCE="$($cmd | grep $OCF_RESKEY_address | awk '{ print $3 }')"
b4b3ce
 	done
b4b3ce
@@ -107,7 +107,7 @@
b4b3ce
 
b4b3ce
 	 while [ ! -z "$ROUTE_TO_INSTANCE" ]; do
b4b3ce
 		sleep 1
b4b3ce
-		cmd="aliyuncli vpc DescribeRouteTables --RouteTableId $OCF_RESKEY_routing_table --output text"
b4b3ce
+		cmd="aliyuncli-ra vpc DescribeRouteTables --RouteTableId $OCF_RESKEY_routing_table --output text"
b4b3ce
 		ocf_log debug "executing command: $cmd"
b4b3ce
 		ROUTE_TO_INSTANCE="$($cmd |grep $OCF_RESKEY_address | awk '{ print $3 }')"
b4b3ce
 	 done
b4b3ce
@@ -248,7 +248,7 @@
b4b3ce
 
b4b3ce
 ecs_ip_monitor() {
b4b3ce
 	ocf_log debug "function: ecsip_monitor: check routing table"
b4b3ce
-	cmd="aliyuncli vpc DescribeRouteTables --RouteTableId $OCF_RESKEY_routing_table --output text"
b4b3ce
+	cmd="aliyuncli-ra vpc DescribeRouteTables --RouteTableId $OCF_RESKEY_routing_table --output text"
b4b3ce
 	ocf_log debug "executing command: $cmd"
b4b3ce
 
b4b3ce
 	ROUTE_TO_INSTANCE="$($cmd |grep $OCF_RESKEY_address | awk '{ print $3 }')"