{"action":"created","issue":{"url":"https://api.github.com/repos/yasuhito/trema-book/issues/105","labels_url":"https://api.github.com/repos/yasuhito/trema-book/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/yasuhito/trema-book/issues/105/comments","events_url":"https://api.github.com/repos/yasuhito/trema-book/issues/105/events","html_url":"https://github.com/yasuhito/trema-book/issues/105","id":110430458,"number":105,"title":"OpenFlow1.3版 ラーニングスイッチの質問","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},"labels":[{"url":"https://api.github.com/repos/yasuhito/trema-book/labels/help-wanted","name":"help-wanted","color":"009800"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/yasuhito/trema-book/milestones/8","html_url":"https://github.com/yasuhito/trema-book/milestones/%E3%83%A9%E3%83%BC%E3%83%8B%E3%83%B3%E3%82%B0%E3%82%B9%E3%82%A4%E3%83%83%E3%83%811.3%E7%AB%A0%20%E3%83%89%E3%83%A9%E3%83%95%E3%83%88rev.1","labels_url":"https://api.github.com/repos/yasuhito/trema-book/milestones/8/labels","id":1338060,"number":8,"title":"ラーニングスイッチ1.3章 ドラフトrev.1","description":"","creator":{"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},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-10-05T11:58:14Z","updated_at":"2015-10-08T11:43:29Z","due_on":"2015-10-08T15:00:00Z","closed_at":null},"comments":13,"created_at":"2015-10-08T11:43:29Z","updated_at":"2015-10-09T04:00:51Z","closed_at":null,"body":"OpenFlow1.3版ラーニングスイッチ作者!! @shun159 さんいくつか教えてください:\r\n\r\n- [ ] **テーブルIDの振りかたの決まり?:**\r\nいまの実装だとテーブルIDの0番と1番をぞれぞれ次のように振っています。質問ですが、OpenFlowの仕様とかあとはベストプラクティスみたいなもので、IDはこういう振りかたをしようとか、予約されていて使えないIDなどというものってあるでしょうか?\r\n\r\n```ruby\r\n  INGRESS_FILTERING_TABLE_ID = 0\r\n  FORWARDING_TABLE_ID = 1\r\n```\r\n\r\n- [ ] **802.1D予約済みスパニングツリーMACアドレス対応?:**\r\nOpenFlow1.0版のラーニングスイッチでは、次のように `Mac#reserved?` メソッドで宛先が802.1D予約済みスパニングツリーMACアドレスなモノをdropしています。OpenFlow1.3版もフィルタリングテーブルでこうしたほうがいいですか? (関連イシュー #90)\r\n\r\n```ruby\r\n  def packet_in(_datapath_id, message)\r\n    return if message.destination_mac.reserved?\r\n```\r\n\r\n- [ ] **Trema (OpenFlow1.3) の改善ポイント?:**\r\nTremaのOpenFlow1.3で書いてて気持ち悪いところや改善できそうなことがあったら何でも教えてください。たとえば前に聞いたと思いますが、FlowModするときにマッチが不要なところでもいちいち `match: Match.new` と書かなければいけないのは直したほうがいい気がします。\r\n\r\n```ruby\r\n    send_flow_mod_add(\r\n      datapath_id,\r\n      table_id: FORWARDING_TABLE_ID,\r\n      idle_timeout: 0,\r\n      priority: 1,\r\n      match: Match.new,\r\n      instructions: Apply.new([SendOutPort.new(:controller),\r\n                               SendOutPort.new(:flood)])\r\n    )\r\n```"},"comment":{"url":"https://api.github.com/repos/yasuhito/trema-book/issues/comments/146750481","html_url":"https://github.com/yasuhito/trema-book/issues/105#issuecomment-146750481","issue_url":"https://api.github.com/repos/yasuhito/trema-book/issues/105","id":146750481,"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":"2015-10-09T04:00:51Z","updated_at":"2015-10-09T04:00:51Z","body":"わかりましたありがとうございます!"}}