{"action":"created","comment":{"url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls/comments/56734280","id":56734280,"diff_hunk":"@@ -21,11 +24,33 @@ def __init__(self, driver):\n         self.driver = driver\n         self.appliance_hash = acos_client.Hash(self.driver.config.devices.keys())\n \n-    def select_device(self, tenant_id):\n+    def select_device_hash(self, tenant_id):\n         # Must return device dict from config.py\n         s = self.appliance_hash.get_server(tenant_id)\n         return self.driver.config.devices[s]\n \n+    def select_device_db(self, tenant_id):\n+        db = db_api.get_session()","path":"a10_neutron_lbaas/plumbing_hooks.py","position":21,"original_position":21,"commit_id":"1d86714259bf06eb3e695c9212cc51b05ae0518c","original_commit_id":"1d86714259bf06eb3e695c9212cc51b05ae0518c","user":{"login":"dougwig","id":603553,"avatar_url":"https://avatars.githubusercontent.com/u/603553?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwig","html_url":"https://github.com/dougwig","followers_url":"https://api.github.com/users/dougwig/followers","following_url":"https://api.github.com/users/dougwig/following{/other_user}","gists_url":"https://api.github.com/users/dougwig/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwig/subscriptions","organizations_url":"https://api.github.com/users/dougwig/orgs","repos_url":"https://api.github.com/users/dougwig/repos","events_url":"https://api.github.com/users/dougwig/events{/privacy}","received_events_url":"https://api.github.com/users/dougwig/received_events","type":"User","site_admin":false},"body":"don't want to pull in neutron/oslo here.","created_at":"2016-03-18T23:03:31Z","updated_at":"2016-03-18T23:03:31Z","html_url":"https://github.com/a10networks/a10-neutron-lbaas/pull/245#discussion_r56734280","pull_request_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls/245","_links":{"self":{"href":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls/comments/56734280"},"html":{"href":"https://github.com/a10networks/a10-neutron-lbaas/pull/245#discussion_r56734280"},"pull_request":{"href":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls/245"}}},"pull_request":{"url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls/245","id":63423529,"html_url":"https://github.com/a10networks/a10-neutron-lbaas/pull/245","diff_url":"https://github.com/a10networks/a10-neutron-lbaas/pull/245.diff","patch_url":"https://github.com/a10networks/a10-neutron-lbaas/pull/245.patch","issue_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/issues/245","number":245,"state":"open","locked":false,"title":"do not merge yet: Smaller db stuff","user":{"login":"dougwig","id":603553,"avatar_url":"https://avatars.githubusercontent.com/u/603553?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwig","html_url":"https://github.com/dougwig","followers_url":"https://api.github.com/users/dougwig/followers","following_url":"https://api.github.com/users/dougwig/following{/other_user}","gists_url":"https://api.github.com/users/dougwig/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwig/subscriptions","organizations_url":"https://api.github.com/users/dougwig/orgs","repos_url":"https://api.github.com/users/dougwig/repos","events_url":"https://api.github.com/users/dougwig/events{/privacy}","received_events_url":"https://api.github.com/users/dougwig/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-18T19:18:05Z","updated_at":"2016-03-18T23:03:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4393dd3a92525ec0af639b4c8f8e12c37c87bf2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls/245/commits","review_comments_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls/245/comments","review_comment_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/issues/245/comments","statuses_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/statuses/1d86714259bf06eb3e695c9212cc51b05ae0518c","head":{"label":"dougwig:smaller-db-stuff","ref":"smaller-db-stuff","sha":"1d86714259bf06eb3e695c9212cc51b05ae0518c","user":{"login":"dougwig","id":603553,"avatar_url":"https://avatars.githubusercontent.com/u/603553?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwig","html_url":"https://github.com/dougwig","followers_url":"https://api.github.com/users/dougwig/followers","following_url":"https://api.github.com/users/dougwig/following{/other_user}","gists_url":"https://api.github.com/users/dougwig/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwig/subscriptions","organizations_url":"https://api.github.com/users/dougwig/orgs","repos_url":"https://api.github.com/users/dougwig/repos","events_url":"https://api.github.com/users/dougwig/events{/privacy}","received_events_url":"https://api.github.com/users/dougwig/received_events","type":"User","site_admin":false},"repo":{"id":30775352,"name":"a10-neutron-lbaas","full_name":"dougwig/a10-neutron-lbaas","owner":{"login":"dougwig","id":603553,"avatar_url":"https://avatars.githubusercontent.com/u/603553?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwig","html_url":"https://github.com/dougwig","followers_url":"https://api.github.com/users/dougwig/followers","following_url":"https://api.github.com/users/dougwig/following{/other_user}","gists_url":"https://api.github.com/users/dougwig/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwig/subscriptions","organizations_url":"https://api.github.com/users/dougwig/orgs","repos_url":"https://api.github.com/users/dougwig/repos","events_url":"https://api.github.com/users/dougwig/events{/privacy}","received_events_url":"https://api.github.com/users/dougwig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dougwig/a10-neutron-lbaas","description":"A10 Networks, Openstack Neutron LBaaS Driver for Juno","fork":true,"url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas","forks_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/forks","keys_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/teams","hooks_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/hooks","issue_events_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/issues/events{/number}","events_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/events","assignees_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/assignees{/user}","branches_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/branches{/branch}","tags_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/tags","blobs_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/git/refs{/sha}","trees_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/statuses/{sha}","languages_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/languages","stargazers_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/stargazers","contributors_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/contributors","subscribers_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/subscribers","subscription_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/subscription","commits_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/commits{/sha}","git_commits_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/git/commits{/sha}","comments_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/comments{/number}","issue_comment_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/issues/comments{/number}","contents_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/contents/{+path}","compare_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/merges","archive_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/downloads","issues_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/issues{/number}","pulls_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/pulls{/number}","milestones_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/milestones{/number}","notifications_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/labels{/name}","releases_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/releases{/id}","deployments_url":"https://api.github.com/repos/dougwig/a10-neutron-lbaas/deployments","created_at":"2015-02-13T20:47:49Z","updated_at":"2016-02-22T20:53:04Z","pushed_at":"2016-03-18T21:24:19Z","git_url":"git://github.com/dougwig/a10-neutron-lbaas.git","ssh_url":"git@github.com:dougwig/a10-neutron-lbaas.git","clone_url":"https://github.com/dougwig/a10-neutron-lbaas.git","svn_url":"https://github.com/dougwig/a10-neutron-lbaas","homepage":null,"size":414,"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":"a10networks:master","ref":"master","sha":"53c9e8a28d8990f949aa29d383e45f1706150c28","user":{"login":"a10networks","id":5942705,"avatar_url":"https://avatars.githubusercontent.com/u/5942705?v=3","gravatar_id":"","url":"https://api.github.com/users/a10networks","html_url":"https://github.com/a10networks","followers_url":"https://api.github.com/users/a10networks/followers","following_url":"https://api.github.com/users/a10networks/following{/other_user}","gists_url":"https://api.github.com/users/a10networks/gists{/gist_id}","starred_url":"https://api.github.com/users/a10networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a10networks/subscriptions","organizations_url":"https://api.github.com/users/a10networks/orgs","repos_url":"https://api.github.com/users/a10networks/repos","events_url":"https://api.github.com/users/a10networks/events{/privacy}","received_events_url":"https://api.github.com/users/a10networks/received_events","type":"Organization","site_admin":false},"repo":{"id":21839884,"name":"a10-neutron-lbaas","full_name":"a10networks/a10-neutron-lbaas","owner":{"login":"a10networks","id":5942705,"avatar_url":"https://avatars.githubusercontent.com/u/5942705?v=3","gravatar_id":"","url":"https://api.github.com/users/a10networks","html_url":"https://github.com/a10networks","followers_url":"https://api.github.com/users/a10networks/followers","following_url":"https://api.github.com/users/a10networks/following{/other_user}","gists_url":"https://api.github.com/users/a10networks/gists{/gist_id}","starred_url":"https://api.github.com/users/a10networks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a10networks/subscriptions","organizations_url":"https://api.github.com/users/a10networks/orgs","repos_url":"https://api.github.com/users/a10networks/repos","events_url":"https://api.github.com/users/a10networks/events{/privacy}","received_events_url":"https://api.github.com/users/a10networks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/a10networks/a10-neutron-lbaas","description":"A10 Networks, Openstack Neutron LBaaS Driver","fork":false,"url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas","forks_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/forks","keys_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/teams","hooks_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/hooks","issue_events_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/issues/events{/number}","events_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/events","assignees_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/assignees{/user}","branches_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/branches{/branch}","tags_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/tags","blobs_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/git/refs{/sha}","trees_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/statuses/{sha}","languages_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/languages","stargazers_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/stargazers","contributors_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/contributors","subscribers_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/subscribers","subscription_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/subscription","commits_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/commits{/sha}","git_commits_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/git/commits{/sha}","comments_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/comments{/number}","issue_comment_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/issues/comments{/number}","contents_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/contents/{+path}","compare_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/merges","archive_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/downloads","issues_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/issues{/number}","pulls_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls{/number}","milestones_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/milestones{/number}","notifications_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/labels{/name}","releases_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/releases{/id}","deployments_url":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/deployments","created_at":"2014-07-14T23:50:26Z","updated_at":"2016-03-18T02:14:24Z","pushed_at":"2016-03-18T21:24:20Z","git_url":"git://github.com/a10networks/a10-neutron-lbaas.git","ssh_url":"git@github.com:a10networks/a10-neutron-lbaas.git","clone_url":"https://github.com/a10networks/a10-neutron-lbaas.git","svn_url":"https://github.com/a10networks/a10-neutron-lbaas","homepage":"","size":692,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":61,"forks":10,"open_issues":61,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls/245"},"html":{"href":"https://github.com/a10networks/a10-neutron-lbaas/pull/245"},"issue":{"href":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/issues/245"},"comments":{"href":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/issues/245/comments"},"review_comments":{"href":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls/245/comments"},"review_comment":{"href":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/pulls/245/commits"},"statuses":{"href":"https://api.github.com/repos/a10networks/a10-neutron-lbaas/statuses/1d86714259bf06eb3e695c9212cc51b05ae0518c"}}}}