Merge latest changes from the POC.

This commit is contained in:
Jeremy committed 2015-01-13 18:26:32 -07:00
1 parent 6d20a122f8
commit 369cd06279
9 files changed
+245 -97

No files matched your search

+6 -13
View File
@@ -19,19 +19,12 @@
VPCS server module.
"""
import asyncio
from ..base import BaseModule
from ..vm_manager import VMManager
from .vpcs_device import VPCSDevice
class VPCS(BaseModule):
class VPCS(VMManager):
_VM_CLASS = VPCSDevice
@asyncio.coroutine
def process(self, json):
yield from asyncio.sleep(1)
return 42
@asyncio.coroutine
def create(self, json):
i = yield from self.put(json)
return i
def create_vm(self, name):
return super().create_vm(name)