Fixes important issue when searching for a free port.

This commit is contained in:
Jeremy committed 2014-11-12 19:49:02 -07:00
1 parent f6561bf684
commit a9e924934a
3 files changed
+12 -9

No files matched your search

+8 -2
View File
@@ -157,7 +157,10 @@ class Dynamips(IModule):
# automatically save configs for all router instances
for router_id in self._routers:
router = self._routers[router_id]
router.save_configs()
try:
router.save_configs()
except DynamipsError:
continue
# stop all Dynamips hypervisors
if self._hypervisor_manager:
@@ -232,7 +235,10 @@ class Dynamips(IModule):
# automatically save configs for all router instances
for router_id in self._routers:
router = self._routers[router_id]
router.save_configs()
try:
router.save_configs()
except DynamipsError:
continue
# stop all Dynamips hypervisors
if self._hypervisor_manager: