Skip to contentSkip to conversation

conga/luci/site/luci/Extensions/ClusterModel M ...

Cluster-devel [email protected] 1 participant 1 message Sep 11, 2007

lore
Share & tools
lore
#0 lore raw

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

- renamed from luci/site/luci/Extensions/ClusterModel/Altname.py +15 -0
@@ -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
luci/site/luci/Extensions/ClusterModel/ModelBuilder.py +2 -0
@@ -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,