Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-cloud / recipes-support / cluster-resource-agents / resource-agents / stx / ipaddr2_ignore_lo_if_state.patch
1 From 81bb87debd2a683bad2173d6cb16327c776fe3b3 Mon Sep 17 00:00:00 2001
2 From: Scott Little <scott.little@windriver.com>
3 Date: Mon, 2 Oct 2017 15:13:46 -0400
4 Subject: [PATCH 13/13] WRS: Patch1119: ipaddr2_ignore_lo_if_state.patch
5
6 ---
7  heartbeat/IPaddr2 | 6 +++---
8  1 file changed, 3 insertions(+), 3 deletions(-)
9
10 diff --git a/heartbeat/IPaddr2 b/heartbeat/IPaddr2
11 index 2cd822d..59620d2 100755
12 --- a/heartbeat/IPaddr2
13 +++ b/heartbeat/IPaddr2
14 @@ -964,7 +964,7 @@ ip_start() {
15         local ip_status=`ip_served`
16  
17         if [ "$ip_status" = "ok" ]; then
18 -               if [ -n "`ip link show $NIC | grep \"state UP\"`" ]
19 +               if [ -n "`ip link show $NIC | grep \"state UP\"`" ] || [ "$NIC" = "lo" ]
20                 then
21                         exit $OCF_SUCCESS
22                 else
23 @@ -1033,7 +1033,7 @@ ip_start() {
24                 fi
25                 ;;
26         esac
27 -       if [ -n "`ip link show $NIC | grep \"state UP\"`" ]
28 +       if [ -n "`ip link show $NIC | grep \"state UP\"`" ] || [ "$NIC" = "lo" ]
29         then
30                 exit $OCF_SUCCESS
31         else
32 @@ -1119,7 +1119,7 @@ ip_monitor() {
33         case $ip_status in
34         ok)
35                 run_arp_sender refresh
36 -               if [ -n "`ip link show $NIC | grep \"state UP\"`" ]
37 +               if [ -n "`ip link show $NIC | grep \"state UP\"`" ] || [ "$NIC" = "lo" ]
38                 then
39                         return $OCF_SUCCESS
40                 else
41 -- 
42 1.9.1
43