Blame SOURCES/bz1750261-Route-2-validate-start-validate-all.patch

734564
From 444bdc44fc47c65f848efc0c39c1e8e6620ce10d Mon Sep 17 00:00:00 2001
734564
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
734564
Date: Fri, 11 Oct 2019 12:12:52 +0200
734564
Subject: [PATCH] Route: only validate for start and validate-all actions
734564
734564
---
734564
 heartbeat/Route | 6 +++---
734564
 1 file changed, 3 insertions(+), 3 deletions(-)
734564
734564
diff --git a/heartbeat/Route b/heartbeat/Route
734564
index 9f92eff3a..8898e1afd 100755
734564
--- a/heartbeat/Route
734564
+++ b/heartbeat/Route
734564
@@ -187,6 +187,8 @@ END
734564
 }
734564
 
734564
 route_start() {
734564
+    route_validate || exit $?
734564
+
734564
     route_status
734564
     status=$?
734564
     if [ $status -eq $OCF_SUCCESS ]; then
734564
@@ -313,8 +315,6 @@ for binary in ip grep; do
734564
     check_binary $binary
734564
 done
734564
 
734564
-route_validate || exit $?
734564
-
734564
 case $OCF_RESKEY_family in
734564
     ip4) addr_family="-4" ;;
734564
     ip6) addr_family="-6" ;;
734564
@@ -334,7 +334,7 @@ status|monitor)	route_status;;
734564
 reload)		ocf_log info "Reloading..."
734564
 	        route_start
734564
 		;;
734564
-validate-all)	;;
734564
+validate-all)	route_validate;;
734564
 *)		route_usage
734564
 		exit $OCF_ERR_UNIMPLEMENTED
734564
 		;;