I think I found a bug, not sure if I heavy handed it based on my lack of knowledge about the codebase, but here goes:
OS: Linux , Ubuntu 10.4
Release Tested: .7 Stable, and the Latest Dev version from code.gns3.net
Issue: While trying to utilize QEMU for ASA and making a connection to a switch I would get a message like this as an exception ( note I took this form the forum as it is the same exact error) :
Code:
Traceback (most recent call last):
File "/home/john/gns3/GNS3-0.7-src/src/GNS3/UndoFramework.py", line 133, in redo
self.status = self.topology.addLink(self.srcid, self.srcif, self.dstid, self.dstif)
File "/home/john/gns3/GNS3-0.7-src/src/GNS3/Topology.py", line 760, in addLink
self.dynagen.connect(srcdev, srcif, dstdev.name + ' ' + dstif)
File "/home/john/gns3/GNS3-0.7-src/src/GNS3/Dynagen/dynagen.py", line 663, in connect
port2,
File "/home/john/gns3/GNS3-0.7-src/src/GNS3/Dynagen/qemu_lib.py", line 517, in connect_to_dynamips
dowarning('Connecting %s port %s to %s slot %s port %s:\nin case of multi-server operation make sure you do not use "localhost" string in definition of dynamips hypervisor.\n'% (self.name, local_port, remote_slot.router.name, remote_slot.adapter, remote_port))
AttributeError: 'ETHSW' object has no attribute 'router'
I went ahead and traced this back to :
Code:
dowarning('Connecting %s port %s to %s slot %s port %s:\nin case of multi-server operation make sure you do not use "localhost" string in definition of dynamips hypervisor.\n'% (self.name, local_port, remote_slot.router.name, remote_slot.adapter, remote_port))
it seems the remote_slot.router.name call is breaking there. So I simply removed that, and the %s slot in the dowarning, and it works. Kludge for sure, I guess the issue is the remote_slot object does not contain the router attrib as the error mentions.
I will continue to try to work this out, but I just wanted to make sure this was an actual bug, and not something that had gone wrong on my end.
Thanks,
DR