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

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