It is currently Mon Sep 28, 2020 2:47 pm


All times are UTC




Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: GNS3 converter [SOLVED]
PostPosted: Thu Sep 25, 2014 8:34 pm 
Offline

Joined: Thu Sep 11, 2014 3:19 pm
Posts: 32
ref post http://forum.gns3.net/topic11980-30.html

With help from Daniel I have created a python virtual environment. From inside this virtual environment I installed a gns3 converter which was supposed to enable gns3 beta3 the ability to open labs created in gns3 stable 0.8.6.
Quote:
pip install gns3-converter
. However, this is not working.




Last edited by drogers on Thu Oct 02, 2014 4:24 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: GNS3 converter
PostPosted: Thu Sep 25, 2014 8:37 pm 
Offline

Joined: Thu Sep 11, 2014 3:19 pm
Posts: 32
credit goes to Daniel Claydon for the converter, see http://forum.gns3.net/topic11562.html


Top
 Profile  
 
 Post subject: Re: GNS3 converter
PostPosted: Thu Sep 25, 2014 9:42 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
Hi again :P

At the moment you need to convert the topology before opening it with GNS3 v1.

See: http://gns3-converter.readthedocs.org/e ... usage.html

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 converter
PostPosted: Thu Sep 25, 2014 10:31 pm 
Offline

Joined: Thu Sep 11, 2014 3:19 pm
Posts: 32
Daniel

I followed the instructions http://gns3-converter.readthedocs.org/en/latest/usage.html, I tried this on several labs and all had the same output, listed below. Not even sure where to go from here, I google'd the 5520 error but all that returned was related to ASA's.



(gns3v1-python) [email protected]:/media/E1/Projects/CCNP_lab11B-EIGRPMulti-Technology# gns3-converter topology.net
GNS3 Topology Converter
Traceback (most recent call last):
File "/root/gns3v1-python/bin/gns3-converter", line 9, in <module>
load_entry_point('gns3-converter==0.3.5', 'console_scripts', 'gns3-converter')()
File "/root/gns3v1-python/lib/python3.4/site-packages/gns3converter/main.py", line 60, in main
do_conversion(topology, args)
File "/root/gns3v1-python/lib/python3.4/site-packages/gns3converter/main.py", line 101, in do_conversion
(topology) = gns3_conv.process_topology(old_top)
File "/root/gns3v1-python/lib/python3.4/site-packages/gns3converter/converter.py", line 142, in process_topology
topo.add_physical_item(instance, item)
File "/root/gns3v1-python/lib/python3.4/site-packages/gns3converter/topology.py", line 149, in add_physical_item
(name, dev_type) = self.device_typename(item)
File "/root/gns3v1-python/lib/python3.4/site-packages/gns3converter/topology.py", line 226, in device_typename
name = item.replace('%s ' % dev_type[item_type]['from'], '')
KeyError: '5520'


Top
 Profile  
 
 Post subject: Re: GNS3 converter
PostPosted: Fri Sep 26, 2014 9:34 am 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
Ah... The converter won't currently convert a topology with an ASA (or any QEMU device) as I needed to wait for it to be implemented before I can add it to the converter.

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 converter
PostPosted: Mon Sep 29, 2014 2:52 pm 
Offline

Joined: Thu Sep 11, 2014 3:19 pm
Posts: 32
Dan,

I went back and found a lab where I did not use qemu/ASA and was going to test the converter, below is the output from terminal.

[email protected]:/home/darren/Downloads/gns3# ~/gns3v1-python/bin/activate
bash: /root/gns3v1-python/bin/activate: Permission denied

[email protected]:/home/darren/Downloads/gns3# cd /root/
[email protected]:~# ls -l
total 12
drwxr-xr-x 2 root root 4096 May 29 12:06 Desktop
drwxr-xr-x 3 root root 4096 Sep 23 15:41 GNS3
drwxr-xr-x 6 root root 4096 Sep 25 09:00 gns3v1-python
[email protected]:~#

From the above output I am obviously root, the file obviously is owned by root...so I'm at a loss on this, and cannot test the converter on my lab that does not have qemu/asa.

Respectfully,
Darren Rogers


Top
 Profile  
 
 Post subject: Re: GNS3 converter
PostPosted: Mon Sep 29, 2014 6:15 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
You are missing the source command in your activate line.

$ source ~/gns3v1/bin/activate

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 converter
PostPosted: Tue Sep 30, 2014 10:07 pm 
Offline

Joined: Thu Sep 11, 2014 3:19 pm
Posts: 32
Holy [email protected]'m an id10t!!! LOL

OK, back the converter, I tried to use the converter on a topology without an ASA installed,

[email protected]:/media/E1/Projects/CCNP_lab15B-EIGRPMulti-Technology# gns3-converter topology.net
Code:
GNS3 Topology Converter
Traceback (most recent call last):
  File "/usr/local/bin/gns3-converter", line 9, in <module>
    load_entry_point('gns3-converter==0.3.5', 'console_scripts', 'gns3-converter')()
  File "/usr/local/lib/python2.7/dist-packages/gns3converter/main.py", line 60, in main
    do_conversion(topology, args)
  File "/usr/local/lib/python2.7/dist-packages/gns3converter/main.py", line 104, in do_conversion
    new_top.nodes = gns3_conv.generate_nodes(topology)
  File "/usr/local/lib/python2.7/dist-packages/gns3converter/converter.py", line 173, in generate_nodes
    tmp_node = Node(hypervisors[hv_id], self.port_id)
  File "/usr/local/lib/python2.7/dist-packages/gns3converter/node.py", line 34, in __init__
    super().__init__(port_id)
