mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +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)
|
||||
@@ -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
|
||||
Reference in new issue
Block a user