From eb5e019a26754a5af104ba8d0f3d40b5caa0bb4f Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 26 Jul 2015 15:51:55 -0600 Subject: [PATCH] Fixes IOS adapters and WICS cannot be removed. Fixes #282. --- gns3server/modules/dynamips/nodes/router.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gns3server/modules/dynamips/nodes/router.py b/gns3server/modules/dynamips/nodes/router.py index 43c14a9e..3abb8a96 100644 --- a/gns3server/modules/dynamips/nodes/router.py +++ b/gns3server/modules/dynamips/nodes/router.py @@ -164,7 +164,7 @@ class Router(BaseVM): for slot in self._slots: if slot: slot = str(slot) - router_info["slot" + str(slot_number)] = slot + router_info["slot" + str(slot_number)] = slot slot_number += 1 # add the wics @@ -172,6 +172,8 @@ class Router(BaseVM): for wic_slot_number in range(0, len(self._slots[0].wics)): if 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