[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/luci/cluster validate_fence.js



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	kupcevic 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);
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]