- - added logging variable 'object_type'
authorTony Mack <tmack@cs.princeton.edu>
Fri, 19 Jan 2007 17:43:08 +0000 (17:43 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 19 Jan 2007 17:43:08 +0000 (17:43 +0000)
13 files changed:
PLC/Methods/AddConfFileToNode.py
PLC/Methods/AddNode.py
PLC/Methods/AddNodeToPCU.py
PLC/Methods/AddSliceToNodes.py
PLC/Methods/BootUpdateNode.py
PLC/Methods/DeleteConfFileFromNode.py
PLC/Methods/DeleteNode.py
PLC/Methods/DeleteNodeFromPCU.py
PLC/Methods/DeleteSliceFromNodes.py
PLC/Methods/RebootNode.py
PLC/Methods/SliceNodesAdd.py
PLC/Methods/SliceNodesDel.py
PLC/Methods/UpdateNode.py

index 3fa9c57..4290cf8 100644 (file)
@@ -24,6 +24,8 @@ class AddConfFileToNode(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
 
     def call(self, auth, conf_file_id, node_id_or_hostname):
        # Get configuration file
index 485667b..e355dca 100644 (file)
@@ -33,6 +33,8 @@ class AddNode(Method):
 
     returns = Parameter(int, 'New node_id (> 0) if successful')
 
+    object_type = 'Node'
+
 
     def call(self, auth, site_id_or_login_base, node_fields):
         node_fields = dict(filter(can_update, node_fields.items()))
index ff40541..f1c1961 100644 (file)
@@ -27,6 +27,8 @@ class AddNodeToPCU(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
     def call(self, auth, node_id_or_hostname, pcu_id, port):
         # Get node
         nodes = Nodes(self.api, [node_id_or_hostname])
index 04e5d3b..c57cfb2 100644 (file)
@@ -28,6 +28,8 @@ class AddSliceToNodes(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
 
     def call(self, auth, slice_id_or_name, node_id_or_hostname_list):
         # Get slice information
index 271da9f..5c1762a 100644 (file)
@@ -30,6 +30,8 @@ class BootUpdateNode(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
     def call(self, auth, node_fields):
         # Update node state
         if node_fields.has_key('boot_state'):
index c8eba25..0c30cf9 100644 (file)
@@ -24,6 +24,8 @@ class DeleteConfFileFromNode(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
 
     def call(self, auth, conf_file_id, node_id_or_hostname):
        # Get configuration file
index 48bff2e..d0bf3a5 100644 (file)
@@ -24,6 +24,8 @@ class DeleteNode(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
 
     def call(self, auth, node_id_or_hostname):
         # Get account information
index 0cf0845..cf7f93f 100644 (file)
@@ -25,6 +25,8 @@ class DeleteNodeFromPCU(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
 
     def call(self, auth, node_id_or_hostname, pcu_id):
         # Get node
index 75c7276..87e2e07 100644 (file)
@@ -25,6 +25,8 @@ class DeleteSliceFromNodes(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
 
     def call(self, auth, slice_id_or_name, node_id_or_hostname_list):
         # Get slice information
index a3796d2..bffa3da 100644 (file)
@@ -30,6 +30,8 @@ class RebootNode(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
     def call(self, auth, node_id_or_hostname):
         # Get account information
         nodes = Nodes(self.api, [node_id_or_hostname])
index c4aba6e..e99ee52 100644 (file)
@@ -24,6 +24,8 @@ class SliceNodesAdd(AddSliceToNodes):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
 
     def call(self, auth, slice_name, nodes_list):
 
index 0650922..8f2a395 100644 (file)
@@ -24,6 +24,8 @@ class SliceNodesDel(DeleteSliceFromNodes):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
 
     def call(self, auth, slice_name, nodes_list):
 
index 5440307..b82325e 100644 (file)
@@ -32,6 +32,8 @@ class UpdateNode(Method):
 
     returns = Parameter(int, '1 if successful')
 
+    object_type = 'Node'
+
     def call(self, auth, node_id_or_hostname, node_fields):
         node_fields = dict(filter(can_update, node_fields.items()))