|
|
e4ffb1 |
From 362b0e25859c044415a88361101ff4518b2d0d11 Mon Sep 17 00:00:00 2001
|
|
|
e4ffb1 |
From: Marek 'marx' Grac <mgrac@redhat.com>
|
|
|
e4ffb1 |
Date: Thu, 18 Jun 2015 18:41:46 +0200
|
|
|
e4ffb1 |
Subject: [PATCH 3/3] fence_emerson: Add XML metadata
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
Resolves: rhbz#1171732
|
|
|
e4ffb1 |
---
|
|
|
e4ffb1 |
tests/data/metadata/fence_emerson.xml | 120 +++++++++++++++++-----------------
|
|
|
e4ffb1 |
1 file changed, 60 insertions(+), 60 deletions(-)
|
|
|
e4ffb1 |
|
|
|
e4ffb1 |
diff --git a/tests/data/metadata/fence_emerson.xml b/tests/data/metadata/fence_emerson.xml
|
|
|
e4ffb1 |
index 1aa5474..553fc37 100644
|
|
|
e4ffb1 |
--- a/tests/data/metadata/fence_emerson.xml
|
|
|
e4ffb1 |
+++ b/tests/data/metadata/fence_emerson.xml
|
|
|
e4ffb1 |
@@ -3,20 +3,37 @@
|
|
|
e4ffb1 |
<longdesc>fence_emerson is an I/O Fencing agent which can be used with MPX and MPH2 managed rack PDU.</longdesc>
|
|
|
e4ffb1 |
<vendor-url>http://www.emersonnetworkpower.com</vendor-url>
|
|
|
e4ffb1 |
<parameters>
|
|
|
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 name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
+ <content type="string" default="161" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
+ </parameter>
|
|
|
e4ffb1 |
+ <parameter name="snmp_version" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="-d, --snmp-version=[version]" />
|
|
|
e4ffb1 |
+ <content type="select" >
|
|
|
e4ffb1 |
+ <option value="1" />
|
|
|
e4ffb1 |
+ <option value="2c" />
|
|
|
e4ffb1 |
+ <option value="3" />
|
|
|
e4ffb1 |
+ </content>
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Specifies SNMP version to use (1,2c,3)</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="community" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-c, --community=[community]" />
|
|
|
e4ffb1 |
<content type="string" />
|
|
|
e4ffb1 |
<shortdesc lang="en">Set the community string</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 name="snmp_priv_prot" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="-B, --snmp-priv-prot=[prot]" />
|
|
|
e4ffb1 |
+ <content type="select" >
|
|
|
e4ffb1 |
+ <option value="DES" />
|
|
|
e4ffb1 |
+ <option value="AES" />
|
|
|
e4ffb1 |
+ </content>
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Set privacy protocol (DES|AES)</shortdesc>
|
|
|
e4ffb1 |
+ </parameter>
|
|
|
e4ffb1 |
+ <parameter name="port" unique="0" required="1">
|
|
|
e4ffb1 |
+ <getopt mixed="-n, --plug=[id]" />
|
|
|
e4ffb1 |
+ <content type="string" />
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Physical plug number, name of virtual machine or UUID</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="inet6_only" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-6, --inet6-only" />
|
|
|
e4ffb1 |
@@ -28,30 +45,15 @@
|
|
|
e4ffb1 |
<content type="string" />
|
|
|
e4ffb1 |
<shortdesc lang="en">IP Address or Hostname</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
- <parameter name="ipport" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="-u, --ipport=[port]" />
|
|
|
e4ffb1 |
- <content type="string" default="161" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">TCP/UDP port to use for connection with device</shortdesc>
|
|
|
e4ffb1 |
- </parameter>
|
|
|
e4ffb1 |
- <parameter name="login" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="-l, --username=[name]" />
|
|
|
e4ffb1 |
- <content type="string" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Login Name</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="passwd_script" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="-S, --password-script=[script]" />
|
|
|
e4ffb1 |
+ <parameter name="snmp_priv_passwd" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="-P, --snmp-priv-passwd=[pass]" />
|
|
|
e4ffb1 |
<content type="string" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Script to retrieve password</shortdesc>
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Set privacy protocol password</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
- <parameter name="port" unique="0" required="1">
|
|
|
e4ffb1 |
- <getopt mixed="-n, --plug=[id]" />
|
|
|
e4ffb1 |
+ <parameter name="snmp_priv_passwd_script" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="-R, --snmp-priv-passwd-script" />
|
|
|
e4ffb1 |
<content type="string" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Physical plug number, name of virtual machine or UUID</shortdesc>
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Script to run to retrieve privacy password</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="snmp_auth_prot" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-b, --snmp-auth-prot=[prot]" />
|
|
|
e4ffb1 |
@@ -61,23 +63,15 @@
|
|
|
e4ffb1 |
</content>
|
|
|
e4ffb1 |
<shortdesc lang="en">Set authentication protocol (MD5|SHA)</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
- <parameter name="snmp_priv_passwd" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="-P, --snmp-priv-passwd=[pass]" />
|
|
|
e4ffb1 |
- <content type="string" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Set privacy protocol password</shortdesc>
|
|
|
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="snmp_priv_passwd_script" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="-R, --snmp-priv-passwd-script" />
|
|
|
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 run to retrieve privacy password</shortdesc>
|
|
|
e4ffb1 |
- </parameter>
|
|
|
e4ffb1 |
- <parameter name="snmp_priv_prot" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="-B, --snmp-priv-prot=[prot]" />
|
|
|
e4ffb1 |
- <content type="select" >
|
|
|
e4ffb1 |
- <option value="DES" />
|
|
|
e4ffb1 |
- <option value="AES" />
|
|
|
e4ffb1 |
- </content>
|
|
|
e4ffb1 |
- <shortdesc lang="en">Set privacy protocol (DES|AES)</shortdesc>
|
|
|
e4ffb1 |
+ <shortdesc lang="en">Script to retrieve password</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
<parameter name="snmp_sec_level" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="-E, --snmp-sec-level=[level]" />
|
|
|
e4ffb1 |
@@ -88,14 +82,20 @@
|
|
|
e4ffb1 |
</content>
|
|
|
e4ffb1 |
<shortdesc lang="en">Set security level (noAuthNoPriv|authNoPriv|authPriv)</shortdesc>
|
|
|
e4ffb1 |
</parameter>
|
|
|
e4ffb1 |
- <parameter name="snmp_version" unique="0" required="0">
|
|
|
e4ffb1 |
- <getopt mixed="-d, --snmp-version=[version]" />
|
|
|
e4ffb1 |
- <content type="select" >
|
|
|
e4ffb1 |
- <option value="1" />
|
|
|
e4ffb1 |
- <option value="2c" />
|
|
|
e4ffb1 |
- <option value="3" />
|
|
|
e4ffb1 |
- </content>
|
|
|
e4ffb1 |
- <shortdesc lang="en">Specifies SNMP version to use (1,2c,3)</shortdesc>
|
|
|
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="0">
|
|
|
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 |
@@ -122,10 +122,10 @@
|
|
|
e4ffb1 |
<content type="string" default="," />
|
|
|
e4ffb1 |
<shortdesc lang="en">Separator for CSV created by operation list</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 name="power_wait" unique="0" required="0">
|
|
|
e4ffb1 |
+ <getopt mixed="--power-wait=[seconds]" />
|
|
|
e4ffb1 |
+ <content type="string" default="5" />
|
|
|
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 |
@@ -137,10 +137,10 @@
|
|
|
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="5" />
|
|
|
e4ffb1 |
- <shortdesc lang="en">Wait X seconds after issuing ON/OFF</shortdesc>
|
|
|
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="shell_timeout" unique="0" required="0">
|
|
|
e4ffb1 |
<getopt mixed="--shell-timeout=[seconds]" />
|
|
|
e4ffb1 |
--
|
|
|
e4ffb1 |
1.9.3
|
|
|
e4ffb1 |
|