Blame SOURCES/bz1925015-fence_ipmilan-add-fence_ipmilanplus.patch

2107d2
From 08a4521f9361c7ca4877e691fa82cc0e8f51d707 Mon Sep 17 00:00:00 2001
2107d2
From: Thomas Renninger <trenn@suse.com>
2107d2
Date: Wed, 3 Feb 2021 11:20:14 +0100
2107d2
Subject: [PATCH] Add fence_ipmilanplus as fence_ipmilan wrapper always
2107d2
 enabling lanplus
2107d2
2107d2
Lanplus (IPMI protocol version 2) is the up-to-date protocol to
2107d2
connect to all recent IPMI driven BMCs.
2107d2
Using fence_ipmilan without lanplus=1 will fail on these.
2107d2
2107d2
To get around compatibility issues (old HW might still exist),
2107d2
a new fence_agent is introduced via link and basename check.
2107d2
---
2107d2
 agents/ipmilan/fence_ipmilan.py           |   3 +
2107d2
 9 files changed, 240 insertions(+)
2107d2
 create mode 100644 tests/data/metadata/fence_ipmilanplus.xml
2107d2
2107d2
diff --git a/agents/ipmilan/fence_ipmilan.py b/agents/ipmilan/fence_ipmilan.py
2107d2
index ee014e79..f751de69 100644
2107d2
--- a/agents/ipmilan/fence_ipmilan.py
2107d2
+++ b/agents/ipmilan/fence_ipmilan.py
2107d2
@@ -187,6 +187,8 @@ def main():
2107d2
 		all_opt["lanplus"]["default"] = "1"
2107d2
 	elif os.path.basename(sys.argv[0]) == "fence_ilo5":
2107d2
 		all_opt["lanplus"]["default"] = "1"
2107d2
+	elif os.path.basename(sys.argv[0]) == "fence_ipmilanplus":
2107d2
+		all_opt["lanplus"]["default"] = "1"
2107d2
 
2107d2
 	all_opt["ipport"]["default"] = "623"
2107d2
 	all_opt["method"]["help"] = "-m, --method=[method]          Method to fence (onoff|cycle) (Default: onoff)\n" \
2107d2
@@ -206,6 +208,7 @@ def main():
2107d2
 	docs["symlink"] = [("fence_ilo3", "Fence agent for HP iLO3"),
2107d2
 		("fence_ilo4", "Fence agent for HP iLO4"),
2107d2
 		("fence_ilo5", "Fence agent for HP iLO5"),
2107d2
+		("fence_ipmilanplus", "Fence agent for IPMIv2 lanplus"),
2107d2
 		("fence_imm", "Fence agent for IBM Integrated Management Module"),
2107d2
 		("fence_idrac", "Fence agent for Dell iDRAC")]
2107d2
 	show_docs(options, docs)