<resource-agent name="fence_xvm" shortdesc="Fence agent for virtual machines">
  <longdesc>
    fence_xvm is an I/O Fencing agent which can be used withvirtual machines.
  </longdesc>
  <parameters>
    <parameter name="debug">
      <getopt mixed="-d"/>
      <content type="boolean"/>
      <shortdesc lang="en">
        Specify (stdin) or increment (command line) debug level
      </shortdesc>
    </parameter>
    <parameter name="ip_family">
      <getopt mixed="-i"/>
      <content type="string" default="auto"/>
      <shortdesc lang="en">
        IP Family ([auto], ipv4, ipv6)
      </shortdesc>
    </parameter>
    <parameter name="multicast_address">
      <getopt mixed="-a"/>
      <content type="string"/>
      <shortdesc lang="en">
        Multicast address (default=225.0.0.12 / ff05::3:1)
      </shortdesc>
    </parameter>
    <parameter name="ipport">
      <getopt mixed="-p"/>
      <content type="string" default="1229"/>
      <shortdesc lang="en">
        TCP, Multicast, or VMChannel IP port (default=1229)
      </shortdesc>
    </parameter>
    <parameter name="retrans">
      <getopt mixed="-r"/>
      <content type="string" default="20"/>
      <shortdesc lang="en">
        Multicast retransmit time (in 1/10sec; default=20)
      </shortdesc>
    </parameter>
    <parameter name="auth">
      <getopt mixed="-C"/>
      <content type="string" default="sha256"/>
      <shortdesc lang="en">
        Authentication (none, sha1, [sha256], sha512)
      </shortdesc>
    </parameter>
    <parameter name="hash">
      <getopt mixed="-c"/>
      <content type="string" default="sha256"/>
      <shortdesc lang="en">
        Packet hash strength (none, sha1, [sha256], sha512)
      </shortdesc>
    </parameter>
    <parameter name="key_file">
      <getopt mixed="-k"/>
      <content type="string" default="/etc/cluster/fence_xvm.key"/>
      <shortdesc lang="en">
        Shared key file (default=/etc/cluster/fence_xvm.key)
      </shortdesc>
    </parameter>
    <parameter name="port" required="0">
      <getopt mixed="-H"/>
      <content type="string"/>
      <shortdesc lang="en">
        Virtual Machine (domain name) to fence
      </shortdesc>
    </parameter>
    <parameter name="use_uuid">
      <getopt mixed="-u"/>
      <content type="string" default="0"/>
      <shortdesc lang="en">
        Treat [domain] as UUID instead of domain name. This is provided for compatibility with older fence_xvmd installations.
      </shortdesc>
    </parameter>
    <parameter name="action">
      <getopt mixed="-o"/>
      <content type="string" default="reboot"/>
      <shortdesc lang="en">
        Fencing action (null, off, on, [reboot], status, list, list-status, monitor, validate-all, metadata)
      </shortdesc>
    </parameter>
    <parameter name="timeout">
      <getopt mixed="-t"/>
      <content type="string" default="30"/>
      <shortdesc lang="en">
        Fencing timeout (in seconds; default=30)
      </shortdesc>
    </parameter>
    <parameter name="delay">
      <getopt mixed="-w"/>
      <content type="string" default="0"/>
      <shortdesc lang="en">
        Fencing delay (in seconds; default=0)
      </shortdesc>
    </parameter>
    <parameter name="domain">
      <!-- DEPRECATED; FOR COMPATIBILITY ONLY -->
      <content type="string"/>
      <shortdesc lang="en">
        Virtual Machine (domain name) to fence (deprecated; use port)
      </shortdesc>
    </parameter>
  </parameters>
  <actions>
    <action name="null"/>
    <action name="on"/>
    <action name="off"/>
    <action name="reboot"/>
    <action name="metadata"/>
    <action name="status"/>
    <action name="monitor"/>
    <action name="list"/>
    <action name="list-status"/>
    <action name="validate-all"/>
    <action name="stop" timeout="20s"/>
    <action name="start" timeout="20s"/>
  </actions>
</resource-agent>

