Error message that JIT sharing is only supported in Dynamips unstable

version if someone tries. Fixes #10.
This commit is contained in:
grossmj committed 2014-05-07 21:07:47 -06:00
1 parent c0a876af68
commit 29be7ac4e2
2 files changed
+6 -3

No files matched your search

+5 -2
View File
@@ -400,8 +400,11 @@ class Router(object):
if not self._image:
raise DynamipsError("Register an IOS image fist")
self._hypervisor.send("vm set_tsg {name} {group_id}".format(name=self._name,
group_id=group_id))
try:
self._hypervisor.send("vm set_tsg {name} {group_id}".format(name=self._name,
group_id=group_id))
except DynamipsError:
raise DynamipsError("JIT sharing is only supported in Dynamips >= 0.2.8-RC3 unstable")
log.info("router {name} [id={id}]: set in JIT sharing group {group_id}".format(name=self._name,
id=self._id,