{"action":"created","issue":{"url":"https://api.github.com/repos/GNS3/gns3-server/issues/1315","repository_url":"https://api.github.com/repos/GNS3/gns3-server","labels_url":"https://api.github.com/repos/GNS3/gns3-server/issues/1315/labels{/name}","comments_url":"https://api.github.com/repos/GNS3/gns3-server/issues/1315/comments","events_url":"https://api.github.com/repos/GNS3/gns3-server/issues/1315/events","html_url":"https://github.com/GNS3/gns3-server/issues/1315","id":304192547,"node_id":"MDU6SXNzdWUzMDQxOTI1NDc=","number":1315,"title":"Config export not working for IOSv/IOSvL2","user":{"login":"candlerb","id":44789,"node_id":"MDQ6VXNlcjQ0Nzg5","avatar_url":"https://avatars2.githubusercontent.com/u/44789?v=4","gravatar_id":"","url":"https://api.github.com/users/candlerb","html_url":"https://github.com/candlerb","followers_url":"https://api.github.com/users/candlerb/followers","following_url":"https://api.github.com/users/candlerb/following{/other_user}","gists_url":"https://api.github.com/users/candlerb/gists{/gist_id}","starred_url":"https://api.github.com/users/candlerb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/candlerb/subscriptions","organizations_url":"https://api.github.com/users/candlerb/orgs","repos_url":"https://api.github.com/users/candlerb/repos","events_url":"https://api.github.com/users/candlerb/events{/privacy}","received_events_url":"https://api.github.com/users/candlerb/received_events","type":"User","site_admin":false},"labels":[{"id":58101429,"node_id":"MDU6TGFiZWw1ODEwMTQyOQ==","url":"https://api.github.com/repos/GNS3/gns3-server/labels/Enhancement","name":"Enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":{"login":"grossmj","id":4752614,"node_id":"MDQ6VXNlcjQ3NTI2MTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4752614?v=4","gravatar_id":"","url":"https://api.github.com/users/grossmj","html_url":"https://github.com/grossmj","followers_url":"https://api.github.com/users/grossmj/followers","following_url":"https://api.github.com/users/grossmj/following{/other_user}","gists_url":"https://api.github.com/users/grossmj/gists{/gist_id}","starred_url":"https://api.github.com/users/grossmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grossmj/subscriptions","organizations_url":"https://api.github.com/users/grossmj/orgs","repos_url":"https://api.github.com/users/grossmj/repos","events_url":"https://api.github.com/users/grossmj/events{/privacy}","received_events_url":"https://api.github.com/users/grossmj/received_events","type":"User","site_admin":false},"assignees":[{"login":"grossmj","id":4752614,"node_id":"MDQ6VXNlcjQ3NTI2MTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4752614?v=4","gravatar_id":"","url":"https://api.github.com/users/grossmj","html_url":"https://github.com/grossmj","followers_url":"https://api.github.com/users/grossmj/followers","following_url":"https://api.github.com/users/grossmj/following{/other_user}","gists_url":"https://api.github.com/users/grossmj/gists{/gist_id}","starred_url":"https://api.github.com/users/grossmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grossmj/subscriptions","organizations_url":"https://api.github.com/users/grossmj/orgs","repos_url":"https://api.github.com/users/grossmj/repos","events_url":"https://api.github.com/users/grossmj/events{/privacy}","received_events_url":"https://api.github.com/users/grossmj/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/GNS3/gns3-server/milestones/43","html_url":"https://github.com/GNS3/gns3-server/milestone/43","labels_url":"https://api.github.com/repos/GNS3/gns3-server/milestones/43/labels","id":3070759,"node_id":"MDk6TWlsZXN0b25lMzA3MDc1OQ==","number":43,"title":"2.2.1","description":"","creator":{"login":"grossmj","id":4752614,"node_id":"MDQ6VXNlcjQ3NTI2MTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4752614?v=4","gravatar_id":"","url":"https://api.github.com/users/grossmj","html_url":"https://github.com/grossmj","followers_url":"https://api.github.com/users/grossmj/followers","following_url":"https://api.github.com/users/grossmj/following{/other_user}","gists_url":"https://api.github.com/users/grossmj/gists{/gist_id}","starred_url":"https://api.github.com/users/grossmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grossmj/subscriptions","organizations_url":"https://api.github.com/users/grossmj/orgs","repos_url":"https://api.github.com/users/grossmj/repos","events_url":"https://api.github.com/users/grossmj/events{/privacy}","received_events_url":"https://api.github.com/users/grossmj/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":0,"state":"open","created_at":"2018-01-29T10:18:15Z","updated_at":"2018-08-21T10:26:58Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-03-11T20:49:21Z","updated_at":"2018-09-06T18:54:12Z","closed_at":null,"author_association":"NONE","body":"Platform: server 2.1.3 running on Ubuntu 16.04, GUI 2.1.3 running on macOS.\r\n\r\nTo replicate:\r\n\r\n* Load topology with IOSv and IOSvL2 devices (shutdown)\r\n* Select `Tools > Import/Export Node Configs > Export configs to a directory`\r\n* Select a directory on the frontend\r\n\r\nWhat happens is:\r\n\r\n1. Only a single config file is written (I was expecting one each per device).  Its name is `host1-campus1_etc_network_interfaces`, where host1-campus1 is one of the devices in the topology.\r\n2. The contents of this file, instead of being an IOS config, are something from Linux:\r\n\r\n~~~\r\n#\r\n# This is a sample network config uncomment lines to configure the network\r\n#\r\n\r\n\r\n# Static config for eth0\r\n#auto eth0\r\n#iface eth0 inet static\r\n#\taddress 192.168.0.2\r\n#\tnetmask 255.255.255.0\r\n#\tgateway 192.168.0.1\r\n#\tup echo nameserver 192.168.0.1 > /etc/resolv.conf\r\n\r\n# DHCP config for eth0\r\n# auto eth0\r\n# iface eth0 inet dhcp\r\n~~~\r\n\r\nGiven that export via the GUI didn't work, I didn't try import.\r\n\r\nBTW, I used the IOSv/IOSvL2 appliances from the marketplace, adjusting only the filenames and md5 checksums to match the specific images I have available.\r\n\r\nI notice that GNS3 includes [scripts](https://github.com/GNS3/gns3-server/tree/master/gns3server/compute/iou/utils) for exporting/importing IOU configs, and these [work with IOSv](https://gns3.com/qa/configuration-iosv-save). \r\n\r\nUsing these, I got manual import to work - using the python script to import the text config as an nvram file, and uploading it to `/nvram` using guestfish.  Actually, I found it works like that for IOSvL2, but with IOSv the NVRAM config is ignored, and I get the following error during bootup:\r\n\r\n~~~\r\n*Mar 11 13:15:58.086: %CVAC-4-FILE_IGNORED: Configuration file flash0:/ios_config.txt is ignored : empty file\r\n*Mar 11 13:15:58.113: %CVAC-4-FILE_IGNORED: Configuration file flash2:/ios_config.txt is ignored : empty file\r\n~~~\r\n\r\nHowever if I copy both `/nvram` and `/ios_config.txt` (the latter just being the source text config), then the config loads but I get this message:\r\n\r\n~~~\r\n% Applying bootstrap config from flash0:...Warning: Attempting to overwrite an NVRAM configuration previously written\r\nby a different version of the system image.\r\n~~~\r\n\r\nI'm not sure why IOSv and IOSvL2 would behave differently; maybe it's because of the specific versions I'm working with?"},"comment":{"url":"https://api.github.com/repos/GNS3/gns3-server/issues/comments/419203834","html_url":"https://github.com/GNS3/gns3-server/issues/1315#issuecomment-419203834","issue_url":"https://api.github.com/repos/GNS3/gns3-server/issues/1315","id":419203834,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTIwMzgzNA==","user":{"login":"cioby23","id":7124193,"node_id":"MDQ6VXNlcjcxMjQxOTM=","avatar_url":"https://avatars2.githubusercontent.com/u/7124193?v=4","gravatar_id":"","url":"https://api.github.com/users/cioby23","html_url":"https://github.com/cioby23","followers_url":"https://api.github.com/users/cioby23/followers","following_url":"https://api.github.com/users/cioby23/following{/other_user}","gists_url":"https://api.github.com/users/cioby23/gists{/gist_id}","starred_url":"https://api.github.com/users/cioby23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cioby23/subscriptions","organizations_url":"https://api.github.com/users/cioby23/orgs","repos_url":"https://api.github.com/users/cioby23/repos","events_url":"https://api.github.com/users/cioby23/events{/privacy}","received_events_url":"https://api.github.com/users/cioby23/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T18:54:12Z","updated_at":"2018-09-06T18:54:12Z","author_association":"NONE","body":"This specific issue is covered by the more generic request https://github.com/GNS3/gns3-gui/issues/1095  which should allow export of configs from all Qemu appliances."}}
{"actor":{"display_login":"cioby23"}}