summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/comandos/jscripts
diff options
context:
space:
mode:
authoradv <adv@uma.es>2011-04-08 13:04:06 +0000
committeradv <adv@uma.es>2011-04-08 13:04:06 +0000
commitfe86970a00c5913b0706ddf66c8ee461315f89ec (patch)
treeaba3139aa1b86da7d6a92a381cc511b740e4cf68 /admin/WebConsole/comandos/jscripts
parent489537290b960ac4e9f3b57b2e15480720aa78d9 (diff)
version1.0 eliminandos pruebas de asistentes dentro de estructura comandos #359
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1752 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/comandos/jscripts')
-rw-r--r--admin/WebConsole/comandos/jscripts/asistentes.js83
1 files changed, 0 insertions, 83 deletions
diff --git a/admin/WebConsole/comandos/jscripts/asistentes.js b/admin/WebConsole/comandos/jscripts/asistentes.js
deleted file mode 100644
index e2b97903..00000000
--- a/admin/WebConsole/comandos/jscripts/asistentes.js
+++ /dev/null
@@ -1,83 +0,0 @@
-// ***********************************************************************************************************
-// Libreria de scripts de Javascript
-// Autor:
-// Fecha Creación: 2011
-// Fecha Última modificación: enero-2011
-// Nombre del fichero: asistentes.js
-// Descripción :
-// Este fichero implementa las funciones javascript del fichero AsistentesEjecutarScripts.php (Comandos)
-// ***********************************************************************************************************
-
-function codeCloneRemotePartition(form){
-form.codigo.value="cloneRemoteFromMaster " + form.ipMaster.value + " 1 " + form.PartOrigen.value + " " + form.mcastpuerto.value + ":" + form.mcastmodo.value + ":" + form.mcastdireccion.value + ":" + form.mcastvelocidad.value + "M:" + form.mcastnclien.value + ":" + form.mcastseg.value + " 1 " + form.PartOrigen.value + " " + form.tool.value + " " + form.compresor.value;
-}
-
-function codeDeployImage(form){
-switch (form.idmetodo.value)
-{
- case "MULTICAST":
- protocol="MULTICAST " + form.mcastpuerto.value + ":" + form.mcastmodo.value + ":" + form.mcastdireccion.value + ":" + form.mcastvelocidad.value + "M:" + form.mcastnclien.value + ":" + form.mcastseg.value + " ";
- break;
- case "TORRENT":
- protocol=" TORRENT " + form.modp2p.value + ":" + form.timep2p.value;
- break;
-}
-//form.codigo.value="deployImage REPO /";
-form.codigo.value="deployImage REPO /" + form.idimagen.value + " 1 " + form.idparticion.value + " " + protocol ;
-}
-
-function codeParticionado(form){
-var value1;
-var value2;
-var value3;
-var precache;
-if (form.check1.checked) {
- if (form.part1.value == "CUSTOM" ) {value1 = form.part1custom.value}
- else {value1 = form.part1.value};
- if (form.size1.value == "CUSTOM") {value1 += ":" + form.size1custom.value}
- else {value1 += ":" + form.size1.value};
-}
-else
-{
- value1 = "EMPTY:1"
-}
-if (form.check2.checked) {
- if (form.part2.value == "CUSTOM" ) {value2 = form.part2custom.value}
- else {value2 = form.part2.value};
- if (form.size2.value == "CUSTOM") {value2 += ":" + form.size2custom.value}
- else {value2 += ":" + form.size2.value};
-}
-else
-{
- value2 = "EMPTY:1"
-}
-if (form.check3.checked) {
- if (form.part3.value == "CUSTOM" ) {value3 = form.part3custom.value}
- else {value3 = form.part3.value};
- if (form.size3.value == "CUSTOM") {value3 += ":" + form.size3custom.value}
- else {value3 += ":" + form.size3.value};
-}
-else
-{
- value3 = "EMPTY:1"
-}
-
-if (form.size4.value == "0") {
-precache="ogUnmountCache \n ogUnmountAll 1 \n sizecache=`ogGetPartitionSize 1 4` \n ogDeletePartitionTable 1 \n ogUpdatePartitionTable 1 \n initCache $sizecache ";
-//alert(precache);
-}
-else
-{
-precache="ogUnmountCache \n ogUnmountAll 1 \n ogDeletePartitionTable 1 \n ogUpdatePartitionTable 1 \n initCache " + form.size4.value + " ";
-//alert(precache);
-}
-
-
-form.codigo.value="\
-" + precache + " \n \
-ogListPartitions 1 \n \
-ogCreatePartitions 1 " + value1 + " " + value2 + " " + value3 + " \n \
-ogSetPartitionActive 1 1 \n \
-ogUpdatePartitionTable 1 \n \
-ogListPartitions 1 \n";
-}