26 lines
854 B
XML
26 lines
854 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<root BTCPP_format="4">
|
|
<BehaviorTree ID="Shutdown">
|
|
<Sequence>
|
|
<ForceSuccess>
|
|
<ShutdownHostsFromFile shutdown_hosts_file="{SHUTDOWN_HOSTS_FILE}"/>
|
|
</ForceSuccess>
|
|
<ExecuteCommand command="{SHUTDOWN_LOCALHOST_COMMAND}"
|
|
timeout="1.0"/>
|
|
</Sequence>
|
|
</BehaviorTree>
|
|
|
|
<!-- Description of Node Models (used by Groot) -->
|
|
<TreeNodesModel>
|
|
<Action ID="ShutdownHostsFromFile"
|
|
editable="true">
|
|
<input_port name="shutdown_hosts_file">global path to YAML file with hosts to shutdown</input_port>
|
|
</Action>
|
|
<Action ID="ExecuteCommand" editable="true">
|
|
<input_port name="command">command to execute</input_port>
|
|
<input_port name="timeout">command timeout in seconds</input_port>
|
|
</Action>
|
|
</TreeNodesModel>
|
|
|
|
</root>
|