Blame SOURCES/bz1214522-port_as_ip.patch

e4ffb1
From 05bfc15535f3d28af5f09a9a8fedd16ab45c24d3 Mon Sep 17 00:00:00 2001
e4ffb1
From: Marek 'marx' Grac <mgrac@redhat.com>
e4ffb1
Date: Mon, 29 Jun 2015 19:55:00 +0200
e4ffb1
Subject: [PATCH 6/6] fencing: Introduce option --port-as-ip (port_as_ip on
e4ffb1
 stdin)
e4ffb1
e4ffb1
Pacemaker's mapping between fence devices and appropriate ports works fine. But if
e4ffb1
fence device is used only for single device (IPMI, iLO, DRAC, ...) then configuration
e4ffb1
is more complex. With this new option, user can use --plug/-n/port to specify IP address
e4ffb1
what simplify configuration.
e4ffb1
e4ffb1
Resolves: rhbz#1214522
e4ffb1
---
e4ffb1
 fence/agents/lib/fencing.py.py         | 30 +++++++++++++++-
e4ffb1
 tests/data/metadata/fence_alom.xml     | 10 ++++++
e4ffb1
 tests/data/metadata/fence_amt.xml      | 10 ++++++
e4ffb1
 tests/data/metadata/fence_drac.xml     | 64 ++++++++++++++++++++--------------
e4ffb1
 tests/data/metadata/fence_dummy.xml    | 15 +++++---
e4ffb1
 tests/data/metadata/fence_hpblade.xml  |  4 +--
e4ffb1
 tests/data/metadata/fence_idrac.xml    | 10 ++++++
e4ffb1
 tests/data/metadata/fence_ilo.xml      | 10 ++++++
e4ffb1
 tests/data/metadata/fence_ilo2.xml     | 10 ++++++
e4ffb1
 tests/data/metadata/fence_ilo3.xml     | 10 ++++++
e4ffb1
 tests/data/metadata/fence_ilo3_ssh.xml | 10 ++++++
e4ffb1
 tests/data/metadata/fence_ilo4.xml     | 10 ++++++
e4ffb1
 tests/data/metadata/fence_ilo4_ssh.xml | 10 ++++++
e4ffb1
 tests/data/metadata/fence_ilo_mp.xml   | 10 ++++++
e4ffb1
 tests/data/metadata/fence_ilo_ssh.xml  | 10 ++++++
e4ffb1
 tests/data/metadata/fence_imm.xml      | 10 ++++++
e4ffb1
 tests/data/metadata/fence_ipmilan.xml  | 10 ++++++
e4ffb1
 tests/data/metadata/fence_mpath.xml    | 54 ++++++++++++++++------------
e4ffb1
 tests/data/metadata/fence_rsa.xml      | 10 ++++++
e4ffb1
 tests/data/metadata/fence_rsb.xml      | 10 ++++++
e4ffb1
 20 files changed, 260 insertions(+), 57 deletions(-)
e4ffb1
e4ffb1
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
e4ffb1
index db620e8..2ba98b8 100644
e4ffb1
--- a/fence/agents/lib/fencing.py.py
e4ffb1
+++ b/fence/agents/lib/fencing.py.py
e4ffb1
@@ -399,6 +399,13 @@ all_opt = {
e4ffb1
 		"default" : "onoff",
e4ffb1
 		"choices" : ["onoff", "cycle"],
e4ffb1
 		"order" : 1},
