mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 14:31:13 +02:00
Merge latest changes from the POC.
This commit is contained in:
1 parent
6d20a122f8
commit
369cd06279
9 files changed
+245
-97
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user