Fix #557 - mac addess collision when running IOU on multiple GNS3 servers

This commit is contained in:
ziajka committed 2017-06-27 10:09:21 +02:00
1 parent 1d09f423e5
commit 6aa2afcf54
7 files changed
+148 -36

No files matched your search

+4 -1
View File
@@ -39,7 +39,7 @@ from ..utils.asyncio.pool import Pool
from ..utils.asyncio import locked_coroutine
from .export_project import export_project
from .import_project import import_project
from ..compute.iou.utils.application_id import get_next_application_id
import logging
log = logging.getLogger(__name__)
@@ -353,6 +353,9 @@ class Project:
if node_id in self._nodes:
return self._nodes[node_id]
if node_type == "iou" and 'application_id' not in kwargs.keys():
kwargs['application_id'] = get_next_application_id(self._nodes.values())
node = Node(self, compute, name, node_id=node_id, node_type=node_type, **kwargs)
if compute not in self._project_created_on_compute:
# For a local server we send the project path