mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 06:21:15 +02:00
Merge branch '1.5' into 2.0
Conflicts: gns3server/handlers/api/compute/iou_handler.py
This commit is contained in:
commit
e46171b826
2 files changed
+8
-8
No files matched your search
@@ -1060,6 +1060,14 @@ class IOUVM(BaseNode):
|
||||
else:
|
||||
startup_config = startup_config.replace("%h", self._name)
|
||||
f.write(startup_config)
|
||||
|
||||
vlan_file = os.path.join(self.working_dir, "vlan.dat-{:05d}".format(self.application_id))
|
||||
if os.path.exists(vlan_file):
|
||||
try:
|
||||
os.remove(vlan_file)
|
||||
except OSError as e:
|
||||
log.error("Could not delete VLAN file '{}': {}".format(vlan_file, e))
|
||||
|
||||
except OSError as e:
|
||||
raise IOUError("Can't write startup-config file '{}': {}".format(startup_config_path, e))
|
||||
|
||||
|
||||
Reference in new issue
Block a user