openflow-controller 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/controller.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e865176056800f3486f417a149aefd928491d779
|
4
|
+
data.tar.gz: 8910ff7c835f1a707bdd452069b062d024860ff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|