File 0017-bond2team-do-not-guess-source_host-option.patch of Package libteam

From 2aab85f6209d2704502358ed911c3cf053cefc05 Mon Sep 17 00:00:00 2001
From: Jiri Pirko <jiri@resnulli.us>
Date: Fri, 28 Mar 2014 14:12:48 +0100
Subject: [patch libteam 2/4] bond2team: do not guess source_host option

Since now teamd accepts config without "source_host" set, benefit from
that fact and do not make up some IP address here.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
---
 utils/bond2team | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/utils/bond2team b/utils/bond2team
index 639b407..f8d46ef 100755
--- a/utils/bond2team
+++ b/utils/bond2team
@@ -994,15 +994,6 @@ lwatch_parse_arpiptarget()
 	for addr in ${ip_list}
 	do
 		lwatch_add_opt "\"target_host\" : \"$addr\""
-		source_host=$(vfile_get_ipaddr)
-		if [ -z ${source_host} ]; then
-			pr_warn "could not find the source IP address required"
-			pr_warn "to convert arp_ip_target= parameter"
-			pr_warn "please fix the source_host parameter in the master ifcfg file"
-			lwatch_add_opt "\"source_host\" : \"$addr\""
-		else
-			lwatch_add_opt "\"source_host\" : \"$source_host\""
-		fi
 	done
 }
 
-- 
1.8.5.3