Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

shapes colors and levels are not converted properly #18

Closed
anubisg1 opened this issue Nov 26, 2014 · 6 comments
Closed

shapes colors and levels are not converted properly #18

anubisg1 opened this issue Nov 26, 2014 · 6 comments
Assignees
Labels

Comments

@anubisg1
Copy link

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
@anubisg1
Copy link
Author

the two dottet ovals seems like have been converted as shapes, i can move and modify their attributes.

all the other shapes that formed the blue and yellow area, can't be moved around nor selected, but can be modified only via a right click on the shape itself

@anubisg1
Copy link
Author

the levels are ok. The two dotted circles only missed the alpha channel setting (the transparency)

in this case, under fill color, alpha channel was converted to 255, but should have been 0

image

@TwoWheelDev
Copy link
Owner

Okay, I've found the issue.. in that the information isn't present in the old topology files. From my testing a shape is transparent in 0.8.7 if the shape has no fill_color attribute.

Unfortuantely I can't verify my fix as yet, due to GNS3/gns3-gui#161 which messes up the transparency and the borders

@TwoWheelDev TwoWheelDev added the bug label Dec 9, 2014
@TwoWheelDev TwoWheelDev self-assigned this Dec 9, 2014
@TwoWheelDev
Copy link
Owner

Okay, with the fix in GNS3 this I can now verify this is sorted and will be included in the next release of gns3-converter.

success

N.B... This won't work in GNS3 1.2.1 due to a bug GNS3/gns3-gui#161, you'll need to use 1.2.2-dev1 or wait for the next gns3 release

@anubisg1
Copy link
Author

was this problem

"the two dottet ovals seems like have been converted as shapes, i can move and modify their attributes.

all the other shapes that formed the blue and yellow area, can't be moved around nor selected, but can be modified only via a right click on the shape itself"

also fixed ?

thanks btw for your fix

@TwoWheelDev
Copy link
Owner

That behaviour is what I would expect as the two dotted ovals are on layer 0 (layer 0 and above are selectable)

The rest of the shapes are on layer -1 (e.g. background), which prevents them from being moved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants