Rename OpSetClusterParams and LUSetClusterParams
authorIustin Pop <iustin@google.com>
Sat, 15 Jan 2011 11:56:01 +0000 (12:56 +0100)
committerIustin Pop <iustin@google.com>
Tue, 18 Jan 2011 11:47:11 +0000 (12:47 +0100)
Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>

doc/design-2.2.rst
lib/client/gnt_cluster.py
lib/client/gnt_os.py
lib/cmdlib.py
lib/opcodes.py
lib/rapi/rlib2.py

index 1eb0ee3..7916372 100644 (file)
@@ -716,7 +716,7 @@ hidden from the user and respectively the list of OSes which are
 blacklisted from new installations.
 
 These lists will be modifiable via ``gnt-os modify`` (implemented via
-``OpSetClusterParams``), such that even not-yet-existing OSes can be
+``OpClusterSetParams``), such that even not-yet-existing OSes can be
 preseeded into a given state.
 
 For the hidden OSes, they are fully functional except that they are not
index 924072a..de5a60d 100644 (file)
@@ -789,7 +789,7 @@ def SetClusterParams(opts, args):
     else:
       opts.reserved_lvs = utils.UnescapeAndSplit(opts.reserved_lvs, sep=",")
 
-  op = opcodes.OpSetClusterParams(vg_name=vg_name,
+  op = opcodes.OpClusterSetParams(vg_name=vg_name,
                                   drbd_helper=drbd_helper,
                                   enabled_hypervisors=hvlist,
                                   hvparams=hvparams,
index 9808d5e..3095a9e 100644 (file)
@@ -269,7 +269,7 @@ def ModifyOS(opts, args):
              " must be passed")
     return 1
 
-  op = opcodes.OpSetClusterParams(os_hvp=os_hvp,
+  op = opcodes.OpClusterSetParams(os_hvp=os_hvp,
                                   osparams=osp,
                                   hidden_os=ohid,
                                   blacklisted_os=oblk)
index a98b027..2f248fd 100644 (file)
@@ -2649,7 +2649,7 @@ class LUClusterRename(LogicalUnit):
     return clustername
 
 
-class LUSetClusterParams(LogicalUnit):
+class LUClusterSetParams(LogicalUnit):
   """Change the parameters of the cluster.
 
   """
index a5bb5a5..b8d4bfd 100644 (file)
@@ -486,7 +486,7 @@ class OpClusterRename(OpCode):
     ]
 
 
-class OpSetClusterParams(OpCode):
+class OpClusterSetParams(OpCode):
   """Change the parameters of the cluster.
 
   @type vg_name: C{str} or C{None}
index 9dc165e..e54509e 100644 (file)
@@ -198,7 +198,7 @@ class R_2_cluster_modify(baserlib.R_Generic):
     @return: a job id
 
     """
-    op = baserlib.FillOpcode(opcodes.OpSetClusterParams, self.request_body,
+    op = baserlib.FillOpcode(opcodes.OpClusterSetParams, self.request_body,
                              None)
 
     return baserlib.SubmitJob([op])