1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #662: New instantiate method for VMTemplate

This commit is contained in:
Ruben S. Montero 2011-06-01 19:35:27 +02:00
parent af3eed6063
commit 809156c6c9
2 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include "RequestManagerVirtualNetwork.h"
#include "RequestManagerVirtualMachine.h"
#include "RequestManagerVMTemplate.h"
#include <sys/signal.h>
#include <sys/socket.h>
@ -223,6 +224,9 @@ void RequestManager::do_action(
void RequestManager::register_xml_methods()
{
// VirtualMachine Methods
xmlrpc_c::methodPtr template_instantiate(new VMTemplateInstantiate());
// VirtualMachine Methods
xmlrpc_c::methodPtr vm_deploy(new VirtualMachineDeploy());
xmlrpc_c::methodPtr vm_migrate(new VirtualMachineMigrate());
@ -368,6 +372,7 @@ void RequestManager::register_xml_methods()
RequestManagerRegistry.addMethod("one.template.rmattr", template_rm_attribute);
RequestManagerRegistry.addMethod("one.template.chown", template_chown);
*/
RequestManagerRegistry.addMethod("one.template.instantiate",template_instantiate);
RequestManagerRegistry.addMethod("one.template.allocate",template_allocate);
RequestManagerRegistry.addMethod("one.template.publish", template_publish);
RequestManagerRegistry.addMethod("one.template.delete", template_delete);

View File

@ -32,6 +32,7 @@ source_files=[
'RequestManagerAllocate.cc',
'RequestManagerVirtualNetwork.cc',
'RequestManagerVirtualMachine.cc',
'RequestManagerVMTemplate.cc',
# 'RequestManagerAction.cc',
# 'RequestManagerAllocate.cc',