New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NOTE' and 'SHAPE' elements of files are processed as devices #1

eatsleeproute opened this Issue Aug 17, 2014 · 0 comments


None yet
2 participants

eatsleeproute commented Aug 17, 2014

The keys 'NOTE and 'SHAPE' do not exist in the dictionary dev_type so when device_typename() is passed either of these values it causes the below error.

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.4/bin/gns3-converter", line 9, in
load_entry_point('gns3-converter==0.1.0', 'console_scripts', 'gns3-converter')()
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gns3converter/", line 42, in main
(devices, conf) = gns3_conv.process_topology(sections, old_top)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gns3converter/", line 115, in process_topology
topo.add_physical_item(instance, item)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gns3converter/", line 59, in add_physical_item
(device_name, device_type) = self.device_typename(item)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gns3converter/", line 118, in device_typename
name = item.replace('%s ' % dev_type[item_type]['from'], '')
KeyError: 'NOTE'

@dlintott dlintott self-assigned this Aug 17, 2014

@dlintott dlintott added the bug label Aug 17, 2014

@dlintott dlintott closed this in 981fa70 Aug 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment