Giter Site home page Giter Site logo

gns3-converter's People

Contributors

boenrobot avatar julien-duponchelle avatar twowheeldev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gns3-converter's Issues

Incorrect path's when running on Windows

[E 140906 20:39:18 init:1790] Cannot open topology file

Traceback (most recent call last):
File "C:\Users\daniel\Documents\GitHub\gns3-converter\gns3converter\converter.py", line 71, in read_topology
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Program Files (x86)\\GNS3 Converter\\topology.net'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Python34\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module>
File "gns3-converter.py", line 17, in <module>
File "C:\Users\daniel\Documents\GitHub\gns3-converter\gns3converter\main.py",line 57, in main
File "C:\Users\daniel\Documents\GitHub\gns3-converter\gns3converter\main.py",line 94, in do_conversion
File "C:\Users\daniel\Documents\GitHub\gns3-converter\gns3converter\converter.py", line 84, in read_topology
NameError: name 'exit' is not defined

Shapes lose their rotation

Hello. Shapes (which can include text) are losing their rotation. The big green ellipse is supposed to be rotated.

autostart = False
[localhost:7200]
workingdir = working
udp = 10000
[[2691]]
image = /home/xxxx/Cisco IOS/c2691-advipservicesk9-mz.124-15.T14-unpacked.bin
ram = 256
idlepc = 0x60b881b0
ghostios = True
[[ROUTER R1]]
model = 2691
console = 2000
aux = 2100
cnfg = configs/R1.cfg
wic0/0 = WIC-1T
wic0/1 = WIC-1T
wic0/2 = WIC-1T
s0/0 = R2 s0/0
x = -313.0
y = 112.0
hx = 64.5
hy = 2.0
[[ROUTER R2]]
model = 2691
console = 2001
aux = 2101
cnfg = configs/R2.cfg
wic0/0 = WIC-1T
wic0/1 = WIC-1T
wic0/2 = WIC-1T
s0/0 = R1 s0/0
s0/1 = R3 s0/1
x = -315.0
y = -204.0
hx = 14.5
hy = -23.0
[localhost:7201]
workingdir = working
udp = 10100
[[2691]]
image = /home/xxxx/Cisco IOS/c2691-advipservicesk9-mz.124-15.T14-unpacked.bin
ram = 256
idlepc = 0x60b881b0
ghostios = True
[[ROUTER R4]]
model = 2691
console = 2003
aux = 2102
cnfg = configs/R4.cfg
wic0/0 = WIC-1T
wic0/1 = WIC-1T
wic0/2 = WIC-1T
s0/0 = R3 s0/0
x = 134.0
y = 118.0
hx = -30.5
hy = 7.0
[[ROUTER R3]]
model = 2691
console = 2002
aux = 2103
cnfg = configs/R3.cfg
wic0/0 = WIC-1T
wic0/1 = WIC-1T
wic0/2 = WIC-1T
s0/0 = R4 s0/0
s0/1 = R2 s0/1
x = 135.0
y = -197.0
[GNS3-DATA]
configs = configs
workdir = working
[[NOTE 1]]
text = S0/0 DCE\n172.16.34.3/24
x = 176.0
y = -144.5
color = "#1a1a1a"
[[NOTE 2]]
text = AREA 0
x = -178.0
y = -57.5
font = "Cantarell,16,-1,5,75,0,0,0,0,0"
color = "#1a1a1a"
[[NOTE 3]]
text = Lo0: 172.16.1.1/24
x = -348.0
y = 157.5
color = "#1a1a1a"
[[NOTE 4]]
text = S0/0 \n172.16.34.4/24
x = 174.0
y = 74.5
color = "#1a1a1a"
[[NOTE 5]]
text = AREA 34
x = 260.0
y = -30.5
font = "Cantarell,18,-1,5,75,0,0,0,0,0"
color = "#1a1a1a"
[[NOTE 6]]
text = AREA 40
x = 80.0
y = 252.5
font = "Cantarell,18,-1,5,75,0,0,0,0,0"
color = "#1a1a1a"
[[NOTE 7]]
text = S0/1\n172.16.23.3/24
x = 9.0
y = -216.5
color = "#1a1a1a"
[[NOTE 8]]
text = S0/0 DCE\n172.16.12.1/24
x = -409.0
y = 65.5
color = "#1a1a1a"
[[NOTE 9]]
text = S0/1 DCE\n172.16.23.2/24
x = -233.0
y = -226.5
color = "#1a1a1a"
[[NOTE 10]]
text = Lo0: 172.16.3.1/24
x = 202.0
y = -186.5
color = "#1a1a1a"
[[NOTE 11]]
text = S0/0 \n172.16.12.2/24
x = -398.0
y = -138.5
color = "#1a1a1a"
[[NOTE 12]]
text = Lo0: 172.16.4.1/24
x = 63.0
y = 176.5
color = "#1a1a1a"
[[SHAPE 1]]
type = ellipse
x = 10.0
y = -413.0
width = 453.502329275
height = 724.0
fill_color = "#aaff7f"
rotate = 61
border_style = 2
z = -2.0
[[SHAPE 2]]
type = ellipse
x = 26.0
y = 149.0
width = 216.0
height = 213.0
fill_color = "#ffff7f"
border_style = 2
z = -2.0
[[SHAPE 3]]
type = ellipse
x = 124.0
y = -218.0
width = 286.0
height = 409.0
fill_color = "#ffcd9b"
border_style = 2
z = -2.0

Incorrect after converting:
colors

This is how it appears in 0.8.6:
rotate

thank you. Great work.

-o not working

I tried -o - but it still asked me for a directory name - see below:

user@GNS3v1 ~/GNS3/projects/Test Converter $ gns3-converter -o topology.gns3 topology.net
GNS3 Topology Converter
Please enter a name for this topology: WHY
Your topology has been converted and can found in:
/home/user/GNS3/projects/Test Converter/topology.gns3/WHY

I would have expected the converted topology to appear in
/home/user/GNS3/projects/Test Converter/topology.gns3

Cloud connections don't connect

Here's a fairly simple topology that makes three slightly different cloud connections:

topology

autostart = False
version = 0.8.6
[127.0.0.1:7200]
    workingdir = /tmp
    udp = 10001
    [[3725]]
        image = /home/user/GNS3/Images/c3725-adventerprisek9-mz.124-15.T10.image
        ram = 128
        idlepc = 0x60c06d20
        sparsemem = True
        ghostios = True
    [[ROUTER Router11-Left]]
        model = 3725
        console = 2101
        aux = 2501
        cnfg = configs/Router.cfg
        wic0/0 = WIC-2T
        s0/0 = NIO_udp:5000:192.168.255.12:5000
        f0/0 = nio_gen_eth:eth0
        f0/1 = NIO_udp:30000:127.0.0.1:20000
        x = 67.0
        y = -128.0
        z = 1.0
