Fixes IOS adapters and WICS cannot be removed. Fixes #282.

This commit is contained in:
Jeremy 2015-07-26 15:51:55 -06:00
parent 4aeb451ffd
commit 76fe0cb316

View File

@ -160,7 +160,7 @@ class Router(BaseVM):
for slot in self._slots: for slot in self._slots:
if slot: if slot:
slot = str(slot) slot = str(slot)
router_info["slot" + str(slot_number)] = slot router_info["slot" + str(slot_number)] = slot
slot_number += 1 slot_number += 1
# add the wics # add the wics
@ -168,6 +168,8 @@ class Router(BaseVM):
for wic_slot_number in range(0, len(self._slots[0].wics)): for wic_slot_number in range(0, len(self._slots[0].wics)):
if self._slots[0].wics[wic_slot_number]: if self._slots[0].wics[wic_slot_number]:
router_info["wic" + str(wic_slot_number)] = str(self._slots[0].wics[wic_slot_number]) router_info["wic" + str(wic_slot_number)] = str(self._slots[0].wics[wic_slot_number])
else:
router_info["wic" + str(wic_slot_number)] = None
return router_info return router_info