1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 03:08:14 +00:00

Work around for the c7200 reload bug in Dynamips <= 0.2.13.

This commit is contained in:
grossmj 2014-07-17 18:03:21 -06:00
parent 1fb4ab7e33
commit f5cf7363da

View File

@ -24,6 +24,7 @@ from ..dynamips_error import DynamipsError
from .router import Router
from ..adapters.c7200_io_2fe import C7200_IO_2FE
from ..adapters.c7200_io_ge_e import C7200_IO_GE_E
from pkg_resources import parse_version
import logging
log = logging.getLogger(__name__)
@ -54,6 +55,10 @@ class C7200(Router):
if npe != "npe-400":
self.npe = npe
if parse_version(hypervisor.version) <= parse_version('0.2.13'):
# work around a bug when rebooting a router with NPE-400 in Dynamips <= 0.2.13
self.npe = "npe-200"
# 4 sensors with a default temperature of 22C:
# sensor 1 = I/0 controller inlet
# sensor 2 = I/0 controller outlet