[GNS3-DATA]
    configs = configs
    workdir = /tmp
    [[Cloud VPC]]
        symbol = computer
        x = 67.5
        y = -31.0
        hx = 10.0
        hy = 58.0
        z = 1.0
        connections = Router11-Left:f0/1:NIO_udp:30000:127.0.0.1:20000
    [[Cloud ToHostPC-Eth]]
        symbol = cloud
        x = -148.5
        y = -141.0
        hx = 26.5859375
        hy = 20.0
        z = 1.0
        connections = Router11-Left:f0/0:nio_gen_eth:eth0
    [[Cloud SerialCloud]]
        x = 199.5
        y = -143.5
        hx = 32.5
        hy = 22.0
        z = 1.0
        connections = Router11-Left:s0/0:NIO_udp:5000:192.168.255.12:5000
    [[NOTE 1]]
        text = "Fa0/0"
        x = 23.0
        y = -129.5
        color = "#1a1a1a"
        z = -1.0
    [[NOTE 2]]
        text = "Fa0/1"
        x = 105.0
        y = -84.5
        color = "#1a1a1a"
        z = -1.0
    [[NOTE 3]]
        text = "S0/0"
        x = 128.0
        y = -133.5
        color = "#1a1a1a"
        z = -1.0

The trouble is, when it gets converted, it becomes:

{
    "name": "Single Router",
    "resources_type": "local",
    "topology": {
        "links": [
            {
                "description": "Link from Router11-Left port FastEthernet0/0 to None port nio_gen_eth:eth0",
                "destination_node_id": null,
                "destination_port_id": null,
                "id": 1,
                "source_node_id": 1,
                "source_port_id": 1
            },
            {
                "description": "Link from Router11-Left port FastEthernet0/1 to None port NIO_udp:30000:127.0.0.1:20000",
                "destination_node_id": null,
                "destination_port_id": null,
                "id": 2,
                "source_node_id": 1,
                "source_port_id": 2
            },
            {
                "description": "Link from Router11-Left port Serial0/0 to None port NIO_udp:5000:192.168.255.12:5000",
                "destination_node_id": null,
                "destination_port_id": null,
                "id": 3,
                "source_node_id": 1,
                "source_port_id": 3
            }
        ],
        "nodes": [
            {
                "description": "Router c3725",
                "id": 1,
                "label": {
                    "text": "Router11-Left",
                    "x": 19.5,
                    "y": -25.0
                },
                "ports": [
                    {
                        "description": "connected to  on port ",
                        "id": 1,
                        "link_id": 1,
                        "name": "FastEthernet0/0",
                        "port_number": 0,
                        "slot_number": 0
                    },
                    {
                        "description": "connected to  on port ",
                        "id": 2,
                        "link_id": 2,
                        "name": "FastEthernet0/1",
                        "port_number": 1,
                        "slot_number": 0
                    },
                    {
                        "description": "connected to  on port ",
                        "id": 3,
                        "link_id": 3,
                        "name": "Serial0/0",
                        "port_number": 16,
                        "slot_number": 0
                    },
                    {
                        "id": 4,
                        "name": "Serial0/1",
                        "port_number": 17,
                        "slot_number": 0
                    }
                ],
                "properties": {
                    "aux": 2501,
                    "console": 2101,
                    "idlepc": "0x60c06d20",
                    "image": "c3725-adventerprisek9-mz.124-15.T10.image",
                    "name": "Router11-Left",
                    "ram": 128,
                    "startup_config": "configs/i1_startup-config.cfg",
                    "wic0": "WIC-2T"
                },
                "router_id": 1,
                "server_id": 1,
                "type": "C3725",
                "x": 67.0,
                "y": -128.0
            },
            {
                "description": "Cloud",
                "id": 2,
                "label": {
                    "text": "SerialCloud",
                    "x": 32.5,
                    "y": 22.0
                },
                "ports": [
                    {
                        "id": 5,
                        "name": "NIO_udp:5000:192.168.255.12:5000",
                        "stub": true
                    }
                ],
                "properties": {
                    "name": "SerialCloud",
                    "nios": [
                        "NIO_udp:5000:192.168.255.12:5000"
                    ]
                },
                "server_id": 1,
                "type": "Cloud",
                "x": 199.5,
                "y": -143.5
            },
            {
                "default_symbol": ":/symbols/cloud.normal.svg",
                "description": "Cloud",
                "hover_symbol": ":/symbols/cloud.selected.svg",
                "id": 3,
                "label": {
                    "text": "ToHostPC-Eth",
                    "x": 26.5859375,
                    "y": 20.0
                },
                "ports": [
                    {
                        "id": 6,
                        "name": "nio_gen_eth:eth0",
                        "stub": true
                    }
                ],
                "properties": {
                    "name": "ToHostPC-Eth",
                    "nios": [
                        "nio_gen_eth:eth0"
                    ]
                },
                "server_id": 1,
                "type": "Cloud",
                "x": -148.5,
                "y": -141.0
            },
            {
                "default_symbol": ":/symbols/computer.normal.svg",
                "description": "Cloud",
                "hover_symbol": ":/symbols/computer.selected.svg",
                "id": 4,
                "label": {
                    "text": "VPC",
                    "x": 10.0,
                    "y": 58.0
                },
                "ports": [
                    {
                        "id": 7,
                        "name": "NIO_udp:30000:127.0.0.1:20000",
                        "stub": true
                    }
                ],
                "properties": {
                    "name": "VPC",
                    "nios": [
                        "NIO_udp:30000:127.0.0.1:20000"
                    ]
                },
                "server_id": 1,
                "type": "Cloud",
                "x": 67.5,
                "y": -31.0
            }
        ],
        "notes": [
            {
                "color": "#1a1a1a",
                "text": "Fa0/0",
                "x": 23.0,
                "y": -129.5,
                "z": -1.0
            },
            {
                "color": "#1a1a1a",
                "text": "Fa0/1",
                "x": 105.0,
                "y": -84.5,
                "z": -1.0
            },
            {
                "color": "#1a1a1a",
                "text": "S0/0",
                "x": 128.0,
                "y": -133.5,
                "z": -1.0
            }
        ],
        "servers": [
            {
                "host": "127.0.0.1",
                "id": 1,
                "local": true,
                "port": 8000
            }
        ]
    },
    "type": "topology",
    "version": "1.0"
}

Which looks like this:

topologyv1

As you can see, all the interconnections are lost. Further, if I try and add them back in, the SerialCloud connection and the VPC connections give an error when I click on them saying "No port available, please configure this device"

configs directory doesn't get pathed properly in .gns3 file

Tested on: gns3-converter 0.1.4.dev1

The config files are copied when converted, but the directory naming looses the "config" part. Ie, here's a section of a converted .gns3 file:

"properties": {
                    "aux": 2100,
                    "console": 2000,
                    "idlepc": "0x60c06d20",
                    "image": "c3725-adventerprisek9-mz.124-15.T10.image",
                    "name": "R1",
                    "ram": 128,
                    "startup_config": "i1_startup-config.cfg",
                    "wic0": "WIC-2T"
                },

To make it work AND load the correct startup configuration files, I had to change it to:

"properties": {
                    "aux": 2100,
                    "console": 2000,
                    "idlepc": "0x60c06d20",
                    "image": "c3725-adventerprisek9-mz.124-15.T10.image",
                    "name": "R1",
                    "ram": 128,
                    "startup_config": "configs/i1_startup-config.cfg",
                    "wic0": "WIC-2T"
                },

Note the word configs/ that had to be added to the directory path to make it work

v0.3.0 fails

I upgraded using pip3 install gns3-converter --upgrade

