{"action":"created","comment":{"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/comments/39962693","id":39962693,"diff_hunk":"@@ -557,10 +557,12 @@ def get_networks_list(self, tenant_id=''):\n         return self.neutron_client.list_networks(\n             tenant_id=tenant_id)['networks']\n \n+    def get_subnets_list(self, tenant_id=''):","path":"cloudferrylib/os/network/neutron.py","position":13,"original_position":13,"commit_id":"1a92f799ea761dcf2444b6ca3ac1b872ff25302d","original_commit_id":"1a92f799ea761dcf2444b6ca3ac1b872ff25302d","user":{"login":"miarmak","id":3357550,"avatar_url":"https://avatars.githubusercontent.com/u/3357550?v=3","gravatar_id":"","url":"https://api.github.com/users/miarmak","html_url":"https://github.com/miarmak","followers_url":"https://api.github.com/users/miarmak/followers","following_url":"https://api.github.com/users/miarmak/following{/other_user}","gists_url":"https://api.github.com/users/miarmak/gists{/gist_id}","starred_url":"https://api.github.com/users/miarmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miarmak/subscriptions","organizations_url":"https://api.github.com/users/miarmak/orgs","repos_url":"https://api.github.com/users/miarmak/repos","events_url":"https://api.github.com/users/miarmak/events{/privacy}","received_events_url":"https://api.github.com/users/miarmak/received_events","type":"User","site_admin":false},"body":"No, `None` will break current functionality. We use `tenant_id=''` by default, because in this case there will be ALL subnets returned (for all tenants). ","created_at":"2015-09-21T11:58:26Z","updated_at":"2015-09-21T11:58:26Z","html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/409#discussion_r39962693","pull_request_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/409","_links":{"self":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/comments/39962693"},"html":{"href":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/409#discussion_r39962693"},"pull_request":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/409"}}},"pull_request":{"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/409","id":45285577,"html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/409","diff_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/409.diff","patch_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/409.patch","issue_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/409","number":409,"state":"open","locked":false,"title":"[SAIC-447] Grouping by network optimization","user":{"login":"miarmak","id":3357550,"avatar_url":"https://avatars.githubusercontent.com/u/3357550?v=3","gravatar_id":"","url":"https://api.github.com/users/miarmak","html_url":"https://github.com/miarmak","followers_url":"https://api.github.com/users/miarmak/followers","following_url":"https://api.github.com/users/miarmak/following{/other_user}","gists_url":"https://api.github.com/users/miarmak/gists{/gist_id}","starred_url":"https://api.github.com/users/miarmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miarmak/subscriptions","organizations_url":"https://api.github.com/users/miarmak/orgs","repos_url":"https://api.github.com/users/miarmak/repos","events_url":"https://api.github.com/users/miarmak/events{/privacy}","received_events_url":"https://api.github.com/users/miarmak/received_events","type":"User","site_admin":false},"body":"Optimize VMs grouping by network with decreasing Neutron API calls.\r\nAdd 2 functions to `cloudferrylib.os.neutron.py` for obtaining Neutron\r\nnetwork from provided list of networks.","created_at":"2015-09-17T12:45:26Z","updated_at":"2015-09-21T11:58:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a754c10ba457ea9eccfb39d8a960ba353f22f38","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/409/commits","review_comments_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/409/comments","review_comment_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/409/comments","statuses_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/statuses/1a92f799ea761dcf2444b6ca3ac1b872ff25302d","head":{"label":"miarmak:saic-447_grouping_optimization","ref":"saic-447_grouping_optimization","sha":"1a92f799ea761dcf2444b6ca3ac1b872ff25302d","user":{"login":"miarmak","id":3357550,"avatar_url":"https://avatars.githubusercontent.com/u/3357550?v=3","gravatar_id":"","url":"https://api.github.com/users/miarmak","html_url":"https://github.com/miarmak","followers_url":"https://api.github.com/users/miarmak/followers","following_url":"https://api.github.com/users/miarmak/following{/other_user}","gists_url":"https://api.github.com/users/miarmak/gists{/gist_id}","starred_url":"https://api.github.com/users/miarmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miarmak/subscriptions","organizations_url":"https://api.github.com/users/miarmak/orgs","repos_url":"https://api.github.com/users/miarmak/repos","events_url":"https://api.github.com/users/miarmak/events{/privacy}","received_events_url":"https://api.github.com/users/miarmak/received_events","type":"User","site_admin":false},"repo":{"id":24412789,"name":"CloudFerry","full_name":"miarmak/CloudFerry","owner":{"login":"miarmak","id":3357550,"avatar_url":"https://avatars.githubusercontent.com/u/3357550?v=3","gravatar_id":"","url":"https://api.github.com/users/miarmak","html_url":"https://github.com/miarmak","followers_url":"https://api.github.com/users/miarmak/followers","following_url":"https://api.github.com/users/miarmak/following{/other_user}","gists_url":"https://api.github.com/users/miarmak/gists{/gist_id}","starred_url":"https://api.github.com/users/miarmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miarmak/subscriptions","organizations_url":"https://api.github.com/users/miarmak/orgs","repos_url":"https://api.github.com/users/miarmak/repos","events_url":"https://api.github.com/users/miarmak/events{/privacy}","received_events_url":"https://api.github.com/users/miarmak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miarmak/CloudFerry","description":"CloudFerry is a cloud virtual workloads migration tool designed and developed by Mirantis Inc. ","fork":true,"url":"https://api.github.com/repos/miarmak/CloudFerry","forks_url":"https://api.github.com/repos/miarmak/CloudFerry/forks","keys_url":"https://api.github.com/repos/miarmak/CloudFerry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miarmak/CloudFerry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miarmak/CloudFerry/teams","hooks_url":"https://api.github.com/repos/miarmak/CloudFerry/hooks","issue_events_url":"https://api.github.com/repos/miarmak/CloudFerry/issues/events{/number}","events_url":"https://api.github.com/repos/miarmak/CloudFerry/events","assignees_url":"https://api.github.com/repos/miarmak/CloudFerry/assignees{/user}","branches_url":"https://api.github.com/repos/miarmak/CloudFerry/branches{/branch}","tags_url":"https://api.github.com/repos/miarmak/CloudFerry/tags","blobs_url":"https://api.github.com/repos/miarmak/CloudFerry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miarmak/CloudFerry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miarmak/CloudFerry/git/refs{/sha}","trees_url":"https://api.github.com/repos/miarmak/CloudFerry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miarmak/CloudFerry/statuses/{sha}","languages_url":"https://api.github.com/repos/miarmak/CloudFerry/languages","stargazers_url":"https://api.github.com/repos/miarmak/CloudFerry/stargazers","contributors_url":"https://api.github.com/repos/miarmak/CloudFerry/contributors","subscribers_url":"https://api.github.com/repos/miarmak/CloudFerry/subscribers","subscription_url":"https://api.github.com/repos/miarmak/CloudFerry/subscription","commits_url":"https://api.github.com/repos/miarmak/CloudFerry/commits{/sha}","git_commits_url":"https://api.github.com/repos/miarmak/CloudFerry/git/commits{/sha}","comments_url":"https://api.github.com/repos/miarmak/CloudFerry/comments{/number}","issue_comment_url":"https://api.github.com/repos/miarmak/CloudFerry/issues/comments{/number}","contents_url":"https://api.github.com/repos/miarmak/CloudFerry/contents/{+path}","compare_url":"https://api.github.com/repos/miarmak/CloudFerry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miarmak/CloudFerry/merges","archive_url":"https://api.github.com/repos/miarmak/CloudFerry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miarmak/CloudFerry/downloads","issues_url":"https://api.github.com/repos/miarmak/CloudFerry/issues{/number}","pulls_url":"https://api.github.com/repos/miarmak/CloudFerry/pulls{/number}","milestones_url":"https://api.github.com/repos/miarmak/CloudFerry/milestones{/number}","notifications_url":"https://api.github.com/repos/miarmak/CloudFerry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miarmak/CloudFerry/labels{/name}","releases_url":"https://api.github.com/repos/miarmak/CloudFerry/releases{/id}","created_at":"2014-09-24T11:45:40Z","updated_at":"2015-03-05T03:49:43Z","pushed_at":"2015-09-18T14:58:12Z","git_url":"git://github.com/miarmak/CloudFerry.git","ssh_url":"git@github.com:miarmak/CloudFerry.git","clone_url":"https://github.com/miarmak/CloudFerry.git","svn_url":"https://github.com/miarmak/CloudFerry","homepage":null,"size":2181,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MirantisWorkloadMobility:devel","ref":"devel","sha":"c1b1fc1ef7867dd4be28e4d5d0a4d421c2367d54","user":{"login":"MirantisWorkloadMobility","id":8500817,"avatar_url":"https://avatars.githubusercontent.com/u/8500817?v=3","gravatar_id":"","url":"https://api.github.com/users/MirantisWorkloadMobility","html_url":"https://github.com/MirantisWorkloadMobility","followers_url":"https://api.github.com/users/MirantisWorkloadMobility/followers","following_url":"https://api.github.com/users/MirantisWorkloadMobility/following{/other_user}","gists_url":"https://api.github.com/users/MirantisWorkloadMobility/gists{/gist_id}","starred_url":"https://api.github.com/users/MirantisWorkloadMobility/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MirantisWorkloadMobility/subscriptions","organizations_url":"https://api.github.com/users/MirantisWorkloadMobility/orgs","repos_url":"https://api.github.com/users/MirantisWorkloadMobility/repos","events_url":"https://api.github.com/users/MirantisWorkloadMobility/events{/privacy}","received_events_url":"https://api.github.com/users/MirantisWorkloadMobility/received_events","type":"User","site_admin":false},"repo":{"id":23142392,"name":"CloudFerry","full_name":"MirantisWorkloadMobility/CloudFerry","owner":{"login":"MirantisWorkloadMobility","id":8500817,"avatar_url":"https://avatars.githubusercontent.com/u/8500817?v=3","gravatar_id":"","url":"https://api.github.com/users/MirantisWorkloadMobility","html_url":"https://github.com/MirantisWorkloadMobility","followers_url":"https://api.github.com/users/MirantisWorkloadMobility/followers","following_url":"https://api.github.com/users/MirantisWorkloadMobility/following{/other_user}","gists_url":"https://api.github.com/users/MirantisWorkloadMobility/gists{/gist_id}","starred_url":"https://api.github.com/users/MirantisWorkloadMobility/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MirantisWorkloadMobility/subscriptions","organizations_url":"https://api.github.com/users/MirantisWorkloadMobility/orgs","repos_url":"https://api.github.com/users/MirantisWorkloadMobility/repos","events_url":"https://api.github.com/users/MirantisWorkloadMobility/events{/privacy}","received_events_url":"https://api.github.com/users/MirantisWorkloadMobility/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry","description":"CloudFerry is a cloud virtual workloads migration tool designed and developed by Mirantis Inc. ","fork":false,"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry","forks_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/forks","keys_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/teams","hooks_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/hooks","issue_events_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/events{/number}","events_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/events","assignees_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/assignees{/user}","branches_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/branches{/branch}","tags_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/tags","blobs_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/refs{/sha}","trees_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/statuses/{sha}","languages_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/languages","stargazers_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/stargazers","contributors_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/contributors","subscribers_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/subscribers","subscription_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/subscription","commits_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/commits{/sha}","git_commits_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/commits{/sha}","comments_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/comments{/number}","issue_comment_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/comments{/number}","contents_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/contents/{+path}","compare_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/merges","archive_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/downloads","issues_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues{/number}","pulls_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls{/number}","milestones_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/milestones{/number}","notifications_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/labels{/name}","releases_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/releases{/id}","created_at":"2014-08-20T09:00:38Z","updated_at":"2015-09-19T20:39:53Z","pushed_at":"2015-09-21T08:33:54Z","git_url":"git://github.com/MirantisWorkloadMobility/CloudFerry.git","ssh_url":"git@github.com:MirantisWorkloadMobility/CloudFerry.git","clone_url":"https://github.com/MirantisWorkloadMobility/CloudFerry.git","svn_url":"https://github.com/MirantisWorkloadMobility/CloudFerry","homepage":null,"size":5301,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":15,"forks":22,"open_issues":15,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/409"},"html":{"href":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/409"},"issue":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/409"},"comments":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/409/comments"},"review_comments":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/409/comments"},"review_comment":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/409/commits"},"statuses":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/statuses/1a92f799ea761dcf2444b6ca3ac1b872ff25302d"}}}}