From 809156c6c9d8a49d71f400b76dd81bbea58cab09 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 1 Jun 2011 19:35:27 +0200 Subject: [PATCH] feature #662: New instantiate method for VMTemplate --- src/rm/RequestManager.cc | 5 +++++ src/rm/SConstruct | 1 + 2 files changed, 6 insertions(+) diff --git a/src/rm/RequestManager.cc b/src/rm/RequestManager.cc index 924acfba4a..17adba4026 100644 --- a/src/rm/RequestManager.cc +++ b/src/rm/RequestManager.cc @@ -27,6 +27,7 @@ #include "RequestManagerVirtualNetwork.h" #include "RequestManagerVirtualMachine.h" +#include "RequestManagerVMTemplate.h" #include #include @@ -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); diff --git a/src/rm/SConstruct b/src/rm/SConstruct index 9d3502ff07..7af52e310d 100644 --- a/src/rm/SConstruct +++ b/src/rm/SConstruct @@ -32,6 +32,7 @@ source_files=[ 'RequestManagerAllocate.cc', 'RequestManagerVirtualNetwork.cc', 'RequestManagerVirtualMachine.cc', + 'RequestManagerVMTemplate.cc', # 'RequestManagerAction.cc', # 'RequestManagerAllocate.cc',