From: kupcevic@sourceware.org <kupcevic@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/cluster validate_fence.js
Date: 4 Oct 2006 17:25:21 -0000 [thread overview]
Message-ID: <20061004172521.1521.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-10-04 17:25:20
Added files:
luci/cluster : validate_fence.js
Log message:
missing file, remove if not needed any more
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/validate_fence.js.diff?cvsroot=cluster&r1=NONE&r2=1.1
/cvs/cluster/conga/luci/cluster/validate_fence.js,v --> standard output
revision 1.1
--- conga/luci/cluster/validate_fence.js
+++ - 2006-10-04 17:25:21.448409000 +0000
@@ -0,0 +1,48 @@
+function validate_fence_apc(form) {
+ return (0);
+}
+
+function validate_fence_wti(form) {
+ return (0);
+}
+
+function validate_fence_rsa(form) {
+ return (0);
+}
+
+function validate_fence_ilo(form) {
+ return (0);
+}
+
+function validate_fence_drac(form) {
+ return (0);
+}
+
+function validate_fence_ipmilan(form) {
+ return (0);
+}
+
+var fence_validator = new Object();
+fence_validator['apc'] = validate_fence_apc;
+fence_validator['wti'] = validate_fence_wti;
+fence_validator['rsa'] = validate_fence_rsa;
+fence_validator['ilo'] = validate_fence_ilo;
+fence_validator['drac'] = validate_fence_drac;
+fence_validator['ipmilan'] = validate_fence_ipmilan;
+
+function validate_fence_common(form) {
+ return (null);
+}
+
+function validate_fence(form) {
+ if (!form || !form.fence_type || !form.fence_type.value)
+ return (-1);
+ var errors = validate_fence_common(form);
+ var f = fence_validator[form.fence_type.value];
+ if (!f)
+ return (-1);
+ var err = f(form);
+ if (err)
+ errors = errors.concat(err);
+ return (errors);
+}
next reply other threads:[~2006-10-04 17:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-04 17:25 kupcevic [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-02-16 23:25 [Cluster-devel] conga/luci/cluster validate_fence.js rmccabe
2007-02-16 23:26 rmccabe
2007-07-23 15:09 rmccabe
2007-07-26 4:14 rmccabe
2008-04-23 17:23 rmccabe
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=20061004172521.1521.qmail@sourceware.org \
--to=kupcevic@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).