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

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