Beispiel #1
0
 def replace_nodes(self, account, node_uuid, struct):
     '''
         Replace nodes
     '''
     try:
         nodes = nodes.Nodes(struct)
         nodes.validate()
         nodes = clean_structure(nodes)
     except Exception, e:
         logging.error(e)
         raise e
Beispiel #2
0
 def modify_nodes(self, account, node_uuid, struct):
     '''
         Modify nodes
     '''
     try:
         nodes = nodes.ModifyNodes(struct)
         nodes.validate()
         nodes = clean_structure(nodes)
     except Exception, e:
         logging.error(e)
         message = str(e)
         raise e