{"action":"created","comment":{"url":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls/comments/80280398","id":80280398,"diff_hunk":"@@ -0,0 +1,64 @@\n+# Copyright 2016 Cisco Systems, Inc.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+# http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+\n+\"\"\"\n+This module implements all the communication services\n+\"\"\"\n+from imcsdk.mometa.comm.CommIpmiLan import CommIpmiLan, CommIpmiLanConsts\n+\n+\n+def enable_ipmi(handle, priv=CommIpmiLanConsts.PRIV_ADMIN, key='0'*40):\n+    \"\"\" Enable IPMI over LAN\n+\n+    :param priv: Optional privilege level: 'admin', 'user', 'read-only'","path":"imcsdk/apis/admin/communication_services.py","position":null,"original_position":24,"commit_id":"b1bdeb040be7442b1d7c9df6c3e8be9e6662103c","original_commit_id":"503c7448509f2c4780771c01db136621cd55ef19","user":{"login":"britthouser","id":2848901,"avatar_url":"https://avatars.githubusercontent.com/u/2848901?v=3","gravatar_id":"","url":"https://api.github.com/users/britthouser","html_url":"https://github.com/britthouser","followers_url":"https://api.github.com/users/britthouser/followers","following_url":"https://api.github.com/users/britthouser/following{/other_user}","gists_url":"https://api.github.com/users/britthouser/gists{/gist_id}","starred_url":"https://api.github.com/users/britthouser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/britthouser/subscriptions","organizations_url":"https://api.github.com/users/britthouser/orgs","repos_url":"https://api.github.com/users/britthouser/repos","events_url":"https://api.github.com/users/britthouser/events{/privacy}","received_events_url":"https://api.github.com/users/britthouser/received_events","type":"User","site_admin":false},"body":"done!","created_at":"2016-09-23T16:40:21Z","updated_at":"2016-09-23T16:40:21Z","html_url":"https://github.com/CiscoUcs/imcsdk/pull/40#discussion_r80280398","pull_request_url":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls/comments/80280398"},"html":{"href":"https://github.com/CiscoUcs/imcsdk/pull/40#discussion_r80280398"},"pull_request":{"href":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls/40","id":86493783,"html_url":"https://github.com/CiscoUcs/imcsdk/pull/40","diff_url":"https://github.com/CiscoUcs/imcsdk/pull/40.diff","patch_url":"https://github.com/CiscoUcs/imcsdk/pull/40.patch","issue_url":"https://api.github.com/repos/CiscoUcs/imcsdk/issues/40","number":40,"state":"open","locked":false,"title":"Implement IPMI enable and disable functions.","user":{"login":"britthouser","id":2848901,"avatar_url":"https://avatars.githubusercontent.com/u/2848901?v=3","gravatar_id":"","url":"https://api.github.com/users/britthouser","html_url":"https://github.com/britthouser","followers_url":"https://api.github.com/users/britthouser/followers","following_url":"https://api.github.com/users/britthouser/following{/other_user}","gists_url":"https://api.github.com/users/britthouser/gists{/gist_id}","starred_url":"https://api.github.com/users/britthouser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/britthouser/subscriptions","organizations_url":"https://api.github.com/users/britthouser/orgs","repos_url":"https://api.github.com/users/britthouser/repos","events_url":"https://api.github.com/users/britthouser/events{/privacy}","received_events_url":"https://api.github.com/users/britthouser/received_events","type":"User","site_admin":false},"body":"This commit adds the apis/admin/communication_services.py\r\nmodule with functions to both enable and disable IPMI.\r\n\r\nSigned-off-by: Britt Houser <bhouser@cisco.com>","created_at":"2016-09-23T11:04:57Z","updated_at":"2016-09-23T16:40:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb572976883799ad2cdf18450360cfe866b68da7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls/40/commits","review_comments_url":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls/40/comments","review_comment_url":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CiscoUcs/imcsdk/issues/40/comments","statuses_url":"https://api.github.com/repos/CiscoUcs/imcsdk/statuses/b1bdeb040be7442b1d7c9df6c3e8be9e6662103c","head":{"label":"britthouser:ipmi","ref":"ipmi","sha":"b1bdeb040be7442b1d7c9df6c3e8be9e6662103c","user":{"login":"britthouser","id":2848901,"avatar_url":"https://avatars.githubusercontent.com/u/2848901?v=3","gravatar_id":"","url":"https://api.github.com/users/britthouser","html_url":"https://github.com/britthouser","followers_url":"https://api.github.com/users/britthouser/followers","following_url":"https://api.github.com/users/britthouser/following{/other_user}","gists_url":"https://api.github.com/users/britthouser/gists{/gist_id}","starred_url":"https://api.github.com/users/britthouser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/britthouser/subscriptions","organizations_url":"https://api.github.com/users/britthouser/orgs","repos_url":"https://api.github.com/users/britthouser/repos","events_url":"https://api.github.com/users/britthouser/events{/privacy}","received_events_url":"https://api.github.com/users/britthouser/received_events","type":"User","site_admin":false},"repo":{"id":68256495,"name":"imcsdk","full_name":"britthouser/imcsdk","owner":{"login":"britthouser","id":2848901,"avatar_url":"https://avatars.githubusercontent.com/u/2848901?v=3","gravatar_id":"","url":"https://api.github.com/users/britthouser","html_url":"https://github.com/britthouser","followers_url":"https://api.github.com/users/britthouser/followers","following_url":"https://api.github.com/users/britthouser/following{/other_user}","gists_url":"https://api.github.com/users/britthouser/gists{/gist_id}","starred_url":"https://api.github.com/users/britthouser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/britthouser/subscriptions","organizations_url":"https://api.github.com/users/britthouser/orgs","repos_url":"https://api.github.com/users/britthouser/repos","events_url":"https://api.github.com/users/britthouser/events{/privacy}","received_events_url":"https://api.github.com/users/britthouser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/britthouser/imcsdk","description":"Python SDK for Cisco IMC","fork":true,"url":"https://api.github.com/repos/britthouser/imcsdk","forks_url":"https://api.github.com/repos/britthouser/imcsdk/forks","keys_url":"https://api.github.com/repos/britthouser/imcsdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/britthouser/imcsdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/britthouser/imcsdk/teams","hooks_url":"https://api.github.com/repos/britthouser/imcsdk/hooks","issue_events_url":"https://api.github.com/repos/britthouser/imcsdk/issues/events{/number}","events_url":"https://api.github.com/repos/britthouser/imcsdk/events","assignees_url":"https://api.github.com/repos/britthouser/imcsdk/assignees{/user}","branches_url":"https://api.github.com/repos/britthouser/imcsdk/branches{/branch}","tags_url":"https://api.github.com/repos/britthouser/imcsdk/tags","blobs_url":"https://api.github.com/repos/britthouser/imcsdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/britthouser/imcsdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/britthouser/imcsdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/britthouser/imcsdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/britthouser/imcsdk/statuses/{sha}","languages_url":"https://api.github.com/repos/britthouser/imcsdk/languages","stargazers_url":"https://api.github.com/repos/britthouser/imcsdk/stargazers","contributors_url":"https://api.github.com/repos/britthouser/imcsdk/contributors","subscribers_url":"https://api.github.com/repos/britthouser/imcsdk/subscribers","subscription_url":"https://api.github.com/repos/britthouser/imcsdk/subscription","commits_url":"https://api.github.com/repos/britthouser/imcsdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/britthouser/imcsdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/britthouser/imcsdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/britthouser/imcsdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/britthouser/imcsdk/contents/{+path}","compare_url":"https://api.github.com/repos/britthouser/imcsdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/britthouser/imcsdk/merges","archive_url":"https://api.github.com/repos/britthouser/imcsdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/britthouser/imcsdk/downloads","issues_url":"https://api.github.com/repos/britthouser/imcsdk/issues{/number}","pulls_url":"https://api.github.com/repos/britthouser/imcsdk/pulls{/number}","milestones_url":"https://api.github.com/repos/britthouser/imcsdk/milestones{/number}","notifications_url":"https://api.github.com/repos/britthouser/imcsdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/britthouser/imcsdk/labels{/name}","releases_url":"https://api.github.com/repos/britthouser/imcsdk/releases{/id}","deployments_url":"https://api.github.com/repos/britthouser/imcsdk/deployments","created_at":"2016-09-15T01:09:44Z","updated_at":"2016-09-15T01:09:46Z","pushed_at":"2016-09-23T16:39:56Z","git_url":"git://github.com/britthouser/imcsdk.git","ssh_url":"git@github.com:britthouser/imcsdk.git","clone_url":"https://github.com/britthouser/imcsdk.git","svn_url":"https://github.com/britthouser/imcsdk","homepage":null,"size":444,"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":"CiscoUcs:master","ref":"master","sha":"d7b0c232fad36f8b40c9c43cf170db639713f5db","user":{"login":"CiscoUcs","id":7289148,"avatar_url":"https://avatars.githubusercontent.com/u/7289148?v=3","gravatar_id":"","url":"https://api.github.com/users/CiscoUcs","html_url":"https://github.com/CiscoUcs","followers_url":"https://api.github.com/users/CiscoUcs/followers","following_url":"https://api.github.com/users/CiscoUcs/following{/other_user}","gists_url":"https://api.github.com/users/CiscoUcs/gists{/gist_id}","starred_url":"https://api.github.com/users/CiscoUcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CiscoUcs/subscriptions","organizations_url":"https://api.github.com/users/CiscoUcs/orgs","repos_url":"https://api.github.com/users/CiscoUcs/repos","events_url":"https://api.github.com/users/CiscoUcs/events{/privacy}","received_events_url":"https://api.github.com/users/CiscoUcs/received_events","type":"Organization","site_admin":false},"repo":{"id":58990697,"name":"imcsdk","full_name":"CiscoUcs/imcsdk","owner":{"login":"CiscoUcs","id":7289148,"avatar_url":"https://avatars.githubusercontent.com/u/7289148?v=3","gravatar_id":"","url":"https://api.github.com/users/CiscoUcs","html_url":"https://github.com/CiscoUcs","followers_url":"https://api.github.com/users/CiscoUcs/followers","following_url":"https://api.github.com/users/CiscoUcs/following{/other_user}","gists_url":"https://api.github.com/users/CiscoUcs/gists{/gist_id}","starred_url":"https://api.github.com/users/CiscoUcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CiscoUcs/subscriptions","organizations_url":"https://api.github.com/users/CiscoUcs/orgs","repos_url":"https://api.github.com/users/CiscoUcs/repos","events_url":"https://api.github.com/users/CiscoUcs/events{/privacy}","received_events_url":"https://api.github.com/users/CiscoUcs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CiscoUcs/imcsdk","description":"Python SDK for Cisco IMC","fork":false,"url":"https://api.github.com/repos/CiscoUcs/imcsdk","forks_url":"https://api.github.com/repos/CiscoUcs/imcsdk/forks","keys_url":"https://api.github.com/repos/CiscoUcs/imcsdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CiscoUcs/imcsdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CiscoUcs/imcsdk/teams","hooks_url":"https://api.github.com/repos/CiscoUcs/imcsdk/hooks","issue_events_url":"https://api.github.com/repos/CiscoUcs/imcsdk/issues/events{/number}","events_url":"https://api.github.com/repos/CiscoUcs/imcsdk/events","assignees_url":"https://api.github.com/repos/CiscoUcs/imcsdk/assignees{/user}","branches_url":"https://api.github.com/repos/CiscoUcs/imcsdk/branches{/branch}","tags_url":"https://api.github.com/repos/CiscoUcs/imcsdk/tags","blobs_url":"https://api.github.com/repos/CiscoUcs/imcsdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CiscoUcs/imcsdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CiscoUcs/imcsdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/CiscoUcs/imcsdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CiscoUcs/imcsdk/statuses/{sha}","languages_url":"https://api.github.com/repos/CiscoUcs/imcsdk/languages","stargazers_url":"https://api.github.com/repos/CiscoUcs/imcsdk/stargazers","contributors_url":"https://api.github.com/repos/CiscoUcs/imcsdk/contributors","subscribers_url":"https://api.github.com/repos/CiscoUcs/imcsdk/subscribers","subscription_url":"https://api.github.com/repos/CiscoUcs/imcsdk/subscription","commits_url":"https://api.github.com/repos/CiscoUcs/imcsdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/CiscoUcs/imcsdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/CiscoUcs/imcsdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/CiscoUcs/imcsdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/CiscoUcs/imcsdk/contents/{+path}","compare_url":"https://api.github.com/repos/CiscoUcs/imcsdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CiscoUcs/imcsdk/merges","archive_url":"https://api.github.com/repos/CiscoUcs/imcsdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CiscoUcs/imcsdk/downloads","issues_url":"https://api.github.com/repos/CiscoUcs/imcsdk/issues{/number}","pulls_url":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls{/number}","milestones_url":"https://api.github.com/repos/CiscoUcs/imcsdk/milestones{/number}","notifications_url":"https://api.github.com/repos/CiscoUcs/imcsdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CiscoUcs/imcsdk/labels{/name}","releases_url":"https://api.github.com/repos/CiscoUcs/imcsdk/releases{/id}","deployments_url":"https://api.github.com/repos/CiscoUcs/imcsdk/deployments","created_at":"2016-05-17T04:35:26Z","updated_at":"2016-09-16T22:15:54Z","pushed_at":"2016-09-23T16:39:56Z","git_url":"git://github.com/CiscoUcs/imcsdk.git","ssh_url":"git@github.com:CiscoUcs/imcsdk.git","clone_url":"https://github.com/CiscoUcs/imcsdk.git","svn_url":"https://github.com/CiscoUcs/imcsdk","homepage":null,"size":482,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":9,"forks":6,"open_issues":9,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls/40"},"html":{"href":"https://github.com/CiscoUcs/imcsdk/pull/40"},"issue":{"href":"https://api.github.com/repos/CiscoUcs/imcsdk/issues/40"},"comments":{"href":"https://api.github.com/repos/CiscoUcs/imcsdk/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CiscoUcs/imcsdk/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/CiscoUcs/imcsdk/statuses/b1bdeb040be7442b1d7c9df6c3e8be9e6662103c"}}}}
{"actor":{"display_login":"britthouser"}}