From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 11 Sep 2007 19:04:33 -0000 Subject: [Cluster-devel] conga/luci/site/luci/Extensions/ClusterModel M ... Message-ID: <20070911190433.1956.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: rmccabe at sourceware.org 2007-09-11 19:04:32 Modified files: luci/site/luci/Extensions/ClusterModel: ModelBuilder.py Added files: luci/site/luci/Extensions/ClusterModel: Altname.py Log message: Make the model recognize the 'altname' tag for proper configuration of multi-homed nodes Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/Altname.py.diff?cvsroot=cluster&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/ModelBuilder.py.diff?cvsroot=cluster&r1=1.8&r2=1.9 /cvs/cluster/conga/luci/site/luci/Extensions/ClusterModel/Altname.py,v --> standard output revision 1.1 --- conga/luci/site/luci/Extensions/ClusterModel/Altname.py +++ - 2007-09-11 19:04:33.148571000 +0000 @@ -0,0 +1,15 @@ +# Copyright (C) 2007 Red Hat, Inc. +# +# This program is free software; you can redistribute +# it and/or modify it under the terms of version 2 of the +# GNU General Public License as published by the +# Free Software Foundation. + +from TagObject import TagObject + +TAG_NAME = 'altname' + +class Altname(TagObject): + def __init__(self): + TagObject.__init__(self) + self.TAG_NAME = TAG_NAME --- conga/luci/site/luci/Extensions/ClusterModel/ModelBuilder.py 2007/09/11 16:04:34 1.8 +++ conga/luci/site/luci/Extensions/ClusterModel/ModelBuilder.py 2007/09/11 19:04:32 1.9 @@ -48,6 +48,7 @@ from FailoverDomains import FailoverDomains from FailoverDomainNode import FailoverDomainNode from Rm import Rm +from Altname import Altname DLM_TYPE = 0 GULM_TYPE = 1 @@ -55,6 +56,7 @@ TAGNAMES = { 'cluster': Cluster, 'clusternodes': ClusterNodes, 'clusternode': ClusterNode, + 'altname': Altname, 'fence': Fence, 'fencedevice': FenceDevice, 'fencedevices': FenceDevices,