pip3 install gns3-converter --upgrade
Downloading/unpacking gns3-converter from https://pypi.python.org/packages/source/g/gns3-converter/gns3-converter-0.3.0.tar.gz#md5=202e2533d31352877188c7ad4ebbbfdc
  Downloading gns3-converter-0.3.0.tar.gz
  Running setup.py (path:/tmp/pip_build_root/gns3-converter/setup.py) egg_info for package gns3-converter

Requirement already up-to-date: configobj in /usr/local/lib/python3.4/dist-packages (from gns3-converter)
Requirement already up-to-date: six in /usr/local/lib/python3.4/dist-packages (from configobj->gns3-converter)
Installing collected packages: gns3-converter
  Found existing installation: gns3-converter 0.2.0
    Uninstalling gns3-converter:
      Successfully uninstalled gns3-converter
  Running setup.py install for gns3-converter

    Installing gns3-converter script to /usr/local/bin
Successfully installed gns3-converter
Cleaning up...

I used my ICND1 Readiness Test as a sample file: https://www.dropbox.com/s/cba5zmpphybisd6/ICND1%20Readiness%20Test.tar.gz?dl=0

And then I ran gns3-converter in the _ICND1 Readiness Test_ base directory (where the topology.net file was). Here is the output:

user@GNS3v1 ~/GNS3/projects/ICND1 Readiness Test $ gns3-converter --debug
GNS3 Topology Converter
[D 140906 21:34:02 converter:49] Topology file: /home/user/GNS3/projects/ICND1 Readiness Test/topology.net
[D 140906 21:34:02 converter:89] Validation passed
[D 140906 21:34:02 main:169] topology name not supplied
Traceback (most recent call last):
  File "/usr/local/bin/gns3-converter", line 9, in <module>
    load_entry_point('gns3-converter==0.3.0', 'console_scripts', 'gns3-converter')()
  File "/usr/local/lib/python3.4/dist-packages/gns3converter/main.py", line 57, in main
    do_conversion(topology, args)
  File "/usr/local/lib/python3.4/dist-packages/gns3converter/main.py", line 113, in do_conversion
    save(args, gns3_conv, new_top, topology_def['snapshot'])
  File "/usr/local/lib/python3.4/dist-packages/gns3converter/main.py", line 247, in save
    vbox_max = json_topology.get_vboxes()
  File "/usr/local/lib/python3.4/dist-packages/gns3converter/topology.py", line 423, in get_vboxes
    return max(vbox_list)
ValueError: max() arg is an empty sequence

And of course the exercise dis not get changed. Any clues?

Release by GNS3 core team?

Hi Daniel,

I know you don't have a lot of free time. Do you want us to take care of the release? We will continue to fix the remaining issues.

CC @grossmj

VPCS Configuration

If the user used VPCS in their topology, there is likely to be some files with a .vpc extension in the configs directory, and a vpcs.hist file.

Can these files be copied to a new directory called multi-host under the VPCS directory? See also: https://community.gns3.com/ideas/1395

Similarly, this structure will need to be repeated for the snapshots.

shapes colors and levels are not converted properly

using gns3-converter 1.1.1 i noticed that shapes are converted without problems, but their colors and levels (on shape on top of another for example) are not. The levels might be related to transparency.

original project:

image

converted project (all other shapes are under the 2 big ovals) :

image

original .net file

autostart = False
version = 0.8.6
[127.0.0.1:7200]
    workingdir = working
    udp = 10001
    [[3725]]
        image = c3725-adventerprisek9-mz.124-15.T14.image
        ram = 128
        idlepc = 0x60c09aa0
        idlemax = 100
        sparsemem = True
        ghostios = True
    [[ROUTER R4]]
        model = 3725
        console = 2104
        aux = 2504
        cnfg = configs\R4.cfg
        wic0/0 = WIC-2T
        s0/0 = FR_CLOUD 4
        s0/1 = R5 s0/1
        f0/0 = switch 3
        x = -22.0
        y = -240.0
        z = 1.0
        hx = 22.5
        hy = 19.0
    [[ROUTER R5]]
        model = 3725
        console = 2105
        aux = 2505
        cnfg = configs\R5.cfg
        wic0/0 = WIC-2T
        s0/0 = FR_CLOUD 5
        s0/1 = R4 s0/1
        f0/0 = R8 f0/0
        x = 172.0
        y = 30.0
        z = 1.0
        hx = 19.5
        hy = 20.0
    [[ROUTER R6]]
        model = 3725
        console = 2106
        aux = 2506
        cnfg = configs\R6.cfg
        f0/0 = switch 1
        f0/1 = R7 f0/0
        x = -373.0
        y = -234.0
        z = 1.0
        hx = 21.5
        hy = 19.0
    [[ROUTER R7]]
        model = 3725
        console = 2110
        aux = 2510
        cnfg = configs\R7.cfg
        f0/0 = R6 f0/1
        f0/1 = R3 f0/0
        slot1 = NM-1FE-TX
        f1/0 = R9 f0/0
        x = -467.0
        y = -32.0
        z = 1.0
        hx = 17.5
        hy = 18.0
    [[ROUTER R1]]
        model = 3725
        console = 2101
        aux = 2501
        cnfg = configs\R1.cfg
        wic0/0 = WIC-2T
        s0/0 = FR_CLOUD 1
        s0/1 = R3 s1/2
        f0/0 = switch 2
        x = -194.0
        y = -119.0
        z = 1.0
        hx = 21.5
        hy = 19.0
    [[ROUTER R10]]
        model = 3725
        console = 2108
        aux = 2508
        cnfg = configs\R10.cfg
        f0/0 = R8 f0/1
        x = 14.0
        y = 168.0
        z = 1.0
        hx = 17.5
        hy = 19.0
    [[ROUTER R8]]
        model = 3725
        console = 2109
        aux = 2509
        cnfg = configs\R8.cfg
        f0/0 = R5 f0/0
        f0/1 = R10 f0/0
        x = 173.0
        y = 165.0
        z = 1.0
        hx = 18.5
        hy = 18.0
    [[ROUTER R9]]
        model = 3725
        console = 2107
        aux = 2507
        cnfg = configs\R9.cfg
        f0/0 = R7 f1/0
        x = -469.0
        y = 116.0
        z = 1.0
        hx = 19.5
        hy = 19.0
    [[ETHSW switch]]
        1 = access 1 R6 f0/0
        2 = access 1 R1 f0/0
        3 = access 1 R4 f0/0
        x = -197.5
        y = -230.0
        z = 1.0
        hx = 6.5
        hy = 9.0
    [[FRSW FR_CLOUD]]
        1:105 = 5:501
        2:205 = 5:502
        3:305 = 5:503
        4:405 = 5:504
        5:501 = 1:105
        5:502 = 2:205
        5:503 = 3:305
        5:504 = 4:405
        1 = R1 s0/0
        2 = R2 s0/0
        3 = R3 s1/0
        4 = R4 s0/0
        5 = R5 s0/0
        symbol = cloud
        x = -168.5
        y = 2.5
        z = 1.0
        hx = 46.0
        hy = 24.0
