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)
+23
View File
@@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015 GNS3 Technologies Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from ..base_vm import BaseVM
class VPCSDevice(BaseVM):
pass