TypeError: super() takes at least 1 argument (0 given)


Not sure where to go from here. I will create a one router topology and test it on that, I have to sign off now, but will try that idea shortly and post the results.


Thanks,
Darren


Top
 Profile  
 
 Post subject: Re: GNS3 converter
PostPosted: Wed Oct 01, 2014 9:34 am 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
drogers wrote:
Code:
GNS3 Topology Converter
Traceback (most recent call last):
  File "/usr/local/bin/gns3-converter", line 9, in <module>
    load_entry_point('gns3-converter==0.3.5', 'console_scripts', 'gns3-converter')()
  File "/usr/local/lib/python2.7/dist-packages/gns3converter/main.py", line 60, in main
    do_conversion(topology, args)
  File "/usr/local/lib/python2.7/dist-packages/gns3converter/main.py", line 104, in do_conversion
    new_top.nodes = gns3_conv.generate_nodes(topology)
  File "/usr/local/lib/python2.7/dist-packages/gns3converter/converter.py", line 173, in generate_nodes
    tmp_node = Node(hypervisors[hv_id], self.port_id)
  File "/usr/local/lib/python2.7/dist-packages/gns3converter/node.py", line 34, in __init__
    super().__init__(port_id)
TypeError: super() takes at least 1 argument (0 given)
You still have the converter installed using python 2.7... It needs to be installed using python3 (I shall try and improve the setup with regards to this)

To make sure we remove the converter from python2, use pip2 uninstall gns3-converter

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: GNS3 converter
PostPosted: Wed Oct 01, 2014 12:39 pm 
Offline

Joined: Thu Sep 11, 2014 3:19 pm
Posts: 32
OK..done with the removal
Code:
(gns3v1-python) [email protected]:/home/darren/Downloads/gns3# pip uninstall gns3-converter
Uninstalling gns3-converter:
  /root/gns3v1-python/bin/gns3-converter
  /root/gns3v1-python/lib/python3.4/site-packages/gns3_converter-0.3.5-py3.4.egg-info
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/__init__.py
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/__pycache__/__init__.cpython-34.pyc
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/__pycache__/adapters.cpython-34.pyc
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/__pycache__/converter.cpython-34.pyc
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/__pycache__/interfaces.cpython-34.pyc
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/__pycache__/main.cpython-34.pyc
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/__pycache__/models.cpython-34.pyc
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/__pycache__/node.cpython-34.pyc
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/__pycache__/topology.cpython-34.pyc
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/__pycache__/utils.cpython-34.pyc
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/adapters.py
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/configspec
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/converter.py
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/interfaces.py
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/main.py
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/models.py
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/node.py
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/topology.py
  /root/gns3v1-python/lib/python3.4/site-packages/gns3converter/utils.py
Proceed (y/n)? Y
  Successfully uninstalled gns3-converter
(gns3v1-python) [email protected]:/home/darren/Downloads/gns3#
(gns3v1-python) [email protected]:/home/darren/Downloads/gns3#
(gns3v1-python) [email protected]:/home/darren/Downloads/gns3# ls -l
total 268
drwxrwxrwx 10 darren darren   4096 Sep 25 15:39 archive
drwxrwxr-x  9 root   root     4096 Sep  2 13:06 gns3-gui-1.0-beta2
drwxrwxr-x  9 root   root     4096 Sep 25 08:57 gns3-gui-1.0-beta3
-rw-r--r--  1 root   root       68 Sep 18 09:15 gns3-on-wheezy-venv-run
-rw-r--r--  1 darren darren  97569 Sep 15 08:00 gns3-on-wheezy-with-venv.pdf
-rw-r--r--  1 darren darren   1825 Sep 25 17:59 gns3-venv
-rw-r--r--  1 darren darren   1740 Sep 25 17:57 gns3-venv~
drwxr-xr-x  2 root   root     4096 Sep 25 12:28 icons
-rwxr-xr-x  1 darren darren 102589 Mar 27  2014 iouyap
drwxr-xr-x  2 darren darren   4096 Sep 15 08:10 pemu
drwxr-xr-x 30    501 staff    4096 Sep 17 09:55 PyQt-x11-gpl-4.11.2
drwxr-xr-x  3 darren darren   4096 Sep 16 20:54 python
drwxr-xr-x 17 darren darren   4096 Sep 17 09:51 Python-3.4.1
drwxrwxrwx  2 darren darren   4096 Apr 15 20:08 qemu
drwxr-xr-x  8    501 staff    4096 Sep 17 08:01 sip-4.16.3
-rwxrwxrwx  1 darren darren     95 Sep 18 17:11 source
-rwxrwxrwx  1 darren darren     60 Sep 18 16:58 source~
-rwxrwxrwx  1 darren darren     72 Sep 18 16:54 test~
drwxr-xr-x  7 root   root     4096 Sep 25 16:55 vboxwrapper
(gns3v1-python) [email protected]:/home/darren/Downloads/gns3#


I will post another reply once I re-install with p3.




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO