{"action":"created","comment":{"url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls/comments/43230289","id":43230289,"diff_hunk":"@@ -47,3 +47,56 @@ class HPIronicSwitchPortMapping(model_base.BASEV2):\n     access_type = sa.Column(sa.String(36))\n     segmentation_id = sa.Column(sa.Integer)\n     host_id = sa.Column(sa.String(36))\n+\n+\n+class BNPPhysicalSwitchPort(model_base.BASEV2, models_v2.HasId):\n+    \"\"\"Define physical switch port properties.\"\"\"\n+    __tablename__ = \"bnp_physical_switch_ports\"\n+    switch_id = sa.Column(sa.String(255), nullable=False)\n+    interface_name = sa.Column(sa.String(255), nullable=False)\n+    ifindex = sa.Column(sa.String(255), nullable=False)\n+    port_status = sa.Column(sa.String(16), nullable=False)\n+    sa.PrimaryKeyConstraint('id')\n+    sa.UniqueConstraint('switch_id', 'interface_name')\n+\n+\n+class BNPPhysicalSwitch(model_base.BASEV2, models_v2.HasId):\n+    \"\"\"Define physical switch properties.\"\"\"\n+    __tablename__ = \"bnp_physical_switches\"\n+    ip_address = sa.Column(sa.String(64), nullable=False)","path":"baremetal_network_provisioning/db/bm_nw_provision_models.py","position":20,"original_position":20,"commit_id":"05a75df6c629fae17815f883e89dc89e95d846e8","original_commit_id":"05a75df6c629fae17815f883e89dc89e95d846e8","user":{"login":"selvakumarnms","id":5934573,"avatar_url":"https://avatars.githubusercontent.com/u/5934573?v=3","gravatar_id":"","url":"https://api.github.com/users/selvakumarnms","html_url":"https://github.com/selvakumarnms","followers_url":"https://api.github.com/users/selvakumarnms/followers","following_url":"https://api.github.com/users/selvakumarnms/following{/other_user}","gists_url":"https://api.github.com/users/selvakumarnms/gists{/gist_id}","starred_url":"https://api.github.com/users/selvakumarnms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selvakumarnms/subscriptions","organizations_url":"https://api.github.com/users/selvakumarnms/orgs","repos_url":"https://api.github.com/users/selvakumarnms/repos","events_url":"https://api.github.com/users/selvakumarnms/events{/privacy}","received_events_url":"https://api.github.com/users/selvakumarnms/received_events","type":"User","site_admin":false},"body":"In case of V1/V2c write community needs to be stored.. I think it got missed here","created_at":"2015-10-28T09:01:07Z","updated_at":"2015-10-28T09:01:07Z","html_url":"https://github.com/hp-networking/baremetal-network-provisioning/pull/23#discussion_r43230289","pull_request_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls/comments/43230289"},"html":{"href":"https://github.com/hp-networking/baremetal-network-provisioning/pull/23#discussion_r43230289"},"pull_request":{"href":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls/23","id":48972588,"html_url":"https://github.com/hp-networking/baremetal-network-provisioning/pull/23","diff_url":"https://github.com/hp-networking/baremetal-network-provisioning/pull/23.diff","patch_url":"https://github.com/hp-networking/baremetal-network-provisioning/pull/23.patch","issue_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/issues/23","number":23,"state":"open","locked":false,"title":"Added db helper methods","user":{"login":"koteswar16","id":6948434,"avatar_url":"https://avatars.githubusercontent.com/u/6948434?v=3","gravatar_id":"","url":"https://api.github.com/users/koteswar16","html_url":"https://github.com/koteswar16","followers_url":"https://api.github.com/users/koteswar16/followers","following_url":"https://api.github.com/users/koteswar16/following{/other_user}","gists_url":"https://api.github.com/users/koteswar16/gists{/gist_id}","starred_url":"https://api.github.com/users/koteswar16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koteswar16/subscriptions","organizations_url":"https://api.github.com/users/koteswar16/orgs","repos_url":"https://api.github.com/users/koteswar16/repos","events_url":"https://api.github.com/users/koteswar16/events{/privacy}","received_events_url":"https://api.github.com/users/koteswar16/received_events","type":"User","site_admin":false},"body":"Added db helper methods","created_at":"2015-10-28T07:31:31Z","updated_at":"2015-10-28T09:01:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f74d0bee8bbb0ed5214b70fcfce256ef52c5a9c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls/23/commits","review_comments_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls/23/comments","review_comment_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/issues/23/comments","statuses_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/statuses/05a75df6c629fae17815f883e89dc89e95d846e8","head":{"label":"koteswar16:master","ref":"master","sha":"05a75df6c629fae17815f883e89dc89e95d846e8","user":{"login":"koteswar16","id":6948434,"avatar_url":"https://avatars.githubusercontent.com/u/6948434?v=3","gravatar_id":"","url":"https://api.github.com/users/koteswar16","html_url":"https://github.com/koteswar16","followers_url":"https://api.github.com/users/koteswar16/followers","following_url":"https://api.github.com/users/koteswar16/following{/other_user}","gists_url":"https://api.github.com/users/koteswar16/gists{/gist_id}","starred_url":"https://api.github.com/users/koteswar16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koteswar16/subscriptions","organizations_url":"https://api.github.com/users/koteswar16/orgs","repos_url":"https://api.github.com/users/koteswar16/repos","events_url":"https://api.github.com/users/koteswar16/events{/privacy}","received_events_url":"https://api.github.com/users/koteswar16/received_events","type":"User","site_admin":false},"repo":{"id":39182947,"name":"baremetal-network-provisioning","full_name":"koteswar16/baremetal-network-provisioning","owner":{"login":"koteswar16","id":6948434,"avatar_url":"https://avatars.githubusercontent.com/u/6948434?v=3","gravatar_id":"","url":"https://api.github.com/users/koteswar16","html_url":"https://github.com/koteswar16","followers_url":"https://api.github.com/users/koteswar16/followers","following_url":"https://api.github.com/users/koteswar16/following{/other_user}","gists_url":"https://api.github.com/users/koteswar16/gists{/gist_id}","starred_url":"https://api.github.com/users/koteswar16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koteswar16/subscriptions","organizations_url":"https://api.github.com/users/koteswar16/orgs","repos_url":"https://api.github.com/users/koteswar16/repos","events_url":"https://api.github.com/users/koteswar16/events{/privacy}","received_events_url":"https://api.github.com/users/koteswar16/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/koteswar16/baremetal-network-provisioning","description":"This repository contains Openstack Neutron based ML2 drivers that will enable provisioning networks for Openstack Ironic managed baremetal servers.","fork":true,"url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning","forks_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/forks","keys_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/teams","hooks_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/hooks","issue_events_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/issues/events{/number}","events_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/events","assignees_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/assignees{/user}","branches_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/branches{/branch}","tags_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/tags","blobs_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/git/refs{/sha}","trees_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/statuses/{sha}","languages_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/languages","stargazers_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/stargazers","contributors_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/contributors","subscribers_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/subscribers","subscription_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/subscription","commits_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/commits{/sha}","git_commits_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/git/commits{/sha}","comments_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/comments{/number}","issue_comment_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/issues/comments{/number}","contents_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/contents/{+path}","compare_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/merges","archive_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/downloads","issues_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/issues{/number}","pulls_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/pulls{/number}","milestones_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/milestones{/number}","notifications_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/labels{/name}","releases_url":"https://api.github.com/repos/koteswar16/baremetal-network-provisioning/releases{/id}","created_at":"2015-07-16T07:25:33Z","updated_at":"2015-07-16T07:25:34Z","pushed_at":"2015-10-28T07:22:59Z","git_url":"git://github.com/koteswar16/baremetal-network-provisioning.git","ssh_url":"git@github.com:koteswar16/baremetal-network-provisioning.git","clone_url":"https://github.com/koteswar16/baremetal-network-provisioning.git","svn_url":"https://github.com/koteswar16/baremetal-network-provisioning","homepage":null,"size":170,"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":"hp-networking:master","ref":"master","sha":"56d7378f43b35c5d579c80eb1c9f996f6fcb4b7e","user":{"login":"hp-networking","id":10058468,"avatar_url":"https://avatars.githubusercontent.com/u/10058468?v=3","gravatar_id":"","url":"https://api.github.com/users/hp-networking","html_url":"https://github.com/hp-networking","followers_url":"https://api.github.com/users/hp-networking/followers","following_url":"https://api.github.com/users/hp-networking/following{/other_user}","gists_url":"https://api.github.com/users/hp-networking/gists{/gist_id}","starred_url":"https://api.github.com/users/hp-networking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hp-networking/subscriptions","organizations_url":"https://api.github.com/users/hp-networking/orgs","repos_url":"https://api.github.com/users/hp-networking/repos","events_url":"https://api.github.com/users/hp-networking/events{/privacy}","received_events_url":"https://api.github.com/users/hp-networking/received_events","type":"User","site_admin":false},"repo":{"id":38354313,"name":"baremetal-network-provisioning","full_name":"hp-networking/baremetal-network-provisioning","owner":{"login":"hp-networking","id":10058468,"avatar_url":"https://avatars.githubusercontent.com/u/10058468?v=3","gravatar_id":"","url":"https://api.github.com/users/hp-networking","html_url":"https://github.com/hp-networking","followers_url":"https://api.github.com/users/hp-networking/followers","following_url":"https://api.github.com/users/hp-networking/following{/other_user}","gists_url":"https://api.github.com/users/hp-networking/gists{/gist_id}","starred_url":"https://api.github.com/users/hp-networking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hp-networking/subscriptions","organizations_url":"https://api.github.com/users/hp-networking/orgs","repos_url":"https://api.github.com/users/hp-networking/repos","events_url":"https://api.github.com/users/hp-networking/events{/privacy}","received_events_url":"https://api.github.com/users/hp-networking/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hp-networking/baremetal-network-provisioning","description":"This repository contains Openstack Neutron based ML2 drivers that will enable provisioning networks for Openstack Ironic managed baremetal servers.","fork":false,"url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning","forks_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/forks","keys_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/teams","hooks_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/hooks","issue_events_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/issues/events{/number}","events_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/events","assignees_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/assignees{/user}","branches_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/branches{/branch}","tags_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/tags","blobs_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/git/refs{/sha}","trees_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/statuses/{sha}","languages_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/languages","stargazers_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/stargazers","contributors_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/contributors","subscribers_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/subscribers","subscription_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/subscription","commits_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/commits{/sha}","git_commits_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/git/commits{/sha}","comments_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/comments{/number}","issue_comment_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/issues/comments{/number}","contents_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/contents/{+path}","compare_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/merges","archive_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/downloads","issues_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/issues{/number}","pulls_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls{/number}","milestones_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/milestones{/number}","notifications_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/labels{/name}","releases_url":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/releases{/id}","created_at":"2015-07-01T06:39:03Z","updated_at":"2015-07-15T06:52:47Z","pushed_at":"2015-10-28T07:31:31Z","git_url":"git://github.com/hp-networking/baremetal-network-provisioning.git","ssh_url":"git@github.com:hp-networking/baremetal-network-provisioning.git","clone_url":"https://github.com/hp-networking/baremetal-network-provisioning.git","svn_url":"https://github.com/hp-networking/baremetal-network-provisioning","homepage":null,"size":395,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls/23"},"html":{"href":"https://github.com/hp-networking/baremetal-network-provisioning/pull/23"},"issue":{"href":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/issues/23"},"comments":{"href":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/hp-networking/baremetal-network-provisioning/statuses/05a75df6c629fae17815f883e89dc89e95d846e8"}}}}