Start of support for topologies before 2.X

Missing part:
* GNS3 VM
* Cloud
* Image

Ref #564

Early support of conversion from 1.5
This commit is contained in:
Julien Duponchelle
2016-07-07 12:10:42 +02:00
parent fd0e8f89db
commit ee533943c8
26 changed files with 1860 additions and 8 deletions

View File

@ -44,11 +44,12 @@ class Project:
:param status: Status of the project (opened / closed)
"""
def __init__(self, name=None, project_id=None, path=None, controller=None, status="opened", filename=None):
def __init__(self, name=None, project_id=None, path=None, controller=None, status="opened", filename=None, auto_start=False):
self._controller = controller
assert name is not None
self._name = name
self._auto_start = False
self._status = status
if project_id is None:
self._id = str(uuid4())
@ -81,6 +82,10 @@ class Project:
# Create the project on demand on the compute node
self._project_created_on_compute = set()
@property
def auto_start(self):
return self._auto_start
@property
def controller(self):
return self._controller