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

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