{"action":"created","issue":{"url":"https://api.github.com/repos/trema/phut/issues/41","repository_url":"https://api.github.com/repos/trema/phut","labels_url":"https://api.github.com/repos/trema/phut/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/trema/phut/issues/41/comments","events_url":"https://api.github.com/repos/trema/phut/issues/41/events","html_url":"https://github.com/trema/phut/pull/41","id":160557211,"number":41,"title":"Use OVSDB client in order to retrive port list","user":{"login":"shun159","id":2569175,"avatar_url":"https://avatars.githubusercontent.com/u/2569175?v=3","gravatar_id":"","url":"https://api.github.com/users/shun159","html_url":"https://github.com/shun159","followers_url":"https://api.github.com/users/shun159/followers","following_url":"https://api.github.com/users/shun159/following{/other_user}","gists_url":"https://api.github.com/users/shun159/gists{/gist_id}","starred_url":"https://api.github.com/users/shun159/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shun159/subscriptions","organizations_url":"https://api.github.com/users/shun159/orgs","repos_url":"https://api.github.com/users/shun159/repos","events_url":"https://api.github.com/users/shun159/events{/privacy}","received_events_url":"https://api.github.com/users/shun159/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-16T01:09:18Z","updated_at":"2016-06-16T02:52:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/trema/phut/pulls/41","html_url":"https://github.com/trema/phut/pull/41","diff_url":"https://github.com/trema/phut/pull/41.diff","patch_url":"https://github.com/trema/phut/pull/41.patch"},"body":"https://3.basecamp.com/3088280/buckets/46054/messages/148393356 \r\nの通り、OVSDBを使った実装を試しに書いてみました。テストはまだありません。"},"comment":{"url":"https://api.github.com/repos/trema/phut/issues/comments/226375444","html_url":"https://github.com/trema/phut/pull/41#issuecomment-226375444","issue_url":"https://api.github.com/repos/trema/phut/issues/41","id":226375444,"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},"created_at":"2016-06-16T02:52:18Z","updated_at":"2016-06-16T02:52:18Z","body":"まずテストについては、[vswitch#ports.feature](https://github.com/trema/phut/blob/develop/features/shell/vswitch%23ports.feature) がそのまま使えると思います。この最後のシナリオでは、ポート 2 番に仮想リンクをつなげたときの Vswitch#ports の出力チェックをしています。\r\n\r\n```\r\nScenario: Vswitch#ports\r\n  Given I type \"link = Link.create('a', 'b')\"\r\n  And I type \"vswitch.add_numbered_port 2, link.device('a')\"\r\n  When I type \"vswitch.ports\"\r\n  And sleep 5\r\n  Then the output should contain:\r\n   \"\"\"\r\n   [\"L0_a\"]\r\n   \"\"\"\r\n```\r\n\r\nここはたとえば `[#<Port number: 2, device: \"L0_a\">]` という出力が返ってくればカッコイイと思います。"}}
{"actor":{"display_login":"yasuhito"}}