openflow-controller 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/controller.rb +3 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2dd651a76a249d8748ee5211a7c2031811c2f57
4
- data.tar.gz: 493a8181dc0461dcdb10f8084dbcf662da9d9651
3
+ metadata.gz: e865176056800f3486f417a149aefd928491d779
4
+ data.tar.gz: 8910ff7c835f1a707bdd452069b062d024860ff1
5
5
  SHA512:
6
- metadata.gz: 2c6be226aa2e8f3afc7cd5f5f80dddc0e62f639b71498270b55ddeb1b11ec08a9e9388fe8d0b77cf73b8002fcadf791b866ef791c5b68561ea3fa33069f902f2
7
- data.tar.gz: 5765a7834d6f3e8406b57fd7fc32ab12cacfd2fb706316e2a8c6054771e142f7805b80165b178c9aeec10a911384543c1b0157a9ec146fbdcaa6ecda70d923f5
6
+ metadata.gz: eacd369f614388bc65050b8e9bdc34c3d946ddf3f34615fdb59440e5ed1e7969f314a10394584880a83daba57eee23057b923cca1da3326e3d20925d0ae3b86d
7
+ data.tar.gz: d7e5bc00439c20698ad7f3cabacbd139b81d52cf0ba06ebb4fadb7aacb0d2adcbd8674abda27a65b354e1e1777e8798d40aa093cfae42017758fcff19b273271
data/lib/controller.rb CHANGED
@@ -53,6 +53,7 @@ class OFController
53
53
 
54
54
  def start(*_args) end
55
55
  def switch_ready(_datapath_id) end
56
+ def error(_datapath_id, _msg) end
56
57
  def echo_request(datapath_id, msg)
57
58
  send_message datapath_id, OFEchoReply.new(xid: msg.xid)
58
59
  end
@@ -115,6 +116,8 @@ class OFController
115
116
  msg = @switches.fetch(datapath_id).receive
116
117
 
117
118
  case msg
119
+ when OFError
120
+ maybe_send_handler :error, datapath_id, msg
118
121
  when OFEchoRequest
119
122
  maybe_send_handler :echo_request, datapath_id, msg
120
123
  when OFFeaturesReply
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openflow-controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérémy Pagé