e4ffb1
+	"port_as_ip": {
e4ffb1
+		"getopt" : "",
e4ffb1
+		"longopt" : "port-as-ip",
e4ffb1
+		"help" : "--port-as-ip                   Make \"port/plug\" to be an alias to IP address",
e4ffb1
+		"required" : "0",
e4ffb1
+		"shortdesc" : "Make \"port/plug\" to be an alias to IP address",
e4ffb1
+		"order" : 200},
e4ffb1
 	"on_target": {
e4ffb1
 		"getopt" : "",
e4ffb1
 		"help" : "",
e4ffb1
@@ -451,6 +458,13 @@ def add_dependency_options(options):
e4ffb1
 	for opt in options + ["default"]:
e4ffb1
 		if DEPENDENCY_OPT.has_key(opt):
e4ffb1
 			added_opt.extend([y for y in DEPENDENCY_OPT[opt] if options.count(y) == 0])
e4ffb1
+
e4ffb1
+	if not "port" in (options + added_opt) and not "nodename" in (options + added_opt):
e4ffb1
+		added_opt.append("port_as_ip")
e4ffb1
+		all_opt["port"]["help"] = "-n, --plug=[ip]                IP address or hostname of fencing device " \
e4ffb1
+			"(together with --port-as-ip)"
e4ffb1
+		all_opt["port"]["shortdesc"] = "IP address or hostname of fencing device (together with --port-as-ip)"
e4ffb1
+
e4ffb1
 	return added_opt
e4ffb1
 
e4ffb1
 def fail_usage(message=""):
e4ffb1
@@ -580,6 +594,9 @@ def process_input(avail_opt):
e4ffb1
 	os.putenv("LANG", "C")
e4ffb1
 	os.putenv("LC_ALL", "C")
e4ffb1
 
e4ffb1
+	if "port_as_ip" in avail_opt:
e4ffb1
+		avail_opt.append("port")
e4ffb1
+
e4ffb1
 	##
e4ffb1
 	## Prepare list of options for getopt
e4ffb1
 	#####
e4ffb1
@@ -653,6 +670,10 @@ def process_input(avail_opt):
e4ffb1
 				opt["--"+all_opt[name]["longopt"].rstrip(":")] = value
e4ffb1
 			elif value.lower() in ["1", "yes", "on", "true"]:
e4ffb1
 				opt["--"+all_opt[name]["longopt"]] = "1"
e4ffb1
+
e4ffb1
+	if "--port-as-ip" in opt and "--plug" in opt:
e4ffb1
+		opt["--ip"] = opt["--plug"]
e4ffb1
+
e4ffb1
 	return opt
e4ffb1
 
e4ffb1
 ##
e4ffb1
@@ -755,6 +776,10 @@ def check_input(device_opt, opt):
e4ffb1
 		options["--action"] = "off"
e4ffb1
 
e4ffb1
 	## automatic detection and set of valid UUID from --plug
e4ffb1
+
e4ffb1
+	if "port_as_ip" in device_opt and not "--port-as-ip" in options and "--plug" in options:
e4ffb1
+		fail_usage("Parser error: option -n/--plug is not recognized")
e4ffb1
+
e4ffb1
 	if not options.has_key("--username") and \
e4ffb1
 			device_opt.count("login") and (device_opt.count("no_login") == 0):
e4ffb1
 		fail_usage("Failed: You have to set login name")
e4ffb1
@@ -779,7 +804,8 @@ def check_input(device_opt, opt):
e4ffb1
 			fail_usage("Failed: Identity file " + options["--identity-file"] + " does not exist")
e4ffb1
 
e4ffb1
 	if (0 == ["list", "monitor"].count(options["--action"])) and \
e4ffb1
-		not options.has_key("--plug") and device_opt.count("port") and device_opt.count("no_port") == 0:
e4ffb1
+		not options.has_key("--plug") and device_opt.count("port") and \
e4ffb1
+		device_opt.count("no_port") == 0 and not device_opt.count("port_as_ip"):
e4ffb1
 		fail_usage("Failed: You have to enter plug number or machine identification")
e4ffb1
 
e4ffb1
 	if options.has_key("--password-script"):
e4ffb1
@@ -874,6 +900,8 @@ def show_docs(options, docs=None):
e4ffb1
 		sys.exit(0)
e4ffb1
 
e4ffb1
 	if options.get("--action", "") == "metadata":
e4ffb1
+		if "port_as_ip" in device_opt:
e4ffb1
+			device_opt.remove("separator")
e4ffb1
 		metadata(device_opt, options, docs)
e4ffb1
 		sys.exit(0)
e4ffb1
 
e4ffb1
diff --git a/tests/data/metadata/fence_alom.xml b/tests/data/metadata/fence_alom.xml
e4ffb1
index 6bdefb7..32e6630 100644
e4ffb1
--- a/tests/data/metadata/fence_alom.xml
e4ffb1
+++ b/tests/data/metadata/fence_alom.xml
e4ffb1
@@ -13,6 +13,11 @@
e4ffb1
 		<content type="string"  />
e4ffb1
 		<shortdesc lang="en">IP Address or Hostname</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="secure" unique="0" required="0">
e4ffb1
 		<getopt mixed="-x, --ssh" />
e4ffb1
 		<content type="boolean" default="1"  />
e4ffb1
@@ -108,6 +113,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_amt.xml b/tests/data/metadata/fence_amt.xml
e4ffb1
index b967b68..8524180 100644
e4ffb1
--- a/tests/data/metadata/fence_amt.xml
e4ffb1
+++ b/tests/data/metadata/fence_amt.xml
e4ffb1
@@ -8,6 +8,11 @@
e4ffb1
 		<content type="string" default="23"  />
e4ffb1
 		<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="inet6_only" unique="0" required="0">
e4ffb1
 		<getopt mixed="-6, --inet6-only" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -107,6 +112,11 @@
e4ffb1
 		<content type="string" default="/usr/bin/amttool"  />
e4ffb1
 		<shortdesc lang="en">Path to amttool binary</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_drac.xml b/tests/data/metadata/fence_drac.xml
e4ffb1
index d2871c5..d480669 100644
e4ffb1
--- a/tests/data/metadata/fence_drac.xml
e4ffb1
+++ b/tests/data/metadata/fence_drac.xml
e4ffb1
@@ -8,6 +8,11 @@
e4ffb1
 		<content type="string" default="23"  />
e4ffb1
 		<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="cmd_prompt" unique="0" required="0">
e4ffb1
 		<getopt mixed="-c, --command-prompt=[prompt]" />
e4ffb1
 		<content type="string" default="['\\[username\\]# ']"  />
e4ffb1
@@ -18,36 +23,36 @@
e4ffb1
 		<content type="boolean"  />
e4ffb1
 		<shortdesc lang="en">Forces agent to use IPv6 addresses only</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
-	<parameter name="passwd" unique="0" required="0">
e4ffb1
-		<getopt mixed="-p, --password=[password]" />
e4ffb1
-		<content type="string"  />
e4ffb1
-		<shortdesc lang="en">Login password or passphrase</shortdesc>
e4ffb1
-	</parameter>
e4ffb1
 	<parameter name="ipaddr" unique="0" required="1">
e4ffb1
 		<getopt mixed="-a, --ip=[ip]" />
e4ffb1
 		<content type="string"  />
e4ffb1
 		<shortdesc lang="en">IP Address or Hostname</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
-	<parameter name="action" unique="0" required="1">
e4ffb1
-		<getopt mixed="-o, --action=[action]" />
e4ffb1
-		<content type="string" default="reboot"  />
e4ffb1
-		<shortdesc lang="en">Fencing Action</shortdesc>
e4ffb1
-	</parameter>
e4ffb1
 	<parameter name="inet4_only" unique="0" required="0">
e4ffb1
 		<getopt mixed="-4, --inet4-only" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
 		<shortdesc lang="en">Forces agent to use IPv4 addresses only</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
-	<parameter name="login" unique="0" required="1">
e4ffb1
-		<getopt mixed="-l, --username=[name]" />
e4ffb1
-		<content type="string"  />
e4ffb1
-		<shortdesc lang="en">Login Name</shortdesc>
e4ffb1
-	</parameter>
e4ffb1
 	<parameter name="passwd_script" unique="0" required="0">
e4ffb1
 		<getopt mixed="-S, --password-script=[script]" />
e4ffb1
 		<content type="string"  />
e4ffb1
 		<shortdesc lang="en">Script to retrieve password</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="passwd" unique="0" required="0">
e4ffb1
+		<getopt mixed="-p, --password=[password]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">Login password or passphrase</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
+	<parameter name="action" unique="0" required="1">
e4ffb1
+		<getopt mixed="-o, --action=[action]" />
e4ffb1
+		<content type="string" default="reboot"  />
e4ffb1
+		<shortdesc lang="en">Fencing Action</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
+	<parameter name="login" unique="0" required="1">
e4ffb1
+		<getopt mixed="-l, --username=[name]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">Login Name</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="verbose" unique="0" required="0">
e4ffb1
 		<getopt mixed="-v, --verbose" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -68,30 +73,35 @@
e4ffb1
 		<content type="boolean"  />
e4ffb1
 		<shortdesc lang="en">Display help and exit</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="power_wait" unique="0" required="0">
e4ffb1
+		<getopt mixed="--power-wait=[seconds]" />
e4ffb1
+		<content type="string" default="0"  />
e4ffb1
+		<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
+	<parameter name="login_timeout" unique="0" required="0">
e4ffb1
+		<getopt mixed="--login-timeout=[seconds]" />
e4ffb1
+		<content type="string" default="5"  />
e4ffb1
+		<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="power_timeout" unique="0" required="0">
e4ffb1
 		<getopt mixed="--power-timeout=[seconds]" />
e4ffb1
 		<content type="string" default="20"  />
e4ffb1
 		<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
-	<parameter name="power_wait" unique="0" required="0">
e4ffb1
-		<getopt mixed="--power-wait=[seconds]" />
e4ffb1
+	<parameter name="delay" unique="0" required="0">
e4ffb1
+		<getopt mixed="--delay=[seconds]" />
e4ffb1
 		<content type="string" default="0"  />
e4ffb1
-		<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
e4ffb1
+		<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
 	<parameter name="shell_timeout" unique="0" required="0">
e4ffb1
 		<getopt mixed="--shell-timeout=[seconds]" />
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
-	<parameter name="delay" unique="0" required="0">
e4ffb1
-		<getopt mixed="--delay=[seconds]" />
e4ffb1
-		<content type="string" default="0"  />
e4ffb1
-		<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
e4ffb1
-	</parameter>
e4ffb1
-	<parameter name="login_timeout" unique="0" required="0">
e4ffb1
-		<getopt mixed="--login-timeout=[seconds]" />
e4ffb1
-		<content type="string" default="5"  />
e4ffb1
-		<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
diff --git a/tests/data/metadata/fence_dummy.xml b/tests/data/metadata/fence_dummy.xml
e4ffb1
index 61c964e..9295544 100644
e4ffb1
--- a/tests/data/metadata/fence_dummy.xml
e4ffb1
+++ b/tests/data/metadata/fence_dummy.xml
e4ffb1
@@ -3,6 +3,11 @@
e4ffb1
 <longdesc>fence_dummy</longdesc>
e4ffb1
 <vendor-url>http://www.example.com</vendor-url>
e4ffb1
 <parameters>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="status_file" unique="0" required="0">
e4ffb1
 		<getopt mixed="--status-file=[file]" />
e4ffb1
 		<content type="string" default="/tmp/fence_dummy.status"  />
e4ffb1
@@ -43,11 +48,6 @@
e4ffb1
 		<content type="boolean"  />
e4ffb1
 		<shortdesc lang="en">Display help and exit</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
-	<parameter name="separator" unique="0" required="0">
e4ffb1
-		<getopt mixed="-C, --separator=[char]" />
e4ffb1
-		<content type="string" default=","  />
e4ffb1
-		<shortdesc lang="en">Separator for CSV created by operation list</shortdesc>
e4ffb1
-	</parameter>
e4ffb1
 	<parameter name="shell_timeout" unique="0" required="0">
e4ffb1
 		<getopt mixed="--shell-timeout=[seconds]" />
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
@@ -63,6 +63,11 @@
e4ffb1
 		<content type="string" default="20"  />
e4ffb1
 		<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="delay" unique="0" required="0">
e4ffb1
 		<getopt mixed="--delay=[seconds]" />
e4ffb1
 		<content type="string" default="0"  />
e4ffb1
diff --git a/tests/data/metadata/fence_hpblade.xml b/tests/data/metadata/fence_hpblade.xml
e4ffb1
index 4f0976b..a8a2b3a 100644
e4ffb1
--- a/tests/data/metadata/fence_hpblade.xml
e4ffb1
+++ b/tests/data/metadata/fence_hpblade.xml
e4ffb1
@@ -1,6 +1,6 @@
e4ffb1
 
e4ffb1
 <resource-agent name="fence_hpblade" shortdesc="Fence agent for HP BladeSystem" >
e4ffb1
-<longdesc>fence_hpblade is an I/O Fencing agent which can be used with HP BladeSystem. It logs into an enclosure via telnet or ssh and uses the command line interface to power on and off blades.</longdesc>
e4ffb1
+<longdesc>fence_hpblade is an I/O Fencing agent which can be used with HP BladeSystem and HP Integrity Superdome X. It logs into the onboard administrator of an enclosure via telnet or ssh and uses the command line interface to power blades or partitions on or off.</longdesc>
e4ffb1
 <vendor-url>http://www.hp.com</vendor-url>
e4ffb1
 <parameters>
e4ffb1
 	<parameter name="ipport" unique="0" required="0">
e4ffb1
@@ -100,7 +100,7 @@
e4ffb1
 	</parameter>
e4ffb1
 	<parameter name="login_timeout" unique="0" required="0">
e4ffb1
 		<getopt mixed="--login-timeout=[seconds]" />
e4ffb1
-		<content type="string" default="5"  />
e4ffb1
+		<content type="string" default="10"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
 	<parameter name="power_timeout" unique="0" required="0">
e4ffb1
diff --git a/tests/data/metadata/fence_idrac.xml b/tests/data/metadata/fence_idrac.xml
e4ffb1
index dcb3235..41ab729 100644
e4ffb1
--- a/tests/data/metadata/fence_idrac.xml
e4ffb1
+++ b/tests/data/metadata/fence_idrac.xml
e4ffb1
@@ -12,6 +12,11 @@
e4ffb1
 		<content type="string" default="623"  />
e4ffb1
 		<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="inet6_only" unique="0" required="0">
e4ffb1
 		<getopt mixed="-6, --inet6-only" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -134,6 +139,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_ilo.xml b/tests/data/metadata/fence_ilo.xml
e4ffb1
index ae7fe9c..bcb3d15 100644
e4ffb1
--- a/tests/data/metadata/fence_ilo.xml
e4ffb1
+++ b/tests/data/metadata/fence_ilo.xml
e4ffb1
@@ -39,6 +39,11 @@
e4ffb1
 		<content type="string"  />
e4ffb1
 		<shortdesc lang="en">IP Address or Hostname</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="inet4_only" unique="0" required="0">
e4ffb1
 		<getopt mixed="-4, --inet4-only" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -119,6 +124,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
diff --git a/tests/data/metadata/fence_ilo2.xml b/tests/data/metadata/fence_ilo2.xml
e4ffb1
index 19a31a1..95bf32a 100644
e4ffb1
--- a/tests/data/metadata/fence_ilo2.xml
e4ffb1
+++ b/tests/data/metadata/fence_ilo2.xml
e4ffb1
@@ -39,6 +39,11 @@
e4ffb1
 		<content type="string"  />
e4ffb1
 		<shortdesc lang="en">IP Address or Hostname</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="inet4_only" unique="0" required="0">
e4ffb1
 		<getopt mixed="-4, --inet4-only" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -119,6 +124,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
diff --git a/tests/data/metadata/fence_ilo3.xml b/tests/data/metadata/fence_ilo3.xml
e4ffb1
index e6a48bc..e09e5e1 100644
e4ffb1
--- a/tests/data/metadata/fence_ilo3.xml
e4ffb1
+++ b/tests/data/metadata/fence_ilo3.xml
e4ffb1
@@ -12,6 +12,11 @@
e4ffb1
 		<content type="string" default="623"  />
e4ffb1
 		<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="inet6_only" unique="0" required="0">
e4ffb1
 		<getopt mixed="-6, --inet6-only" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -134,6 +139,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_ilo3_ssh.xml b/tests/data/metadata/fence_ilo3_ssh.xml
e4ffb1
index b3531b2..1bf85e7 100644
e4ffb1
--- a/tests/data/metadata/fence_ilo3_ssh.xml
e4ffb1
+++ b/tests/data/metadata/fence_ilo3_ssh.xml
e4ffb1
@@ -15,6 +15,11 @@
e4ffb1
 		<content type="string"  />
e4ffb1
 		<shortdesc lang="en">IP Address or Hostname</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="secure" unique="0" required="0">
e4ffb1
 		<getopt mixed="-x, --ssh" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -118,6 +123,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_ilo4.xml b/tests/data/metadata/fence_ilo4.xml
e4ffb1
index e7b0d60..9450e56 100644
e4ffb1
--- a/tests/data/metadata/fence_ilo4.xml
e4ffb1
+++ b/tests/data/metadata/fence_ilo4.xml
e4ffb1
@@ -12,6 +12,11 @@
e4ffb1
 		<content type="string" default="623"  />
e4ffb1
 		<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="inet6_only" unique="0" required="0">
e4ffb1
 		<getopt mixed="-6, --inet6-only" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -134,6 +139,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_ilo4_ssh.xml b/tests/data/metadata/fence_ilo4_ssh.xml
e4ffb1
index 2266ee1..3779ce7 100644
e4ffb1
--- a/tests/data/metadata/fence_ilo4_ssh.xml
e4ffb1
+++ b/tests/data/metadata/fence_ilo4_ssh.xml
e4ffb1
@@ -15,6 +15,11 @@
e4ffb1
 		<content type="string"  />
e4ffb1
 		<shortdesc lang="en">IP Address or Hostname</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="secure" unique="0" required="0">
e4ffb1
 		<getopt mixed="-x, --ssh" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -118,6 +123,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_ilo_mp.xml b/tests/data/metadata/fence_ilo_mp.xml
e4ffb1
index 93503a0..145fb36 100644
e4ffb1
--- a/tests/data/metadata/fence_ilo_mp.xml
e4ffb1
+++ b/tests/data/metadata/fence_ilo_mp.xml
e4ffb1
@@ -13,6 +13,11 @@
e4ffb1
 		<content type="string"  />
e4ffb1
 		<shortdesc lang="en">IP Address or Hostname</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="secure" unique="0" required="0">
e4ffb1
 		<getopt mixed="-x, --ssh" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -108,6 +113,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_ilo_ssh.xml b/tests/data/metadata/fence_ilo_ssh.xml
e4ffb1
index a9bd1d3..6eb4ae4 100644
e4ffb1
--- a/tests/data/metadata/fence_ilo_ssh.xml
e4ffb1
+++ b/tests/data/metadata/fence_ilo_ssh.xml
e4ffb1
@@ -15,6 +15,11 @@
e4ffb1
 		<content type="string"  />
e4ffb1
 		<shortdesc lang="en">IP Address or Hostname</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="secure" unique="0" required="0">
e4ffb1
 		<getopt mixed="-x, --ssh" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -118,6 +123,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_imm.xml b/tests/data/metadata/fence_imm.xml
e4ffb1
index 8fbdddd..2e7d65c 100644
e4ffb1
--- a/tests/data/metadata/fence_imm.xml
e4ffb1
+++ b/tests/data/metadata/fence_imm.xml
e4ffb1
@@ -12,6 +12,11 @@
e4ffb1
 		<content type="string" default="623"  />
e4ffb1
 		<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="inet6_only" unique="0" required="0">
e4ffb1
 		<getopt mixed="-6, --inet6-only" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -134,6 +139,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_ipmilan.xml b/tests/data/metadata/fence_ipmilan.xml
e4ffb1
index 199490c..ae528de 100644
e4ffb1
--- a/tests/data/metadata/fence_ipmilan.xml
e4ffb1
+++ b/tests/data/metadata/fence_ipmilan.xml
e4ffb1
@@ -12,6 +12,11 @@
e4ffb1
 		<content type="string" default="623"  />
e4ffb1
 		<shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="inet6_only" unique="0" required="0">
e4ffb1
 		<getopt mixed="-6, --inet6-only" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -134,6 +139,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_mpath.xml b/tests/data/metadata/fence_mpath.xml
e4ffb1
index c62dd49..ccd41ff 100644
e4ffb1
--- a/tests/data/metadata/fence_mpath.xml
e4ffb1
+++ b/tests/data/metadata/fence_mpath.xml
e4ffb1
@@ -4,20 +4,25 @@
e4ffb1
 The fence_mpath agent works by having an unique key for each pair of node and device that has to be set also in /etc/multipath.conf. Once registered, a single node will become the reservation holder by creating a "write exclusive, registrants only" reservation on the device(s). The result is that only registered nodes may write to the device(s). When a node failure occurs, the fence_mpath agent will remove the key belonging to the failed node from the device(s). The failed node will no longer be able to write to the device(s). A manual reboot is required.</longdesc>
e4ffb1
 <vendor-url>https://www.sourceware.org/dm/</vendor-url>
e4ffb1
 <parameters>
e4ffb1
-	<parameter name="devices" unique="0" required="0">
e4ffb1
-		<getopt mixed="-d, --devices=[devices]" />
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
 		<content type="string"  />
e4ffb1
-		<shortdesc lang="en">List of devices to use for current operation. Devices can be comma-separated list of device-mapper multipath devices (eg. /dev/dm-3). Each device must support SCSI-3 persistent reservations.</shortdesc>
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
+	<parameter name="action" unique="0" required="1">
e4ffb1
+		<getopt mixed="-o, --action=[action]" />
e4ffb1
+		<content type="string" default="off"  />
e4ffb1
+		<shortdesc lang="en">Fencing Action</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
 	<parameter name="key" unique="0" required="1">
e4ffb1
 		<getopt mixed="-k, --key=[key]" />
e4ffb1
 		<content type="string"  />
e4ffb1
 		<shortdesc lang="en">Key to use for the current operation. This key should be unique to a node and have to be written in /etc/multipath.conf. For the "on" action, the key specifies the key use to register the local node. For the "off" action, this key specifies the key to be removed from the device(s).</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
-	<parameter name="action" unique="0" required="1">
e4ffb1
-		<getopt mixed="-o, --action=[action]" />
e4ffb1
-		<content type="string" default="off"  />
e4ffb1
-		<shortdesc lang="en">Fencing Action</shortdesc>
e4ffb1
+	<parameter name="devices" unique="0" required="0">
e4ffb1
+		<getopt mixed="-d, --devices=[devices]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">List of devices to use for current operation. Devices can be comma-separated list of device-mapper multipath devices (eg. /dev/dm-3). Each device must support SCSI-3 persistent reservations.</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
 	<parameter name="verbose" unique="0" required="0">
e4ffb1
 		<getopt mixed="-v, --verbose" />
e4ffb1
@@ -39,11 +44,31 @@ The fence_mpath agent works by having an unique key for each pair of node and de
e4ffb1
 		<content type="boolean"  />
e4ffb1
 		<shortdesc lang="en">Display help and exit</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="power_wait" unique="0" required="0">
e4ffb1
+		<getopt mixed="--power-wait=[seconds]" />
e4ffb1
+		<content type="string" default="0"  />
e4ffb1
+		<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
+	<parameter name="login_timeout" unique="0" required="0">
e4ffb1
+		<getopt mixed="--login-timeout=[seconds]" />
e4ffb1
+		<content type="string" default="5"  />
e4ffb1
+		<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="delay" unique="0" required="0">
e4ffb1
 		<getopt mixed="--delay=[seconds]" />
e4ffb1
 		<content type="string" default="0"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds before fencing is started</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="mpathpersist_path" unique="0" required="0">
e4ffb1
+		<getopt mixed="--mpathpersist-path=[path]" />
e4ffb1
+		<content type="string" default="/usr/sbin/mpathpersist"  />
e4ffb1
+		<shortdesc lang="en">Path to mpathpersist binary</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="shell_timeout" unique="0" required="0">
e4ffb1
 		<getopt mixed="--shell-timeout=[seconds]" />
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
@@ -59,21 +84,6 @@ The fence_mpath agent works by having an unique key for each pair of node and de
e4ffb1
 		<content type="string" default="20"  />
e4ffb1
 		<shortdesc lang="en">Test X seconds for status change after ON/OFF</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
-	<parameter name="power_wait" unique="0" required="0">
e4ffb1
-		<getopt mixed="--power-wait=[seconds]" />
e4ffb1
-		<content type="string" default="0"  />
e4ffb1
-		<shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
e4ffb1
-	</parameter>
e4ffb1
-	<parameter name="login_timeout" unique="0" required="0">
e4ffb1
-		<getopt mixed="--login-timeout=[seconds]" />
e4ffb1
-		<content type="string" default="5"  />
e4ffb1
-		<shortdesc lang="en">Wait X seconds for cmd prompt after login</shortdesc>
e4ffb1
-	</parameter>
e4ffb1
-	<parameter name="mpathpersist_path" unique="0" required="0">
e4ffb1
-		<getopt mixed="--mpathpersist-path=[path]" />
e4ffb1
-		<content type="string" default="/usr/sbin/mpathpersist"  />
e4ffb1
-		<shortdesc lang="en">Path to mpathpersist binary</shortdesc>
e4ffb1
-	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_rsa.xml b/tests/data/metadata/fence_rsa.xml
e4ffb1
index 749b21d..aa9caaa 100644
e4ffb1
--- a/tests/data/metadata/fence_rsa.xml
e4ffb1
+++ b/tests/data/metadata/fence_rsa.xml
e4ffb1
@@ -13,6 +13,11 @@
e4ffb1
 		<content type="string"  />
e4ffb1
 		<shortdesc lang="en">IP Address or Hostname</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="secure" unique="0" required="0">
e4ffb1
 		<getopt mixed="-x, --ssh" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -108,6 +113,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
diff --git a/tests/data/metadata/fence_rsb.xml b/tests/data/metadata/fence_rsb.xml
e4ffb1
index 56421fc..b400d7e 100644
e4ffb1
--- a/tests/data/metadata/fence_rsb.xml
e4ffb1
+++ b/tests/data/metadata/fence_rsb.xml
e4ffb1
@@ -13,6 +13,11 @@
e4ffb1
 		<content type="string"  />
e4ffb1
 		<shortdesc lang="en">IP Address or Hostname</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port" unique="0" required="1">
e4ffb1
+		<getopt mixed="-n, --plug=[ip]" />
e4ffb1
+		<content type="string"  />
e4ffb1
+		<shortdesc lang="en">IP address or hostname of fencing device (together with --port-as-ip)</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="secure" unique="0" required="0">
e4ffb1
 		<getopt mixed="-x, --ssh" />
e4ffb1
 		<content type="boolean"  />
e4ffb1
@@ -108,6 +113,11 @@
e4ffb1
 		<content type="string" default="3"  />
e4ffb1
 		<shortdesc lang="en">Wait X seconds for cmd prompt after issuing command</shortdesc>
e4ffb1
 	</parameter>
e4ffb1
+	<parameter name="port_as_ip" unique="0" required="0">
e4ffb1
+		<getopt mixed="--port-as-ip" />
e4ffb1
+		<content type="boolean"  />
e4ffb1
+		<shortdesc lang="en">Make "port/plug" to be an alias to IP address</shortdesc>
e4ffb1
+	</parameter>
e4ffb1
 	<parameter name="retry_on" unique="0" required="0">
e4ffb1
 		<getopt mixed="--retry-on=[attempts]" />
e4ffb1
 		<content type="string" default="1"  />
e4ffb1
-- 
e4ffb1
1.9.3
e4ffb1