From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/cluster form-macros
Date: 16 Oct 2006 18:58:23 -0000 [thread overview]
Message-ID: <20061016185823.21091.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-10-16 18:58:22
Modified files:
luci/cluster : form-macros
Log message:
fill in fence device defaults when appropriate
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.86&r2=1.87
--- conga/luci/cluster/form-macros 2006/10/16 18:35:01 1.86
+++ conga/luci/cluster/form-macros 2006/10/16 18:58:22 1.87
@@ -808,22 +808,36 @@
<div metal:define-macro="fence-form-apc">
<div id="fence_apc" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>APC Power Switch</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>IP Address</td>
- <td><input name="ip_addr" type="text"/></td>
+ <td>
+ <input name="ip_addr" type="text"
+ tal:attributes="cur_fendev/ipaddr | nothing" />
+ </td>
</tr>
<tr>
<td>Login</td>
- <td><input name="login" type="text"/></td>
+ <td>
+ <input name="login" type="text"
+ tal:attributes="cur_fencedev/login | nothing" />
+ </td>
</tr>
<tr>
<td>Password</td>
<td>
- <input name="password" autocomplete="off" type="password"/>
+ <input name="password" type="password" autocomplete="off"
+ tal:attributes="value cur_fencedev/passwd | nothing" />
</td>
</tr>
</table>
@@ -834,22 +848,36 @@
<div metal:define-macro="fence-form-mcdata">
<div id="fence_mcdata" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>McData SAN Switch</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>IP Address</td>
- <td><input name="ip_addr" type="text"/></td>
+ <td>
+ <input name="ip_addr" type="text"
+ tal:attributes="cur_fendev/ipaddr | nothing" />
+ </td>
</tr>
<tr>
<td>Login</td>
- <td><input name="login" type="text"/></td>
+ <td>
+ <input name="login" type="text"
+ tal:attributes="cur_fencedev/login | nothing" />
+ </td>
</tr>
<tr>
<td>Password</td>
<td>
- <input name="password" autocomplete="off" type="password"/>
+ <input name="password" type="password" autocomplete="off"
+ tal:attributes="value cur_fencedev/passwd | nothing" />
</td>
</tr>
</table>
@@ -860,18 +888,29 @@
<div metal:define-macro="fence-form-wti">
<div id="fence_wti" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>WTI Power Switch</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>IP Address</td>
- <td><input name="ip_addr" type="text"/></td>
+ <td>
+ <input name="ip_addr" type="text"
+ tal:attributes="cur_fendev/ipaddr | nothing" />
+ </td>
</tr>
<tr>
<td>Password</td>
<td>
- <input name="password" type="password" autocomplete="off"/>
+ <input name="password" type="password" autocomplete="off"
+ tal:attributes="value cur_fencedev/passwd | nothing" />
</td>
</tr>
</table>
@@ -882,22 +921,36 @@
<div metal:define-macro="fence-form-ilo">
<div id="fence_ilo" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>HP iLO</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>Hostname</td>
- <td><input name="hostname" type="text"/></td>
+ <td>
+ <input name="hostname" type="text"
+ tal:attributes="cur_fencedev/hostname | nothing" />
+ </td>
</tr>
<tr>
<td>Login</td>
- <td><input name="login" type="text"/></td>
+ <td>
+ <input name="login" type="text"
+ tal:attributes="cur_fencedev/login | nothing" />
+ </td>
</tr>
<tr>
<td>Password</td>
<td>
- <input name="password" type="password" autocomplete="off"/>
+ <input name="password" type="password" autocomplete="off"
+ tal:attributes="value cur_fencedev/passwd | nothing" />
</td>
</tr>
</table>
@@ -908,22 +961,36 @@
<div metal:define-macro="fence-form-drac">
<div id="fence_drac" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>Dell Drac</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>IP Address</td>
- <td><input name="ip_addr" type="text"/></td>
+ <td>
+ <input name="ip_addr" type="text"
+ tal:attributes="cur_fendev/ipaddr | nothing" />
+ </td>
</tr>
<tr>
<td>Login</td>
- <td><input name="login" type="text"/></td>
+ <td>
+ <input name="login" type="text"
+ tal:attributes="cur_fencedev/login | nothing" />
+ </td>
</tr>
<tr>
<td>Password</td>
<td>
- <input name="password" type="password" autocomplete="off"/>
+ <input name="password" type="password" autocomplete="off"
+ tal:attributes="value cur_fencedev/passwd | nothing" />
</td>
</table>
<input type="hidden" name="fence_type" value="fence_drac" />
@@ -933,22 +1000,36 @@
<div metal:define-macro="fence-form-rsa">
<div id="fence_rsa" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>IBM RSA II</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>Hostname</td>
- <td><input name="hostname" type="text"/></td>
+ <td>
+ <input name="hostname" type="text"
+ tal:attributes="cur_fencedev/hostname | nothing" />
+ </td>
</tr>
<tr>
<td>Login</td>
- <td><input name="login" type="text"/></td>
+ <td>
+ <input name="login" type="text"
+ tal:attributes="cur_fencedev/login | nothing" />
+ </td>
</tr>
<tr>
<td>Password</td>
<td>
- <input name="password" type="password" autocomplete="off"/>
+ <input name="password" type="password" autocomplete="off"
+ tal:attributes="value cur_fencedev/passwd | nothing" />
</td>
</tr>
</table>
@@ -959,22 +1040,36 @@
<div metal:define-macro="fence-form-brocade">
<div id="fence_brocade" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>Brocade Fabric Switch</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>IP Address</td>
- <td><input name="ip_addr" type="text"/></td>
+ <td>
+ <input name="ip_addr" type="text"
+ tal:attributes="cur_fendev/ipaddr | nothing" />
+ </td>
</tr>
<tr>
<td>Login</td>
- <td><input name="login" type="text"/></td>
+ <td>
+ <input name="login" type="text"
+ tal:attributes="cur_fencedev/login | nothing" />
+ </td>
</tr>
<tr>
<td>Password</td>
<td>
- <input name="password" type="password" autocomplete="off"/>
+ <input name="password" type="password" autocomplete="off"
+ tal:attributes="value cur_fencedev/passwd | nothing" />
</td>
</tr>
</table>
@@ -985,9 +1080,16 @@
<div metal:define-macro="fence-form-sanbox2">
<div id="fence_sanbox2" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>QLogic SANbox2</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>IP Address</td>
@@ -995,12 +1097,16 @@
</tr>
<tr>
<td>Login</td>
- <td><input name="login" type="text"/></td>
+ <td>
+ <input name="login" type="text"
+ tal:attributes="cur_fencedev/login | nothing" />
+ </td>
</tr>
<tr>
<td>Password</td>
<td>
- <input name="password" type="password" autocomplete="off"/>
+ <input name="password" type="password" autocomplete="off"
+ tal:attributes="value cur_fencedev/passwd | nothing" />
</td>
</tr>
</table>
@@ -1011,18 +1117,29 @@
<div metal:define-macro="fence-form-vixel">
<div id="fence_vixel" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>Vixel SAN Switch</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>IP Address</td>
- <td><input name="ip_addr" type="text"/></td>
+ <td>
+ <input name="ip_addr" type="text"
+ tal:attributes="cur_fendev/ipaddr | nothing" />
+ </td>
</tr>
<tr>
<td>Password</td>
<td>
- <input name="password" type="password" autocomplete="off"/>
+ <input name="password" type="password" autocomplete="off"
+ tal:attributes="value cur_fencedev/passwd | nothing" />
</td>
</tr>
</table>
@@ -1033,13 +1150,23 @@
<div metal:define-macro="fence-form-gnbd">
<div id="fence_gnbd" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>GNBD</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>Servers (whitespace separated list)</td>
- <td><input name="servers" type="text"/></td>
+ <td>
+ <input name="servers" type="text"
+ tal:attributes="cur_fencedev/servers | nothing" />
+ </td>
</tr>
</table>
<input type="hidden" name="fence_type" value="fence_gnbd" />
@@ -1049,17 +1176,30 @@
<div metal:define-macro="fence-form-egenera">
<div id="fence_egenera" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>Egenera SAN Controller</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>CServer</td>
- <td><input name="cserver" type="text"/></td>
+ <td>
+ <input name="cserver" type="text"
+ tal:attributes="cur_fencedev/cserver | nothing" />
+ </td>
</tr>
<tr>
<td>ESH Path (Optional)</td>
- <td><input name="login" type="text" Title="default is /opt/pan-mgr/bin/esh"/></td>
+ <td>
+ <input name="login" type="text"
+ tal:attributes="cur_fencedev/login | string: /opt/pan-mgr/bin/esh" />
+ </td>
</tr>
</table>
<input type="hidden" name="fence_type" value="fence_egenera" />
@@ -1069,22 +1209,36 @@
<div metal:define-macro="fence-form-bladecenter">
<div id="fence_bladecenter" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>IBM Blade Center</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>IP Address</td>
- <td><input name="ip_addr" type="text" Title="IP Address or Hostname"/></td>
+ <td>
+ <input name="ip_addr" type="text"
+ tal:attributes="cur_fendev/ipaddr | nothing" />
+ </td>
</tr>
<tr>
<td>Login</td>
- <td><input name="login" type="text"/></td>
+ <td>
+ <input name="login" type="text"
+ tal:attributes="cur_fencedev/login | nothing" />
+ </td>
</tr>
<tr>
<td>Password</td>
<td>
- <input name="password" type="password" autocomplete="off"/>
+ <input name="password" type="password" autocomplete="off"
+ tal:attributes="value cur_fencedev/passwd | nothing" />
</td>
</tr>
</table>
@@ -1095,22 +1249,36 @@
<div metal:define-macro="fence-form-bullpap">
<div id="fence_bullpap" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>Bull PAP</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>IP Address</td>
- <td><input name="ip_addr" type="text" Title="IP Address or Hostname"/></td>
+ <td>
+ <input name="ip_addr" type="text"
+ tal:attributes="cur_fendev/ipaddr | nothing" />
+ </td>
</tr>
<tr>
<td>Login</td>
- <td><input name="login" type="text"/></td>
+ <td>
+ <input name="login" type="text"
+ tal:attributes="cur_fencedev/login | nothing" />
+ </td>
</tr>
<tr>
<td>Password</td>
<td>
- <input name="password" type="password" autocomplete="off"/>
+ <input name="password" type="password" autocomplete="off"
+ tal:attributes="value cur_fencedev/passwd | nothing" />
</td>
</tr>
</table>
@@ -1121,17 +1289,30 @@
<div metal:define-macro="fence-form-rps10">
<div id="fence_rps10" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>RPS10 Serial Switch</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>Device Name</td>
- <td><input name="device" type="text"/></td>
+ <td>
+ <input name="device" type="text"
+ tal:attributes="cur_fencedev/device | nothing" />
+ </td>
</tr>
<tr>
<td>Port</td>
- <td><input name="port" type="text"/></td>
+ <td>
+ <input name="port" type="text"
+ tal:attributes="cur_fencedev/port| nothing" />
+ </td>
</tr>
</table>
<input type="hidden" name="fence_type" value="fence_rps10"/>
@@ -1141,22 +1322,36 @@
<div metal:define-macro="fence-form-ipmilan">
<div id="fence_ipmilan" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>IPMI Lan</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<tr>
<td>IP Address</td>
- <td><input name="ip_addr" type="text"/></td>
+ <td>
+ <input name="ip_addr" type="text"
+ tal:attributes="cur_fendev/ipaddr | nothing" />
+ </td>
</tr>
<tr>
<td>Login</td>
- <td><input name="login" type="text"/></td>
+ <td>
+ <input name="login" type="text"
+ tal:attributes="cur_fencedev/login | nothing" />
+ </td>
</tr>
<tr>
<td>Password</td>
<td>
- <input name="password" type="password" autocomplete="off"/>
+ <input name="password" type="password" autocomplete="off"
+ tal:attributes="value cur_fencedev/passwd | nothing" />
</td>
</tr>
<tr>
@@ -1171,9 +1366,16 @@
<div metal:define-macro="fence-form-manual">
<div id="fence_manual" class="fencedev">
<table>
+ <tr tal:condition="exists: cur_fence_type">
+ <td><strong class="cluster">Fence Type</strong></td>
+ <td>Manual Fencing</td>
+ </tr>
<tr>
<td>Name</td>
- <td><input name="name" type="text"/></td>
+ <td>
+ <input name="name" type="text"
+ tal:attributes="cur_fencedev/name | nothing" />
+ </td>
</tr>
<input type="hidden" name="fence_type" value="fence_manual" />
</table>
next reply other threads:[~2006-10-16 18:58 UTC|newest]
Thread overview: 94+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-16 18:58 rmccabe [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-11-19 18:23 [Cluster-devel] conga/luci/cluster form-macros rmccabe
2007-08-09 20:26 rmccabe
2007-07-26 20:31 rmccabe
2007-06-12 15:33 rmccabe
2007-02-28 21:54 rmccabe
2007-02-28 21:42 rmccabe
2007-02-14 15:06 rmccabe
2007-02-14 15:04 rmccabe
2007-02-09 20:33 rmccabe
2007-02-09 20:32 rmccabe
2007-02-02 1:03 rmccabe
2007-01-30 21:39 jparsons
2007-01-30 21:06 jparsons
2007-01-26 16:53 rmccabe
2007-01-24 20:05 rmccabe
2007-01-22 21:18 rmccabe
2007-01-16 17:38 rmccabe
2007-01-16 17:37 rmccabe
2007-01-15 18:57 rmccabe
2007-01-15 18:57 rmccabe
2007-01-15 17:17 rmccabe
2007-01-09 22:20 rmccabe
2007-01-07 17:36 rmccabe
2006-12-22 17:18 kupcevic
2006-12-20 22:07 jparsons
2006-12-20 20:24 jparsons
2006-12-18 22:15 jparsons
2006-12-13 23:55 rmccabe
2006-12-13 23:54 rmccabe
2006-12-04 22:59 rmccabe
2006-11-30 22:31 jparsons
2006-11-30 22:31 jparsons
2006-11-30 22:21 jparsons
2006-11-30 22:19 jparsons
2006-11-30 21:28 jparsons
2006-11-30 21:24 jparsons
2006-11-30 20:47 jparsons
2006-11-30 20:45 jparsons
2006-11-30 20:10 jparsons
2006-11-29 22:24 jparsons
2006-11-28 19:39 jparsons
2006-11-20 20:21 jparsons
2006-11-20 20:13 jparsons
2006-11-07 1:31 jparsons
2006-11-03 21:11 jparsons
2006-11-03 21:09 jparsons
2006-11-03 21:07 jparsons
2006-10-31 13:23 rmccabe
2006-10-16 20:34 jparsons
2006-10-13 21:01 jparsons
2006-10-11 20:57 jparsons
2006-10-11 16:25 jparsons
2006-10-04 17:45 jparsons
2006-09-28 20:20 rmccabe
2006-09-25 15:59 rmccabe
2006-09-25 15:46 jparsons
2006-09-22 20:58 jparsons
2006-09-22 20:30 jparsons
2006-09-22 20:08 jparsons
2006-08-30 23:40 rmccabe
2006-08-30 22:57 rmccabe
2006-08-16 23:40 jparsons
2006-08-16 21:48 jparsons
2006-08-14 14:53 jparsons
2006-08-13 19:18 jparsons
2006-08-13 19:14 jparsons
2006-08-13 19:04 jparsons
2006-08-13 18:46 jparsons
2006-08-13 18:42 jparsons
2006-08-13 18:35 jparsons
2006-08-13 14:54 jparsons
2006-08-13 14:50 jparsons
2006-08-13 14:38 jparsons
2006-08-13 13:49 jparsons
2006-08-12 17:52 jparsons
2006-08-11 14:23 jparsons
2006-08-11 14:07 jparsons
2006-08-11 0:23 jparsons
2006-08-10 23:51 jparsons
2006-08-10 23:48 jparsons
2006-08-10 23:44 jparsons
2006-08-10 23:40 jparsons
2006-08-10 15:49 jparsons
2006-08-10 14:16 jparsons
2006-08-09 21:38 jparsons
2006-08-02 17:27 rmccabe
2006-08-01 15:43 jparsons
2006-07-28 19:49 jparsons
2006-07-25 20:17 jparsons
2006-07-25 17:40 jparsons
2006-07-24 20:10 jparsons
2006-07-21 17:16 jparsons
2006-07-14 16:09 jparsons
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061016185823.21091.qmail@sourceware.org \
--to=rmccabe@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).