{"action":"created","comment":{"url":"https://api.github.com/repos/trema/trema/pulls/comments/65788018","id":65788018,"diff_hunk":"@@ -0,0 +1,70 @@\n+Certificate:","path":"features/trema_run/certs/cacert.pem","position":1,"original_position":1,"commit_id":"579ebcbbb3e120b7c4f11f2721f11311eed915c7","original_commit_id":"579ebcbbb3e120b7c4f11f2721f11311eed915c7","user":{"login":"yasuhito","id":8810,"avatar_url":"https://avatars.githubusercontent.com/u/8810?v=3","gravatar_id":"","url":"https://api.github.com/users/yasuhito","html_url":"https://github.com/yasuhito","followers_url":"https://api.github.com/users/yasuhito/followers","following_url":"https://api.github.com/users/yasuhito/following{/other_user}","gists_url":"https://api.github.com/users/yasuhito/gists{/gist_id}","starred_url":"https://api.github.com/users/yasuhito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasuhito/subscriptions","organizations_url":"https://api.github.com/users/yasuhito/orgs","repos_url":"https://api.github.com/users/yasuhito/repos","events_url":"https://api.github.com/users/yasuhito/events{/privacy}","received_events_url":"https://api.github.com/users/yasuhito/received_events","type":"User","site_admin":false},"body":"これはテスト用のデータだと思いますが、features/trema_run/ ではなくて一般的な cucumber のフィクスチャ用ディレクトリに置いてもらえるとよいと思います。\r\n\r\nざっと調べたところ https://github.com/cucumber/cucumber/wiki/Fixtures によると spec/fixtures が一般的なようですが、なにかメジャーなプロジェクトと同じにしてもらえれば OK です。","created_at":"2016-06-03T23:05:39Z","updated_at":"2016-06-03T23:05:39Z","html_url":"https://github.com/trema/trema/pull/425#discussion_r65788018","pull_request_url":"https://api.github.com/repos/trema/trema/pulls/425","_links":{"self":{"href":"https://api.github.com/repos/trema/trema/pulls/comments/65788018"},"html":{"href":"https://github.com/trema/trema/pull/425#discussion_r65788018"},"pull_request":{"href":"https://api.github.com/repos/trema/trema/pulls/425"}}},"pull_request":{"url":"https://api.github.com/repos/trema/trema/pulls/425","id":65905075,"html_url":"https://github.com/trema/trema/pull/425","diff_url":"https://github.com/trema/trema/pull/425.diff","patch_url":"https://github.com/trema/trema/pull/425.patch","issue_url":"https://api.github.com/repos/trema/trema/issues/425","number":425,"state":"open","locked":false,"title":"Add SSL support for socket between controller and switch","user":{"login":"masap","id":1505016,"avatar_url":"https://avatars.githubusercontent.com/u/1505016?v=3","gravatar_id":"","url":"https://api.github.com/users/masap","html_url":"https://github.com/masap","followers_url":"https://api.github.com/users/masap/followers","following_url":"https://api.github.com/users/masap/following{/other_user}","gists_url":"https://api.github.com/users/masap/gists{/gist_id}","starred_url":"https://api.github.com/users/masap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masap/subscriptions","organizations_url":"https://api.github.com/users/masap/orgs","repos_url":"https://api.github.com/users/masap/repos","events_url":"https://api.github.com/users/masap/events{/privacy}","received_events_url":"https://api.github.com/users/masap/received_events","type":"User","site_admin":false},"body":"# How to use\r\n## create certificates with Open vSwitch\r\nType this command to create Controller CA cert and Switch CA cert.\r\n`$ sudo ovs-pki init`\r\nThe certs is placed at these path.\r\n`Controller CA cert: /var/lib/openvswitch/pki/controllerca/cacert.pem`\r\n`Switch CA cert: /var/lib/openvswitch/pki/switchca/cacert.pem`\r\n\r\nType this command to create Controller certs.\r\n`$ sudo ovs-pki req+sign ctl controller`\r\nThe certs is placed at these path.\r\n`./ctl-cert.pem`\r\n`./ctl-privkey.pem`\r\n\r\nType this command to create Switch certs.\r\n`$ sudo ovs-pki req+sign sc switch`\r\nThe certs is placed at these path.\r\n`./sc-cert.pem`\r\n`./sc-privkey.pem`\r\n\r\n## Configure Open vSwitch\r\nConfigure Open vSwitch by this command.\r\n\r\n`$ sudo ovs-vsctl set-ssl <path to sc-privkey.pem> <path to sc-cert.pem> <path to cacert.pem>`\r\n`$ sudo ovs-vsctl set-controller br0 ssl:hostname:portno`\r\n\r\n## Configure trema\r\nCopy the ctl-cert.pem, ctl-privkey.pem and Switch CA cert to PC running trema.\r\n\r\nRun trema by this command.\r\n`$ bundle exec ruby ./bin/trema -v run --ctl_privkey=<path to ctl-privkey.pem> --ctl_cert=<path to ctl-cert.pem> --ca_certs=<path to cacert.pem>`\r\n\r\nThe new trema arguments are base on Ryu SSL arguments.\r\n\r\n## Test\r\nThese commands are tested on this environment.\r\ntrema\r\nUbuntu: 15.04 x64\r\nswitch\r\nUbuntu: 14.04 x64\r\nOpen vSwitch: 2.0.2\r\n\r\nSigned-off-by: Masashi Honma masashi.honma@gmail.com\r\n","created_at":"2016-04-10T08:57:14Z","updated_at":"2016-06-03T23:05:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a9c14d7fc3ee762bc93629e6a6ca465e4d263c6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/trema/trema/pulls/425/commits","review_comments_url":"https://api.github.com/repos/trema/trema/pulls/425/comments","review_comment_url":"https://api.github.com/repos/trema/trema/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trema/trema/issues/425/comments","statuses_url":"https://api.github.com/repos/trema/trema/statuses/579ebcbbb3e120b7c4f11f2721f11311eed915c7","head":{"label":"masap:feature/ssl","ref":"feature/ssl","sha":"579ebcbbb3e120b7c4f11f2721f11311eed915c7","user":{"login":"masap","id":1505016,"avatar_url":"https://avatars.githubusercontent.com/u/1505016?v=3","gravatar_id":"","url":"https://api.github.com/users/masap","html_url":"https://github.com/masap","followers_url":"https://api.github.com/users/masap/followers","following_url":"https://api.github.com/users/masap/following{/other_user}","gists_url":"https://api.github.com/users/masap/gists{/gist_id}","starred_url":"https://api.github.com/users/masap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masap/subscriptions","organizations_url":"https://api.github.com/users/masap/orgs","repos_url":"https://api.github.com/users/masap/repos","events_url":"https://api.github.com/users/masap/events{/privacy}","received_events_url":"https://api.github.com/users/masap/received_events","type":"User","site_admin":false},"repo":{"id":40873466,"name":"trema","full_name":"masap/trema","owner":{"login":"masap","id":1505016,"avatar_url":"https://avatars.githubusercontent.com/u/1505016?v=3","gravatar_id":"","url":"https://api.github.com/users/masap","html_url":"https://github.com/masap","followers_url":"https://api.github.com/users/masap/followers","following_url":"https://api.github.com/users/masap/following{/other_user}","gists_url":"https://api.github.com/users/masap/gists{/gist_id}","starred_url":"https://api.github.com/users/masap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masap/subscriptions","organizations_url":"https://api.github.com/users/masap/orgs","repos_url":"https://api.github.com/users/masap/repos","events_url":"https://api.github.com/users/masap/events{/privacy}","received_events_url":"https://api.github.com/users/masap/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/masap/trema","description":"Full-Stack OpenFlow Framework in Ruby","fork":true,"url":"https://api.github.com/repos/masap/trema","forks_url":"https://api.github.com/repos/masap/trema/forks","keys_url":"https://api.github.com/repos/masap/trema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/masap/trema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/masap/trema/teams","hooks_url":"https://api.github.com/repos/masap/trema/hooks","issue_events_url":"https://api.github.com/repos/masap/trema/issues/events{/number}","events_url":"https://api.github.com/repos/masap/trema/events","assignees_url":"https://api.github.com/repos/masap/trema/assignees{/user}","branches_url":"https://api.github.com/repos/masap/trema/branches{/branch}","tags_url":"https://api.github.com/repos/masap/trema/tags","blobs_url":"https://api.github.com/repos/masap/trema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/masap/trema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/masap/trema/git/refs{/sha}","trees_url":"https://api.github.com/repos/masap/trema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/masap/trema/statuses/{sha}","languages_url":"https://api.github.com/repos/masap/trema/languages","stargazers_url":"https://api.github.com/repos/masap/trema/stargazers","contributors_url":"https://api.github.com/repos/masap/trema/contributors","subscribers_url":"https://api.github.com/repos/masap/trema/subscribers","subscription_url":"https://api.github.com/repos/masap/trema/subscription","commits_url":"https://api.github.com/repos/masap/trema/commits{/sha}","git_commits_url":"https://api.github.com/repos/masap/trema/git/commits{/sha}","comments_url":"https://api.github.com/repos/masap/trema/comments{/number}","issue_comment_url":"https://api.github.com/repos/masap/trema/issues/comments{/number}","contents_url":"https://api.github.com/repos/masap/trema/contents/{+path}","compare_url":"https://api.github.com/repos/masap/trema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/masap/trema/merges","archive_url":"https://api.github.com/repos/masap/trema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/masap/trema/downloads","issues_url":"https://api.github.com/repos/masap/trema/issues{/number}","pulls_url":"https://api.github.com/repos/masap/trema/pulls{/number}","milestones_url":"https://api.github.com/repos/masap/trema/milestones{/number}","notifications_url":"https://api.github.com/repos/masap/trema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/masap/trema/labels{/name}","releases_url":"https://api.github.com/repos/masap/trema/releases{/id}","deployments_url":"https://api.github.com/repos/masap/trema/deployments","created_at":"2015-08-17T07:24:56Z","updated_at":"2015-08-17T07:24:56Z","pushed_at":"2016-04-10T08:42:09Z","git_url":"git://github.com/masap/trema.git","ssh_url":"git@github.com:masap/trema.git","clone_url":"https://github.com/masap/trema.git","svn_url":"https://github.com/masap/trema","homepage":"http://trema.github.com/trema/","size":19179,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"develop"}},"base":{"label":"trema:master","ref":"master","sha":"48210febf797e1e75ba42a04a690735e912674a9","user":{"login":"trema","id":696690,"avatar_url":"https://avatars.githubusercontent.com/u/696690?v=3","gravatar_id":"","url":"https://api.github.com/users/trema","html_url":"https://github.com/trema","followers_url":"https://api.github.com/users/trema/followers","following_url":"https://api.github.com/users/trema/following{/other_user}","gists_url":"https://api.github.com/users/trema/gists{/gist_id}","starred_url":"https://api.github.com/users/trema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trema/subscriptions","organizations_url":"https://api.github.com/users/trema/orgs","repos_url":"https://api.github.com/users/trema/repos","events_url":"https://api.github.com/users/trema/events{/privacy}","received_events_url":"https://api.github.com/users/trema/received_events","type":"Organization","site_admin":false},"repo":{"id":1617268,"name":"trema","full_name":"trema/trema","owner":{"login":"trema","id":696690,"avatar_url":"https://avatars.githubusercontent.com/u/696690?v=3","gravatar_id":"","url":"https://api.github.com/users/trema","html_url":"https://github.com/trema","followers_url":"https://api.github.com/users/trema/followers","following_url":"https://api.github.com/users/trema/following{/other_user}","gists_url":"https://api.github.com/users/trema/gists{/gist_id}","starred_url":"https://api.github.com/users/trema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trema/subscriptions","organizations_url":"https://api.github.com/users/trema/orgs","repos_url":"https://api.github.com/users/trema/repos","events_url":"https://api.github.com/users/trema/events{/privacy}","received_events_url":"https://api.github.com/users/trema/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/trema/trema","description":"Full-Stack OpenFlow Framework in Ruby","fork":false,"url":"https://api.github.com/repos/trema/trema","forks_url":"https://api.github.com/repos/trema/trema/forks","keys_url":"https://api.github.com/repos/trema/trema/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trema/trema/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trema/trema/teams","hooks_url":"https://api.github.com/repos/trema/trema/hooks","issue_events_url":"https://api.github.com/repos/trema/trema/issues/events{/number}","events_url":"https://api.github.com/repos/trema/trema/events","assignees_url":"https://api.github.com/repos/trema/trema/assignees{/user}","branches_url":"https://api.github.com/repos/trema/trema/branches{/branch}","tags_url":"https://api.github.com/repos/trema/trema/tags","blobs_url":"https://api.github.com/repos/trema/trema/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trema/trema/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trema/trema/git/refs{/sha}","trees_url":"https://api.github.com/repos/trema/trema/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trema/trema/statuses/{sha}","languages_url":"https://api.github.com/repos/trema/trema/languages","stargazers_url":"https://api.github.com/repos/trema/trema/stargazers","contributors_url":"https://api.github.com/repos/trema/trema/contributors","subscribers_url":"https://api.github.com/repos/trema/trema/subscribers","subscription_url":"https://api.github.com/repos/trema/trema/subscription","commits_url":"https://api.github.com/repos/trema/trema/commits{/sha}","git_commits_url":"https://api.github.com/repos/trema/trema/git/commits{/sha}","comments_url":"https://api.github.com/repos/trema/trema/comments{/number}","issue_comment_url":"https://api.github.com/repos/trema/trema/issues/comments{/number}","contents_url":"https://api.github.com/repos/trema/trema/contents/{+path}","compare_url":"https://api.github.com/repos/trema/trema/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trema/trema/merges","archive_url":"https://api.github.com/repos/trema/trema/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trema/trema/downloads","issues_url":"https://api.github.com/repos/trema/trema/issues{/number}","pulls_url":"https://api.github.com/repos/trema/trema/pulls{/number}","milestones_url":"https://api.github.com/repos/trema/trema/milestones{/number}","notifications_url":"https://api.github.com/repos/trema/trema/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trema/trema/labels{/name}","releases_url":"https://api.github.com/repos/trema/trema/releases{/id}","deployments_url":"https://api.github.com/repos/trema/trema/deployments","created_at":"2011-04-15T02:38:25Z","updated_at":"2016-06-03T16:44:56Z","pushed_at":"2016-04-10T08:57:15Z","git_url":"git://github.com/trema/trema.git","ssh_url":"git@github.com:trema/trema.git","clone_url":"https://github.com/trema/trema.git","svn_url":"https://github.com/trema/trema","homepage":"http://trema.github.com/trema/","size":20569,"stargazers_count":246,"watchers_count":246,"language":"Cucumber","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":78,"mirror_url":null,"open_issues_count":20,"forks":78,"open_issues":20,"watchers":246,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/trema/trema/pulls/425"},"html":{"href":"https://github.com/trema/trema/pull/425"},"issue":{"href":"https://api.github.com/repos/trema/trema/issues/425"},"comments":{"href":"https://api.github.com/repos/trema/trema/issues/425/comments"},"review_comments":{"href":"https://api.github.com/repos/trema/trema/pulls/425/comments"},"review_comment":{"href":"https://api.github.com/repos/trema/trema/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trema/trema/pulls/425/commits"},"statuses":{"href":"https://api.github.com/repos/trema/trema/statuses/579ebcbbb3e120b7c4f11f2721f11311eed915c7"}}}}
{"actor":{"display_login":"yasuhito"}}