Reset MAC addresses when duplicating a project. Fixes #1522

This commit is contained in:
grossmj committed 2019-02-20 16:38:43 +07:00
1 parent 657698a961
commit 1ef1872f8e
3 files changed
+12 -7

No files matched your search

+1 -1
View File
@@ -929,7 +929,7 @@ class Project:
self.dump()
try:
with tempfile.TemporaryDirectory() as tmpdir:
zipstream = yield from export_project(self, tmpdir, keep_compute_id=True, allow_all_nodes=True)
zipstream = yield from export_project(self, tmpdir, keep_compute_id=True, allow_all_nodes=True, reset_mac_addresses=True)
project_path = os.path.join(tmpdir, "project.gns3p")
yield from wait_run_in_executor(self._create_duplicate_project_file, project_path, zipstream)
with open(project_path, "rb") as f: