From mboxrd@z Thu Jan 1 00:00:00 1970 From: jparsons@sourceware.org Date: 24 Oct 2006 15:05:30 -0000 Subject: [Cluster-devel] conga/luci/site/luci/Extensions ModelBuilder.p ... Message-ID: <20061024150530.27768.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: jparsons at sourceware.org 2006-10-24 15:05:29 Modified files: luci/site/luci/Extensions: ModelBuilder.py cluster_adapters.py Log message: bz211942 xenvm name change Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ModelBuilder.py.diff?cvsroot=cluster&r1=1.8&r2=1.9 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.126&r2=1.127 --- conga/luci/site/luci/Extensions/ModelBuilder.py 2006/10/16 20:46:55 1.8 +++ conga/luci/site/luci/Extensions/ModelBuilder.py 2006/10/24 15:05:28 1.9 @@ -33,7 +33,7 @@ from Service import Service from QuorumD import QuorumD from Heuristic import Heuristic -from Xenvm import Xenvm +from Vm import Vm from RefObject import RefObject from FailoverDomain import FailoverDomain from FailoverDomains import FailoverDomains @@ -57,7 +57,7 @@ 'lockserver':Lockserver, 'rm':Rm, 'service':Service, - 'xenvm':Xenvm, + 'vm':Vm, 'resources':Resources, 'failoverdomain':FailoverDomain, 'failoverdomains':FailoverDomains, @@ -86,7 +86,7 @@ RESOURCES_PTR_STR="resources" FENCEDAEMON_PTR_STR="fence_daemon" SERVICE="service" -XENVM="xenvm" +VM="vm" GULM_TAG_STR="gulm" MCAST_STR="multicast" CMAN_PTR_STR="cman" @@ -663,7 +663,7 @@ if self.resourcemanager_ptr != None: kids = self.resourcemanager_ptr.getChildren() for kid in kids: - if kid.getTagName() == XENVM: + if kid.getTagName() == VM: rg_list.append(kid) return rg_list --- conga/luci/site/luci/Extensions/cluster_adapters.py 2006/10/24 14:08:50 1.126 +++ conga/luci/site/luci/Extensions/cluster_adapters.py 2006/10/24 15:05:28 1.127 @@ -16,7 +16,7 @@ from NFSClient import NFSClient from NFSExport import NFSExport from Netfs import Netfs -from Xenvm import Xenvm +from Vm import Vm from Script import Script from Samba import Samba from clusterOS import resolveOSType @@ -942,10 +942,10 @@ if model.getIsVirtualized() == True: vmadd = {} - vmadd['Title'] = "Add a XenVM" + vmadd['Title'] = "Add a Virtual Service" vmadd['cfg_type'] = "xenvmadd" vmadd['absolute_url'] = url + "?pagetype=" + XENVM_ADD + "&clustername=" + cluname - vmadd['Description'] = "Add a XenVM to this cluster" + vmadd['Description'] = "Add a Virtual Service to this cluster" if pagetype == XENVM_ADD: vmadd['currentItem'] = True else: @@ -995,7 +995,7 @@ svc['Title'] = xenname svc['cfg_type'] = "xenvm" svc['absolute_url'] = url + "?pagetype=" + XENVM_CONFIG + "&servicename=" + xenname + "&clustername=" + cluname - svc['Description'] = "Configure this XenVM" + svc['Description'] = "Configure this Virtual Service" if pagetype == XENVM_CONFIG: try: xname = request['servicename'] @@ -2635,7 +2635,7 @@ isNew = True if isNew == True: - xvm = Xenvm() + xvm = Vm() xvm.addAttribute("name", req.form['xenvmname']) xvm.addAttribute("path", req.form['xenvmpath']) rmptr = model.getResourceManagerPtr()