[127.0.0.1:7201]
    workingdir = working
    udp = 10101
    [[3725]]
        image = c3725-adventerprisek9-mz.124-15.T14.image
        ram = 128
        idlepc = 0x60c09aa0
        idlemax = 100
        sparsemem = True
        ghostios = True
    [[ROUTER R2]]
        model = 3725
        console = 2102
        aux = 2502
        cnfg = configs\R2.cfg
        wic0/0 = WIC-2T
        s0/0 = FR_CLOUD 2
        s0/1 = R3 s1/3
        x = -189.0
        y = 181.0
        z = 1.0
        hx = 22.5
        hy = 19.0
    [[ROUTER R3]]
        model = 3725
        console = 2103
        aux = 2503
        cnfg = configs\R3.cfg
        f0/0 = R7 f0/1
        slot1 = NM-4T
        s1/0 = FR_CLOUD 3
        s1/2 = R1 s0/1
        s1/3 = R2 s0/1
        x = -316.0
        y = 17.0
        z = 1.0
        hx = 21.5
        hy = 21.0
[GNS3-DATA]
    configs = configs
    workdir = working
    [[NOTE 1]]
        text = "45.0/24"
        x = 136.0
        y = -86.0
    [[NOTE 2]]
        text = "79.0/24"
        x = -428.0
        y = 67.0
    [[NOTE 3]]
        text = "58.0/24"
        x = 208.0
        y = 102.0
    [[NOTE 4]]
        text = "BSR"
        x = 30.0
        y = 142.0
    [[NOTE 5]]
        text = "RP2"
        x = 216.0
        y = 141.0
    [[NOTE 6]]
        text = "RP1"
        x = 194.0
        y = 1.0
    [[NOTE 7]]
        text = "BGP AS 100"
        x = -572.0
        y = 7.0
    [[NOTE 8]]
        text = "Major network\n\n155.1.0.0/16"
        x = 125.0
        y = -240.0
    [[NOTE 9]]
        text = "OSPF\nAREA 0"
        x = -347.0
        y = -111.0
    [[NOTE 10]]
        text = "RP"
        x = -478.0
        y = -54.0
    [[NOTE 11]]
        text = "BGP AS 200"
        x = 224.0
        y = -102.0
    [[NOTE 12]]
        text = "23.0/24"
        x = -289.0
        y = 94.0
    [[NOTE 13]]
        text = "EIGRP\nAS 100"
        x = 106.0
        y = 130.0
    [[NOTE 14]]
        text = "37.0/24"
        x = -374.0
        y = -19.0
    [[NOTE 15]]
        text = "67.0/24"
        x = -459.0
        y = -110.0
    [[NOTE 16]]
        text = "13.0/24"
        x = -292.0
        y = -54.0
    [[NOTE 17]]
        text = "108.0/24"
        x = 93.0
        y = 192.0
    [[NOTE 18]]
        text = "Frame Relay\n0.0/24\nR5 is the HUB"
        x = -18.0
        y = -30.0
    [[NOTE 19]]
        text = "146.0/24"
        x = -182.0
        y = -264.0
    [[SHAPE 1]]
        type = ellipse
        x = -579.0
        y = -281.0
        width = 370.0
        height = 560.0
        border_style = 2
    [[SHAPE 2]]
        type = ellipse
        x = -114.0
        y = -295.0
        width = 431.0
        height = 576.0
        border_style = 2
    [[SHAPE 3]]
        type = ellipse
        x = 62.0
        y = -180.0
        width = 117.0
        height = 147.0
        fill_color = "#ffff00"
        border_style = 0
        z = -1.0
    [[SHAPE 4]]
        type = rectangle
        x = -490.0
        y = 106.0
        width = 440.0
        height = 122.0
        fill_color = "#55aaff"
        border_style = 0
        z = -1.0
    [[SHAPE 5]]
        type = ellipse
        x = 16.0
        y = -233.0
        width = 129.0
        height = 157.0
        fill_color = "#ffff00"
        border_style = 0
        z = -1.0
    [[SHAPE 6]]
        type = ellipse
        x = -46.0
        y = 124.0
        width = 306.0
        height = 122.0
        fill_color = "#ffff00"
        border_style = 0
        z = -1.0
    [[SHAPE 7]]
        type = ellipse
        x = -403.0
        y = -273.0
        width = 497.0
        height = 109.0
        fill_color = "#ffff00"
        border_color = "#ffff00"
        border_style = 0
        z = -1.0
    [[SHAPE 8]]
        type = ellipse
        x = 122.0
        y = -144.0
        width = 95.0
        height = 200.0
        fill_color = "#ffff00"
        border_style = 0
        z = -1.0
    [[SHAPE 9]]
        type = rectangle
        x = -490.0
        y = -154.0
        width = 499.0
        height = 274.0
        fill_color = "#55aaff"
        border_style = 0
        z = -1.0
    [[SHAPE 10]]
        type = ellipse
        x = -430.0
        y = -75.0
        width = 560.0
        height = 221.0
        fill_color = "#55aaff"
        border_style = 0
        z = -1.0
    [[SHAPE 11]]
        type = ellipse
        x = 157.0
        y = -69.0
        width = 110.0
        height = 301.0
        fill_color = "#ffff00"
        border_style = 0
        z = -1.0

Configs are not found when converting a topology

Configs do not seem to be found when converting a topology, please see the below terminal output. The configs folder definitely exists in the working directory and the config files appear to be named correctly.

the-orchid:Authentication lot49$ ls -l
total 24
-rwxr-x---@ 1 lot49 staff 771 29 Jun 2013 OSPF AUTHENTICATION.txt
drwxr-x---@ 6 lot49 staff 204 15 Feb 2014 configs
-rwxr-x---@ 1 lot49 staff 4116 29 Jun 2013 topology.net
the-orchid:Authentication lot49$ sudo gns3-converter topology.net
GNS3 Topology Converter
Please enter a name for this topology: Auth
E: Unable to find configs\Elephant.cfg
E: Unable to find configs\Giraffe.cfg
E: Unable to find configs\Gorilla.cfg
E: Unable to find configs\Lion.cfg
W: Some router startup configurations could not be found
to be copied to the new topology
Your topology has been converted and can found in:
/Users/lot49/Documents/GNS3/gns3_ccnpx_labs/GNS3/CCNP/ROUTE/OSPF/GNS3Vault/Authentication/Auth
the-orchid:Authentication lot49$ cd configs/
the-orchid:configs lot49$ ls -l
total 32
-rwxr-x---@ 1 lot49 staff 883 29 Jun 2013 Elephant.cfg
-rwxr-x---@ 1 lot49 staff 1152 29 Jun 2013 Giraffe.cfg
-rwxr-x---@ 1 lot49 staff 1075 29 Jun 2013 Gorilla.cfg
-rwxr-x---@ 1 lot49 staff 782 29 Jun 2013 Lion.cfg

Convert Gns3 1.4x projects to 2.1x

