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

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