{"action":"created","issue":{"url":"https://api.github.com/repos/socketplane/socketplane/issues/114","labels_url":"https://api.github.com/repos/socketplane/socketplane/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/socketplane/socketplane/issues/114/comments","events_url":"https://api.github.com/repos/socketplane/socketplane/issues/114/events","html_url":"https://github.com/socketplane/socketplane/issues/114","id":54586511,"number":114,"title":"Creating networks with same name as a deleted network uses wrong (old) CIDR","user":{"login":"wallnerryan","id":1072151,"avatar_url":"https://avatars.githubusercontent.com/u/1072151?v=3","gravatar_id":"","url":"https://api.github.com/users/wallnerryan","html_url":"https://github.com/wallnerryan","followers_url":"https://api.github.com/users/wallnerryan/followers","following_url":"https://api.github.com/users/wallnerryan/following{/other_user}","gists_url":"https://api.github.com/users/wallnerryan/gists{/gist_id}","starred_url":"https://api.github.com/users/wallnerryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wallnerryan/subscriptions","organizations_url":"https://api.github.com/users/wallnerryan/orgs","repos_url":"https://api.github.com/users/wallnerryan/repos","events_url":"https://api.github.com/users/wallnerryan/events{/privacy}","received_events_url":"https://api.github.com/users/wallnerryan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/socketplane/socketplane/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/socketplane/socketplane/milestones/1","labels_url":"https://api.github.com/repos/socketplane/socketplane/milestones/1/labels","id":915217,"number":1,"title":"0.1","description":"","creator":{"login":"dave-tucker","id":3781777,"avatar_url":"https://avatars.githubusercontent.com/u/3781777?v=3","gravatar_id":"","url":"https://api.github.com/users/dave-tucker","html_url":"https://github.com/dave-tucker","followers_url":"https://api.github.com/users/dave-tucker/followers","following_url":"https://api.github.com/users/dave-tucker/following{/other_user}","gists_url":"https://api.github.com/users/dave-tucker/gists{/gist_id}","starred_url":"https://api.github.com/users/dave-tucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave-tucker/subscriptions","organizations_url":"https://api.github.com/users/dave-tucker/orgs","repos_url":"https://api.github.com/users/dave-tucker/repos","events_url":"https://api.github.com/users/dave-tucker/events{/privacy}","received_events_url":"https://api.github.com/users/dave-tucker/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":5,"state":"open","created_at":"2014-12-26T15:55:21Z","updated_at":"2015-01-16T15:26:58Z","due_on":"2015-01-31T00:00:00Z","closed_at":null},"comments":1,"created_at":"2015-01-16T15:20:51Z","updated_at":"2015-01-16T15:28:09Z","closed_at":null,"body":"This may be related to the cleanup around #110 and possibly #72\r\n\r\nIf a network is created with name foo2 with cidr <x> then deleted and a network is created with the name of foo2 again with cidr <y> cidr <x> will be used.\r\n\r\n```\r\nvagrant@socketplane-1:~$ sudo socketplane network create foo2 10.3.0.0/16\r\n{\r\n    \"gateway\": \"10.3.0.1\",\r\n    \"id\": \"foo2\",\r\n    \"subnet\": \"10.3.0.0/16\",\r\n    \"vlan\": 2\r\n}\r\n\r\nvagrant@socketplane-1:~$ sudo socketplane network delete foo2\r\nvagrant@socketplane-1:~$ sudo socketplane network create foo2 10.5.0.0/16\r\n{\r\n    \"gateway\": \"10.3.0.1\",\r\n    \"id\": \"foo2\",\r\n    \"subnet\": \"10.3.0.0/16\",\r\n    \"vlan\": 2\r\n}\r\nvagrant@socketplane-1:~$ sudo socketplane network list\r\n[\r\n    {\r\n        \"gateway\": \"10.1.0.1\",\r\n        \"id\": \"default\",\r\n        \"subnet\": \"10.1.0.0/16\",\r\n        \"vlan\": 1\r\n    },\r\n    {\r\n        \"gateway\": \"10.3.0.1\",\r\n        \"id\": \"foo2\",\r\n        \"subnet\": \"10.3.0.0/16\",\r\n        \"vlan\": 2\r\n    }\r\n]\r\n```\r\n\r\nAlso confirmed that foo2 bridge is old CIDR and containers run with network receive the old CIDR address assignment. "},"comment":{"url":"https://api.github.com/repos/socketplane/socketplane/issues/comments/70269342","html_url":"https://github.com/socketplane/socketplane/issues/114#issuecomment-70269342","issue_url":"https://api.github.com/repos/socketplane/socketplane/issues/114","id":70269342,"user":{"login":"dave-tucker","id":3781777,"avatar_url":"https://avatars.githubusercontent.com/u/3781777?v=3","gravatar_id":"","url":"https://api.github.com/users/dave-tucker","html_url":"https://github.com/dave-tucker","followers_url":"https://api.github.com/users/dave-tucker/followers","following_url":"https://api.github.com/users/dave-tucker/following{/other_user}","gists_url":"https://api.github.com/users/dave-tucker/gists{/gist_id}","starred_url":"https://api.github.com/users/dave-tucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave-tucker/subscriptions","organizations_url":"https://api.github.com/users/dave-tucker/orgs","repos_url":"https://api.github.com/users/dave-tucker/repos","events_url":"https://api.github.com/users/dave-tucker/events{/privacy}","received_events_url":"https://api.github.com/users/dave-tucker/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T15:28:09Z","updated_at":"2015-01-16T15:28:09Z","body":"Thanks @wallnerryan - you're right, this is linked to #110. I'll try and take a look at this today"}}