TwoWheelDev / gns3-converter

GNS3 Topology Converter
GNU General Public License v3.0
14 stars 13 forks source link

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

Closed rednectar closed 10 years ago

rednectar commented 10 years ago

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