Do we have a tool to convert 1.4 projects to 2.1 ? i cannot import old projects to any the new gns3 versions :(

Can you please help out?

Thanks in advance!
DJ

gns3-convertor feature request

Daniel,

Thanks for the nice toolset.

I mainly use gns3 to supplement work I do using dynamips/dynagen for workshops. I used to be able to copy a topology.net file that I'd normally feed to dynamips from dynagen into gns3 with some minor fudging of the x,y,z coordinates.

I could hack something together to add this to every .net file I want to include but it might be nice to have the convertor have an "import dynagen topology files" option. The coordinates don't need to be "right" as I can easily reposition things in the GUI.

andy

IndexError: list index out of range

I tried to convert EIGRP CCNA 1 topology from gns3vault.com and receive the following error:

GNS3 Topology Converter
[D 140823 00:43:50 converter:49] Topology file: ~/Downloads/eigrp-ccna-1-startup-configs/topology.net
[D 140823 00:43:50 converter:79] Validation passed
Traceback (most recent call last):
  File "/usr/local/bin/gns3-converter", line 9, in <module>
    load_entry_point('gns3-converter==0.1.4.dev1', 'console_scripts', 'gns3-converter')()
  File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gns3_converter-0.1.4.dev1-py3.4.egg/gns3converter/main.py", line 56, in main
  File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gns3_converter-0.1.4.dev1-py3.4.egg/gns3converter/converter.py", line 182, in generate_nodes
  File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gns3_converter-0.1.4.dev1-py3.4.egg/gns3converter/node.py", line 158, in add_device_items
  File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/gns3_converter-0.1.4.dev1-py3.4.egg/gns3converter/node.py", line 201, in calc_ethsw_port
IndexError: list index out of range

'NOTE' and 'SHAPE' elements of topology.net files are processed as devices

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/main.py", 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/converter.py", 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/topology.py", 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/topology.py", line 118, in device_typename
name = item.replace('%s ' % dev_type[item_type]['from'], '')
KeyError: 'NOTE'

Text conversion doesn't do new lines well, add additional quotes; colour is lost

New lines:


Original in topology.net
text = "Servers VLAN\n 20 Servers"

Converted output:
"text": ""Servers VLAN\n 20 Servers"" ,

  • which appears as: (including the quotes)
    "Servers VLAN\n 20 Servers"

Colour


Original:
text = "topology_9 (Completed ICND1 Readiness Test)"
x = -288.0
y = -264.5
color = "#55aa7f"

Converted:

        {
            "color": "\"#55aa7f\"",
            "text": "\"topology_9 (Completed ICND1 Readiness Test)\"",
            "x": -288.0,
            "y": -264.5
        },

Should be:

        {
            "color": "#55aa7f",
            "text": "topology_9 (Completed ICND1 Readiness Test)",
            "x": -288.0,
            "y": -264.5
        },

Install OK, operation problem

Hi - I tried to install the converter into Windows Server. When I run the setup, it worked fine. Then running the converter I get the following: The program can't start because MSVCR100.dll is missing from your computer. Try re-installing to fix this problem.

So I ran the installer again, and I get the same message.
Thanks - really need this function.
Andy

hx and hy values are not converted

If I choose to move the text on a GNS3 v0.8.x icon, it gets hx and hy values.

Eg.
[[ROUTER R1]]
model = 3725
...<snip>...
hx = 21.0
hy = 19.0

Appears like this:

image

In GNS3v1, this has to be converted to:
{
"description": "Router c3725",
"id": 1,
"label": {
"text": "R1",
"x": 21,
"y": 19
},

But the hx and hy values do NOT get translated

Not all symbols are equal!!

This is another debatable one (as to whether this should be solved by GNS3 or the converter)

Most of my topologies have PC icons in them. However, these have been produced by various versions of GNS3. IN some cases, topology.net says:

[GNS3-DATA]
    configs = configs
    [[Cloud C1]]
        symbol = Host

and sometimes it says:

[GNS3-DATA]
    configs = configs
    [[Cloud C1]]
        symbol = computer

for exactly the same device. In either case, GNS3 v0.8.6/7 can handle it.

But it seems that GNS3 v1 does not understand:

"default_symbol": ":/symbols/Host.normal.svg",

or

"hover_symbol": ":/symbols/Host.selected.svg",

However, if I change these respectively to:

"default_symbol": ":/symbols/computer.normal.svg",
"hover_symbol": ":/symbols/computer.selected.svg",

...then my topologies look fine in GNS3 v1

So the bottom line is...
could you (as part of your conversion process) watch out for:

    symbol = Host

and treat it as if it said:

    symbol = computer

TIA

(Sorry for being such a pain - I think this is the last one. Of course the alternative is to suggest to the GUI team to add Host.normal.svg and Host.selected.svg to the symbol library)
CW

when opening a converted project, not all serial links are "connected"

possibly connected to issue #15

This is how the original topology looks like:

image

This is how the converted topology looks like: (you can see that the serial links are actually non connected.

image

this is the original .net file

autostart = False
version = 0.8.6
[127.0.0.1:7200]
    workingdir = working
    udp = 10001
    [[3725]]
        image = c3725-adventerprisek9-mz.124-15.T14.image
        ram = 128
        idlepc = 0x60c09aa0
        idlemax = 100
        sparsemem = True
        ghostios = True
    [[ROUTER ISP_1]]
        model = 3725
        console = 2106
        aux = 2506
        cnfg = configs\ISP_1.cfg
        wic0/0 = WIC-2T
        wic0/1 = WIC-2T
        s0/0 = INTERNET s0/1
        s0/1 = Border_1 s0/0
        s0/2 = COMPANY s0/0
        x = -239.0
        y = -165.0
        z = 1.0
    [[ROUTER ISP_2]]
        model = 3725
        console = 2105
        aux = 2505
        cnfg = configs\ISP_2.cfg
        wic0/0 = WIC-2T
        wic0/1 = WIC-2T
        s0/0 = Border_2 s0/0
        s0/1 = Border_2 s0/1
        s0/2 = INTERNET s0/0
        x = 297.0
        y = -181.0
        z = 1.0
    [[ROUTER Border_2]]
        model = 3725
        console = 2102
        aux = 2502
        cnfg = configs\Border_2.cfg
        wic0/0 = WIC-2T
        s0/0 = ISP_2 s0/0
        s0/1 = ISP_2 s0/1
        f0/0 = Border_1 f0/0
        f0/1 = SW2 2
        x = 144.0
        y = 57.0
        z = 1.0
        hx = 19.4167388793
        hy = 42.5269119346
    [[ROUTER COMPANY]]
        model = 3725
        console = 2108
        aux = 2508
        cnfg = configs\COMPANY.cfg
        wic0/0 = WIC-2T
        s0/0 = ISP_1 s0/2
        s0/1 = Border_1 s0/1
        x = 61.2426406871
        y = -159.686291501
        z = 1.0
    [[ROUTER INTERNET]]
        model = 3725
        console = 2107
        aux = 2507
        cnfg = configs\INTERNET.cfg
        wic0/0 = WIC-2T
        s0/0 = ISP_2 s0/2
        s0/1 = ISP_1 s0/0
        x = 50.0
        y = -399.0
        z = 1.0
    [[ETHSW SW2]]
        1 = dot1q 1 Border_1 f0/1
        2 = dot1q 1 Border_2 f0/1
        x = 0.5
        y = 176.0
        z = 1.0
    [[ROUTER Border_1]]
        model = 3725
        console = 2101
        aux = 2501
        cnfg = configs\Border_1.cfg
        wic0/0 = WIC-2T
        s0/0 = ISP_1 s0/1
        s0/1 = COMPANY s0/1
        f0/0 = Border_2 f0/0
        f0/1 = SW2 1
        x = -100.0
        y = 56.0
        z = 1.0
        hx = -17.8431457505
        hy = 44.5269119346
[GNS3-DATA]
    configs = configs
    [[NOTE 1]]
        text = "AS 200"
        x = 56.0
        y = -462.0
    [[NOTE 2]]
        text = "AS 1234"
        x = 66.7989898732
        y = -223.171572875
    [[NOTE 3]]
        text = "158.98.84.16/30"
        x = -100.0
        y = -119.0
    [[NOTE 4]]
        text = "158.98.84.20/30"
        x = -165.0
        y = -313.0
    [[NOTE 5]]
        text = "Rules of the lab:\n\n1) you are ONLY authorized to modify Border_1 and Border_2\n2) all other routers can be accessed for troubleshooting or \n    verification but in NO CASE their config has to be changed"
        x = -779.675323681
        y = -482.423448278
    [[NOTE 6]]
        text = "158.98.84.0/30"
        x = -249.0
        y = -23.0
    [[NOTE 7]]
        text = "Instructions:\n\n1) Each Router is advertising a /32 loopback which is also the router ID\n\n\nGoals:\nYou have to modifiy Border_1 and Border_2 in order to achieve the\nfollowing goals:\n\n1) B1 and B2 will be iBGP neighbors over the lan 192.168.1.0/30\n\n2) B1 will need to peer with ISP_1 and COMPANY router with an\n    eBGP connection.\n\n3) B2 will peer with ISP_2. You must achieve load balancing for your traffic\n     using both links and you will not use BGP to achieve that.\n\n4) B1 and B2 must advertise into their loopback and all the subnet in the lan\n     except the B2B link.\n\n5) Verify on INTERNET that all subnets are received properly.\n\n6) B1 and B2 decided to summarize their internal networks and to advertise\n    only the best summary route. Be sure that B1 and B2 have all 4 networks\n    and summary route in the BGP table, while external routers need to have\n    only the summary.\n\n7) access ISP_2, and check the route used to reach 88.88.88.88/32 (COMPANY's\n    lookpback. Explain why that path is followed with "default" BGP configuration\n    and take proper actions on B1 and B2 so that AS 65000 will not become anymore\n    a transit network.\n\n8) Implement on B1 and B2 the proper configuration changes so that OUTBOUND\n    traffic will use B2-ISP_2 link, and INCOMING traffic will used B1-ISP_1 link.\n    (use MED and Local Preference)\n\n9) Note how INTERNET router is not influenced by MED, WHY ? Use an alternative method\n    to influence the incoming traffic path."
        x = -781.332177931
        y = -384.457936164
    [[NOTE 8]]
        text = "158.98.84.4/30"
        x = 28.0
        y = -42.0
    [[NOTE 9]]
        text = "AS 300"
        x = 310.485281374
        y = -235.928932188
    [[NOTE 10]]
        text = "158.98.84.24/30"
        x = 206.0
        y = -316.0
    [[NOTE 11]]
        text = "AS 65000"
        x = 21.0
        y = 17.0
    [[NOTE 12]]
        text = "158.98.84.8/30\n158.98.84.12/30"
        x = 249.0
        y = -20.0
    [[NOTE 13]]
        text = "AS 100"
        x = -234.769552622
        y = -221.100505063
    [[NOTE 14]]
        text = "192.168.1.0/30"
        x = 6.0
        y = 48.0
    [[NOTE 15]]
        text = "192.168.10.0/24\n192.168.11.0/24\n192.168.12.0/24\n192.168.13.0/24"
        x = 119.0
        y = 137.0
    [[SHAPE 1]]
        type = ellipse
        x = -285.0
        y = -261.0
        width = 201.0
        height = 196.0
        border_style = 2
    [[SHAPE 2]]
        type = ellipse
        x = -22.0
        y = -480.0
        width = 218.0
        height = 200.0
        border_style = 2
    [[SHAPE 3]]
        type = ellipse
        x = 234.0
        y = -266.0
        width = 200.0
        height = 200.0
        border_style = 2
    [[SHAPE 4]]
        type = ellipse
        x = 5.0
        y = -257.0
        width = 199.0
        height = 200.0
        border_style = 2
    [[SHAPE 5]]
        type = ellipse
        x = -180.0
        y = 2.0
        width = 469.0
        height = 263.0
        border_style = 2

and here is the converted .gns3 file:

{
    "name": "unsaved", 
    "resources_type": "local", 
    "topology": {
        "ellipses": [
            {
                "border_style": 2, 
                "height": 200.0, 
                "width": 199.0, 
                "x": 5.0, 
                "y": -257.0
            }, 
            {
                "border_style": 2, 
                "height": 263.0, 
                "width": 469.0, 
                "x": -180.0, 
                "y": 2.0
            }, 
            {
                "border_style": 2, 
                "height": 196.0, 
                "width": 201.0, 
                "x": -285.0, 
                "y": -261.0
            }, 
            {
                "border_style": 2, 
                "height": 200.0, 
                "width": 218.0, 
                "x": -22.0, 
                "y": -480.0
            }, 
            {
                "border_style": 2, 
                "height": 200.0, 
                "width": 200.0, 
                "x": 234.0, 
                "y": -266.0
            }
        ], 
        "links": [
            {
                "description": "Link from Border_1 port FastEthernet0/1 to SW2 port 1", 
                "destination_node_id": 1, 
                "destination_port_id": 29, 
                "id": 1, 
                "source_node_id": 2, 
                "source_port_id": 2
            }, 
            {
                "description": "Link from Border_1 port FastEthernet0/0 to Border_2 port FastEthernet0/0", 
                "destination_node_id": 3, 
                "destination_port_id": 5, 
                "id": 2, 
                "source_node_id": 2, 
                "source_port_id": 1
            }, 
            {
                "description": "Link from Border_2 port FastEthernet0/1 to SW2 port 2", 
                "destination_node_id": 1, 
                "destination_port_id": 30, 
                "id": 3, 
                "source_node_id": 3, 
                "source_port_id": 6
            }, 
            {
                "description": "Link from Border_2 port Serial0/0 to ISP_2 port Serial0/0", 
                "destination_node_id": 7, 
                "destination_port_id": 25, 
                "id": 4, 
                "source_node_id": 3, 
                "source_port_id": 7
            }
        ], 
        "nodes": [
            {
                "description": "Ethernet switch", 
                "id": 1, 
                "label": {
                    "color": "#000000", 
                    "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                    "text": "SW2", 
                    "x": 15.5, 
                    "y": -25.0
                }, 
                "ports": [
                    {
                        "description": "connected to Border_1 on port FastEthernet0/1", 
                        "id": 29, 
                        "link_id": 1, 
                        "name": "1", 
                        "nio": "NIO_UDP", 
                        "port_number": 1, 
                        "type": "dot1q", 
                        "vlan": 1
                    }, 
                    {
                        "description": "connected to Border_2 on port FastEthernet0/1", 
                        "id": 30, 
                        "link_id": 3, 
                        "name": "2", 
                        "nio": "NIO_UDP", 
                        "port_number": 2, 
                        "type": "dot1q", 
                        "vlan": 1
                    }
                ], 
                "properties": {
                    "name": "SW2"
                }, 
                "server_id": 1, 
                "type": "EthernetSwitch", 
                "x": 0.5, 
                "y": 176.0
            }, 
            {
                "description": "Router c3725", 
                "id": 2, 
                "label": {
                    "color": "#000000", 
                    "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                    "text": "Border_1", 
                    "x": -17.8431457505, 
                    "y": 44.5269119346
                }, 
                "ports": [
                    {
                        "description": "connected to Border_2 on port FastEthernet0/0", 
                        "id": 1, 
                        "link_id": 2, 
                        "name": "FastEthernet0/0", 
                        "nio": "NIO_UDP", 
                        "port_number": 0, 
                        "slot_number": 0
                    }, 
                    {
                        "description": "connected to SW2 on port 1", 
                        "id": 2, 
                        "link_id": 1, 
                        "name": "FastEthernet0/1", 
                        "nio": "NIO_UDP", 
                        "port_number": 1, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 3, 
                        "name": "Serial0/0", 
                        "port_number": 16, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 44, 
                        "name": "Serial0/1", 
                        "port_number": 17, 
                        "slot_number": 0
                    }
                ], 
                "properties": {
                    "aux": 2501, 
                    "console": 2101, 
                    "exec_area": 16, 
                    "idlepc": "0x60c09aa0", 
                    "image": "c3725-adventerprisek9-mz.124-15.T14.image", 
                    "mac_addr": "c202.16fc.0000", 
                    "name": "Border_1", 
                    "startup_config": "configs\\i2_startup-config.cfg", 
                    "wic0": "WIC-2T"
                }, 
                "router_id": 2, 
                "server_id": 1, 
                "type": "C3725", 
                "x": -100.0, 
                "y": 56.0
            }, 
            {
                "description": "Router c3725", 
                "id": 3, 
                "label": {
                    "color": "#000000", 
                    "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                    "text": "Border_2", 
                    "x": 19.4167388793, 
                    "y": 42.5269119346
                }, 
                "ports": [
                    {
                        "description": "connected to Border_1 on port FastEthernet0/0", 
                        "id": 5, 
                        "link_id": 2, 
                        "name": "FastEthernet0/0", 
                        "nio": "NIO_UDP", 
                        "port_number": 0, 
                        "slot_number": 0
                    }, 
                    {
                        "description": "connected to SW2 on port 2", 
                        "id": 6, 
                        "link_id": 3, 
                        "name": "FastEthernet0/1", 
                        "nio": "NIO_UDP", 
                        "port_number": 1, 
                        "slot_number": 0
                    }, 
                    {
                        "description": "connected to ISP_2 on port Serial0/0", 
                        "id": 7, 
                        "link_id": 4, 
                        "name": "Serial0/0", 
                        "nio": "NIO_UDP", 
                        "port_number": 16, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 46, 
                        "name": "Serial0/1", 
                        "port_number": 17, 
                        "slot_number": 0
                    }
                ], 
                "properties": {
                    "aux": 2502, 
                    "console": 2102, 
                    "exec_area": 16, 
                    "idlepc": "0x60c09aa0", 
                    "image": "c3725-adventerprisek9-mz.124-15.T14.image", 
                    "mac_addr": "c203.04ec.0000", 
                    "name": "Border_2", 
                    "startup_config": "configs\\i3_startup-config.cfg", 
                    "wic0": "WIC-2T"
                }, 
                "router_id": 3, 
                "server_id": 1, 
                "type": "C3725", 
                "x": 144.0, 
                "y": 57.0
            }, 
            {
                "description": "Router c3725", 
                "id": 4, 
                "label": {
                    "color": "#000000", 
                    "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                    "text": "COMPANY", 
                    "x": 19.5, 
                    "y": -25.0
                }, 
                "ports": [
                    {
                        "id": 9, 
                        "name": "FastEthernet0/0", 
                        "port_number": 0, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 10, 
                        "name": "FastEthernet0/1", 
                        "port_number": 1, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 11, 
                        "name": "Serial0/0", 
                        "port_number": 16, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 48, 
                        "name": "Serial0/1", 
                        "port_number": 17, 
                        "slot_number": 0
                    }
                ], 
                "properties": {
                    "aux": 2508, 
                    "console": 2108, 
                    "exec_area": 16, 
                    "idlepc": "0x60c09aa0", 
                    "image": "c3725-adventerprisek9-mz.124-15.T14.image", 
                    "mac_addr": "c204.0840.0000", 
                    "name": "COMPANY", 
                    "startup_config": "configs\\i4_startup-config.cfg", 
                    "wic0": "WIC-2T"
                }, 
                "router_id": 4, 
                "server_id": 1, 
                "type": "C3725", 
                "x": 61.2426406871, 
                "y": -159.686291501
            }, 
            {
                "description": "Router c3725", 
                "id": 5, 
                "label": {
                    "color": "#000000", 
                    "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                    "text": "INTERNET", 
                    "x": 19.5, 
                    "y": -25.0
                }, 
                "ports": [
                    {
                        "id": 13, 
                        "name": "FastEthernet0/0", 
                        "port_number": 0, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 14, 
                        "name": "FastEthernet0/1", 
                        "port_number": 1, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 15, 
                        "name": "Serial0/0", 
                        "port_number": 16, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 50, 
                        "name": "Serial0/1", 
                        "port_number": 17, 
                        "slot_number": 0
                    }
                ], 
                "properties": {
                    "aux": 2507, 
                    "console": 2107, 
                    "exec_area": 16, 
                    "idlepc": "0x60c09aa0", 
                    "image": "c3725-adventerprisek9-mz.124-15.T14.image", 
                    "mac_addr": "c205.15d0.0000", 
                    "name": "INTERNET", 
                    "startup_config": "configs\\i5_startup-config.cfg", 
                    "wic0": "WIC-2T"
                }, 
                "router_id": 5, 
                "server_id": 1, 
                "type": "C3725", 
                "x": 50.0, 
                "y": -399.0
            }, 
            {
                "description": "Router c3725", 
                "id": 6, 
                "label": {
                    "color": "#000000", 
                    "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                    "text": "ISP_1", 
                    "x": 19.5, 
                    "y": -25.0
                }, 
                "ports": [
                    {
                        "id": 17, 
                        "name": "FastEthernet0/0", 
                        "port_number": 0, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 18, 
                        "name": "FastEthernet0/1", 
                        "port_number": 1, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 19, 
                        "name": "Serial0/0", 
                        "port_number": 16, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 52, 
                        "name": "Serial0/1", 
                        "port_number": 17, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 53, 
                        "name": "Serial0/2", 
                        "port_number": 32, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 54, 
                        "name": "Serial0/3", 
                        "port_number": 33, 
                        "slot_number": 0
                    }
                ], 
                "properties": {
                    "aux": 2506, 
                    "console": 2106, 
                    "exec_area": 16, 
                    "idlepc": "0x60c09aa0", 
                    "image": "c3725-adventerprisek9-mz.124-15.T14.image", 
                    "mac_addr": "c206.04f0.0000", 
                    "name": "ISP_1", 
                    "startup_config": "configs\\i6_startup-config.cfg", 
                    "wic0": "WIC-2T", 
                    "wic1": "WIC-2T"
                }, 
                "router_id": 6, 
                "server_id": 1, 
                "type": "C3725", 
                "x": -239.0, 
                "y": -165.0
            }, 
            {
                "description": "Router c3725", 
                "id": 7, 
                "label": {
                    "color": "#000000", 
                    "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                    "text": "ISP_2", 
                    "x": 19.5, 
                    "y": -25.0
                }, 
                "ports": [
                    {
                        "id": 23, 
                        "name": "FastEthernet0/0", 
                        "port_number": 0, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 24, 
                        "name": "FastEthernet0/1", 
                        "port_number": 1, 
                        "slot_number": 0
                    }, 
                    {
                        "description": "connected to Border_2 on port Serial0/0", 
                        "id": 25, 
                        "link_id": 4, 
                        "name": "Serial0/0", 
                        "nio": "NIO_UDP", 
                        "port_number": 16, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 56, 
                        "name": "Serial0/1", 
                        "port_number": 17, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 57, 
                        "name": "Serial0/2", 
                        "port_number": 32, 
                        "slot_number": 0
                    }, 
                    {
                        "id": 58, 
                        "name": "Serial0/3", 
                        "port_number": 33, 
                        "slot_number": 0
                    }
                ], 
                "properties": {
                    "aux": 2505, 
                    "console": 2105, 
                    "exec_area": 16, 
                    "idlepc": "0x60c09aa0", 
                    "image": "c3725-adventerprisek9-mz.124-15.T14.image", 
                    "mac_addr": "c207.2500.0000", 
                    "name": "ISP_2", 
                    "startup_config": "configs\\i7_startup-config.cfg", 
                    "wic0": "WIC-2T", 
                    "wic1": "WIC-2T"
                }, 
                "router_id": 7, 
                "server_id": 1, 
                "type": "C3725", 
                "x": 297.0, 
                "y": -181.0
            }
        ], 
        "notes": [
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "158.98.84.20/30", 
                "x": -165.0, 
                "y": -313.0
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "Rules of the lab:\n\n1) you are ONLY authorized to modify Border_1 and Border_2\n2) all other routers can be accessed for troubleshooting or \n    verification but in NO CASE their config has to be changed", 
                "x": -779.675323681, 
                "y": -482.423448278
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "158.98.84.0/30", 
                "x": -249.0, 
                "y": -23.0
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "Instructions:\n\n1) Each Router is advertising a /32 loopback which is also the router ID\n\n\nGoals:\nYou have to modifiy Border_1 and Border_2 in order to achieve the\nfollowing goals:\n\n1) B1 and B2 will be iBGP neighbors over the lan 192.168.1.0/30\n\n2) B1 will need to peer with ISP_1 and COMPANY router with an\n    eBGP connection.\n\n3) B2 will peer with ISP_2. You must achieve load balancing for your traffic\n     using both links and you will not use BGP to achieve that.\n\n4) B1 and B2 must advertise into their loopback and all the subnet in the lan\n     except the B2B link.\n\n5) Verify on INTERNET that all subnets are received properly.\n\n6) B1 and B2 decided to summarize their internal networks and to advertise\n    only the best summary route. Be sure that B1 and B2 have all 4 networks\n    and summary route in the BGP table, while external routers need to have\n    only the summary.\n\n7) access ISP_2, and check the route used to reach 88.88.88.88/32 (COMPANY's\n    lookpback. Explain why that path is followed with \"default\" BGP configuration\n    and take proper actions on B1 and B2 so that AS 65000 will not become anymore\n    a transit network.\n\n8) Implement on B1 and B2 the proper configuration changes so that OUTBOUND\n    traffic will use B2-ISP_2 link, and INCOMING traffic will used B1-ISP_1 link.\n    (use MED and Local Preference)\n\n9) Note how INTERNET router is not influenced by MED, WHY ? Use an alternative method\n    to influence the incoming traffic path.", 
                "x": -781.332177931, 
                "y": -384.457936164
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "AS 200", 
                "x": 56.0, 
                "y": -462.0
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "AS 1234", 
                "x": 66.7989898732, 
                "y": -223.171572875
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "158.98.84.16/30", 
                "x": -100.0, 
                "y": -119.0
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "158.98.84.4/30", 
                "x": 28.0, 
                "y": -42.0
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "AS 300", 
                "x": 310.485281374, 
                "y": -235.928932188
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "158.98.84.8/30\n158.98.84.12/30", 
                "x": 249.0, 
                "y": -20.0
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "AS 100", 
                "x": -234.769552622, 
                "y": -221.100505063
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "158.98.84.24/30", 
                "x": 206.0, 
                "y": -316.0
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "AS 65000", 
                "x": 21.0, 
                "y": 17.0
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "192.168.1.0/30", 
                "x": 6.0, 
                "y": 48.0
            }, 
            {
                "color": "#000000", 
                "font": "TypeWriter,10,-1,5,75,0,0,0,0,0", 
                "text": "192.168.10.0/24\n192.168.11.0/24\n192.168.12.0/24\n192.168.13.0/24", 
                "x": 119.0, 
                "y": 137.0
            }
        ], 
        "servers": [
            {
                "host": "192.168.184.1", 
                "id": 1, 
                "local": true, 
                "port": 8000
            }
        ]
    }, 
    "type": "topology", 
    "version": "1.2"
}

this bug shows up on several .net files i have and i can provide them all if needed

Issue on converting project with rotated object (related to issue #19)

Hi, Tried importing with latest version on my GNS3. First time I got the two un-rotated coloured circles come across and no rotated circle with the error below. Shut down and tried again and this time no circles came across but same error.

thanks

GNS3 management console. Running GNS3 version 1.2.3 on Linux (64-bit).
Copyright (c) 2006-2014 GNS3 Technologies.

=> ****** Exception detected, traceback information saved in /root/.config/GNS3/exception.log ******

PLEASE REPORT ON https://community.gns3.com/community/support/bug

Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/gns3_gui-1.2.3-py3.4.egg/gns3/dialogs/new_project_dialog.py", line 99, in _openProjectActionSlot
self._main_window.openProjectActionSlot()
File "/usr/lib/python3.4/site-packages/gns3_gui-1.2.3-py3.4.egg/gns3/main_window.py", line 452, in openProjectActionSlot
if self.loadProject(path):
File "/usr/lib/python3.4/site-packages/gns3_gui-1.2.3-py3.4.egg/gns3/main_window.py", line 1375, in loadProject
self._convertOldProject(path)
File "/usr/lib/python3.4/site-packages/gns3_gui-1.2.3-py3.4.egg/gns3/main_window.py", line 1360, in _convertOldProject
self.loadProject(project_path)
File "/usr/lib/python3.4/site-packages/gns3_gui-1.2.3-py3.4.egg/gns3/main_window.py", line 1406, in loadProject
topology.load(json_topology)
File "/usr/lib/python3.4/site-packages/gns3_gui-1.2.3-py3.4.egg/gns3/topology.py", line 644, in load
ellipse_item.load(topology_ellipse)
File "/usr/lib/python3.4/site-packages/gns3_gui-1.2.3-py3.4.egg/gns3/items/shape_item.py", line 302, in load
self.setRotation(rotation)
TypeError: QGraphicsItem.setRotation(float): argument 1 has unexpected type 'str'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.