Error message that JIT sharing is only supported in Dynamips unstable

version if someone tries. Fixes #10.
pull/12/head
grossmj 10 years ago
parent c0a876af68
commit 29be7ac4e2

@ -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,

@ -46,7 +46,7 @@ setup(
long_description=open("README.rst", "r").read(),
install_requires=[
"tornado>=3.1",
"pyzmq>=14.0.0",
"pyzmq>=13.1.0", # this is the strict minimum, recommended is >= 14.0.0
"jsonschema==2.3.0"
],
entry_points={

Loading…
Cancel
Save