openflow-protocol 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/actions/actions.rb +1 -24
  3. data/lib/helpers/array_of_subclasses.rb +38 -0
  4. data/lib/helpers/superclass_base.rb +2 -0
  5. data/lib/messages/features_reply.rb +2 -2
  6. data/lib/messages/message.rb +1 -1
  7. data/lib/messages/port_mod.rb +2 -0
  8. data/lib/messages/queue_get_config_reply.rb +14 -0
  9. data/lib/messages/queue_get_config_request.rb +11 -0
  10. data/lib/{statistics → messages/statistics}/aggregate_statistics_reply.rb +0 -0
  11. data/lib/{statistics → messages/statistics}/aggregate_statistics_request.rb +0 -0
  12. data/lib/{statistics → messages/statistics}/description_statistics.rb +0 -0
  13. data/lib/{statistics → messages/statistics}/flow_statistics_reply.rb +0 -0
  14. data/lib/{statistics → messages/statistics}/flow_statistics_request.rb +0 -0
  15. data/lib/{statistics → messages/statistics}/port_statistics_reply.rb +1 -1
  16. data/lib/{statistics → messages/statistics}/port_statistics_request.rb +1 -1
  17. data/lib/{statistics → messages/statistics}/queue_statistics_reply.rb +1 -1
  18. data/lib/{statistics → messages/statistics}/queue_statistics_request.rb +1 -1
  19. data/lib/{statistics → messages/statistics}/table_statistics.rb +1 -1
  20. data/lib/{statistics → messages/statistics}/vendor_statistics.rb +0 -0
  21. data/lib/openflow-protocol/version.rb +1 -1
  22. data/lib/structs/packet_queue.rb +10 -0
  23. data/lib/structs/port_number.rb +14 -0
  24. data/lib/structs/queue_properties/queue_properties.rb +5 -0
  25. data/lib/structs/queue_properties/queue_property.rb +16 -0
  26. data/lib/structs/queue_properties/queue_property_min_rate.rb +26 -0
  27. data/lib/structs/queue_properties/queue_property_none.rb +3 -0
  28. data/spec/actions/actions_spec.rb +1 -1
  29. data/spec/messages/barrier_reply_spec.rb +7 -1
  30. data/spec/messages/barrier_request_spec.rb +7 -1
  31. data/spec/messages/echo_reply_spec.rb +7 -1
  32. data/spec/messages/echo_request_spec.rb +7 -1
  33. data/spec/messages/error_spec.rb +10 -2
  34. data/spec/messages/features_reply_spec.rb +50 -39
  35. data/spec/messages/features_request_spec.rb +7 -1
  36. data/spec/messages/flow_mod_spec.rb +10 -2
  37. data/spec/messages/flow_removed_spec.rb +10 -2
  38. data/spec/messages/get_config_reply_spec.rb +10 -2
  39. data/spec/messages/get_config_request_spec.rb +7 -1
  40. data/spec/messages/hello_spec.rb +7 -1
  41. data/spec/messages/packet_in_spec.rb +10 -2
  42. data/spec/messages/packet_out_spec.rb +10 -2
  43. data/spec/messages/port_mod_spec.rb +10 -2
  44. data/spec/messages/port_status_spec.rb +10 -2
  45. data/spec/messages/queue_get_config_reply_spec.rb +68 -0
  46. data/spec/messages/queue_get_config_request_spec.rb +40 -0
  47. data/spec/messages/set_config_spec.rb +10 -2
  48. data/spec/{statistics → messages/statistics}/aggregate_statistics_reply_spec.rb +0 -0
  49. data/spec/{statistics → messages/statistics}/aggregate_statistics_request_spec.rb +0 -0
  50. data/spec/{statistics → messages/statistics}/description_statistics_spec.rb +0 -0
  51. data/spec/{statistics → messages/statistics}/flow_statistics_reply_spec.rb +0 -0
  52. data/spec/{statistics → messages/statistics}/flow_statistics_request_spec.rb +0 -0
  53. data/spec/{statistics → messages/statistics}/port_statistics_reply_spec.rb +0 -0
  54. data/spec/{statistics → messages/statistics}/port_statistics_request_spec.rb +0 -0
  55. data/spec/{statistics → messages/statistics}/queue_statistics_reply_spec.rb +0 -0
  56. data/spec/{statistics → messages/statistics}/queue_statistics_request_spec.rb +0 -0
  57. data/spec/{statistics → messages/statistics}/table_statistics_spec.rb +0 -0
  58. data/spec/{statistics → messages/statistics}/vendor_statistics_spec.rb +0 -0
  59. data/spec/messages/statistics_reply_spec.rb +77 -20
  60. data/spec/messages/statistics_request_spec.rb +13 -5
  61. data/spec/messages/vendor_spec.rb +10 -2
  62. data/spec/structs/packet_queue_spec.rb +37 -0
  63. data/spec/structs/port_number_spec.rb +19 -0
  64. data/spec/structs/queue_properties/queue_properties_spec.rb +29 -0
  65. data/spec/structs/queue_properties/queue_property_min_rate_spec.rb +32 -0
  66. data/spec/structs/queue_properties/queue_property_none_spec.rb +14 -0
  67. metadata +55 -35
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openflow-protocol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérémy Pagé
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-11 00:00:00.000000000 Z
11
+ date: 2016-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: packet-protocols
@@ -60,6 +60,7 @@ files:
60
60
  - lib/actions/action_strip_vlan.rb
61
61
  - lib/actions/action_vendor.rb
62
62
  - lib/actions/actions.rb
63
+ - lib/helpers/array_of_subclasses.rb
63
64
  - lib/helpers/superclass_base.rb
64
65
  - lib/messages/barrier_reply.rb
65
66
  - lib/messages/barrier_request.rb
@@ -79,27 +80,34 @@ files:
79
80
  - lib/messages/parser.rb
80
81
  - lib/messages/port_mod.rb
81
82
  - lib/messages/port_status.rb
83
+ - lib/messages/queue_get_config_reply.rb
84
+ - lib/messages/queue_get_config_request.rb
82
85
  - lib/messages/set_config.rb
83
86
  - lib/messages/statistics.rb
87
+ - lib/messages/statistics/aggregate_statistics_reply.rb
88
+ - lib/messages/statistics/aggregate_statistics_request.rb
89
+ - lib/messages/statistics/description_statistics.rb
90
+ - lib/messages/statistics/flow_statistics_reply.rb
91
+ - lib/messages/statistics/flow_statistics_request.rb
92
+ - lib/messages/statistics/port_statistics_reply.rb
93
+ - lib/messages/statistics/port_statistics_request.rb
94
+ - lib/messages/statistics/queue_statistics_reply.rb
95
+ - lib/messages/statistics/queue_statistics_request.rb
96
+ - lib/messages/statistics/table_statistics.rb
97
+ - lib/messages/statistics/vendor_statistics.rb
84
98
  - lib/messages/statistics_reply.rb
85
99
  - lib/messages/statistics_request.rb
86
100
  - lib/messages/vendor.rb
87
101
  - lib/openflow-protocol.rb
88
102
  - lib/openflow-protocol/version.rb
89
- - lib/statistics/aggregate_statistics_reply.rb
90
- - lib/statistics/aggregate_statistics_request.rb
91
- - lib/statistics/description_statistics.rb
92
- - lib/statistics/flow_statistics_reply.rb
93
- - lib/statistics/flow_statistics_request.rb
94
- - lib/statistics/port_statistics_reply.rb
95
- - lib/statistics/port_statistics_request.rb
96
- - lib/statistics/queue_statistics_reply.rb
97
- - lib/statistics/queue_statistics_request.rb
98
- - lib/statistics/table_statistics.rb
99
- - lib/statistics/vendor_statistics.rb
100
103
  - lib/structs/match.rb
104
+ - lib/structs/packet_queue.rb
101
105
  - lib/structs/physical_port.rb
102
106
  - lib/structs/port_number.rb
107
+ - lib/structs/queue_properties/queue_properties.rb
108
+ - lib/structs/queue_properties/queue_property.rb
109
+ - lib/structs/queue_properties/queue_property_min_rate.rb
110
+ - lib/structs/queue_properties/queue_property_none.rb
103
111
  - spec/actions/action_enqueue_spec.rb
104
112
  - spec/actions/action_output_spec.rb
105
113
  - spec/actions/action_set_destination_port_spec.rb
@@ -131,25 +139,31 @@ files:
131
139
  - spec/messages/parser_spec.rb
132
140
  - spec/messages/port_mod_spec.rb
133
141
  - spec/messages/port_status_spec.rb
142
+ - spec/messages/queue_get_config_reply_spec.rb
143
+ - spec/messages/queue_get_config_request_spec.rb
134
144
  - spec/messages/set_config_spec.rb
145
+ - spec/messages/statistics/aggregate_statistics_reply_spec.rb
146
+ - spec/messages/statistics/aggregate_statistics_request_spec.rb
147
+ - spec/messages/statistics/description_statistics_spec.rb
148
+ - spec/messages/statistics/flow_statistics_reply_spec.rb
149
+ - spec/messages/statistics/flow_statistics_request_spec.rb
150
+ - spec/messages/statistics/port_statistics_reply_spec.rb
151
+ - spec/messages/statistics/port_statistics_request_spec.rb
152
+ - spec/messages/statistics/queue_statistics_reply_spec.rb
153
+ - spec/messages/statistics/queue_statistics_request_spec.rb
154
+ - spec/messages/statistics/table_statistics_spec.rb
155
+ - spec/messages/statistics/vendor_statistics_spec.rb
135
156
  - spec/messages/statistics_reply_spec.rb
136
157
  - spec/messages/statistics_request_spec.rb
137
158
  - spec/messages/vendor_spec.rb
138
159
  - spec/spec_helper.rb
139
- - spec/statistics/aggregate_statistics_reply_spec.rb
140
- - spec/statistics/aggregate_statistics_request_spec.rb
141
- - spec/statistics/description_statistics_spec.rb
142
- - spec/statistics/flow_statistics_reply_spec.rb
143
- - spec/statistics/flow_statistics_request_spec.rb
144
- - spec/statistics/port_statistics_reply_spec.rb
145
- - spec/statistics/port_statistics_request_spec.rb
146
- - spec/statistics/queue_statistics_reply_spec.rb
147
- - spec/statistics/queue_statistics_request_spec.rb
148
- - spec/statistics/table_statistics_spec.rb
149
- - spec/statistics/vendor_statistics_spec.rb
150
160
  - spec/structs/match_spec.rb
161
+ - spec/structs/packet_queue_spec.rb
151
162
  - spec/structs/physical_port_spec.rb
152
163
  - spec/structs/port_number_spec.rb
164
+ - spec/structs/queue_properties/queue_properties_spec.rb
165
+ - spec/structs/queue_properties/queue_property_min_rate_spec.rb
166
+ - spec/structs/queue_properties/queue_property_none_spec.rb
153
167
  homepage: https://github.com/jejepage/openflow-protocol
154
168
  licenses:
155
169
  - MIT
@@ -206,22 +220,28 @@ test_files:
206
220
  - spec/messages/parser_spec.rb
207
221
  - spec/messages/port_mod_spec.rb
208
222
  - spec/messages/port_status_spec.rb
223
+ - spec/messages/queue_get_config_reply_spec.rb
224
+ - spec/messages/queue_get_config_request_spec.rb
209
225
  - spec/messages/set_config_spec.rb
226
+ - spec/messages/statistics/aggregate_statistics_reply_spec.rb
227
+ - spec/messages/statistics/aggregate_statistics_request_spec.rb
228
+ - spec/messages/statistics/description_statistics_spec.rb
229
+ - spec/messages/statistics/flow_statistics_reply_spec.rb
230
+ - spec/messages/statistics/flow_statistics_request_spec.rb
231
+ - spec/messages/statistics/port_statistics_reply_spec.rb
232
+ - spec/messages/statistics/port_statistics_request_spec.rb
233
+ - spec/messages/statistics/queue_statistics_reply_spec.rb
234
+ - spec/messages/statistics/queue_statistics_request_spec.rb
235
+ - spec/messages/statistics/table_statistics_spec.rb
236
+ - spec/messages/statistics/vendor_statistics_spec.rb
210
237
  - spec/messages/statistics_reply_spec.rb
211
238
  - spec/messages/statistics_request_spec.rb
212
239
  - spec/messages/vendor_spec.rb
213
240
  - spec/spec_helper.rb
214
- - spec/statistics/aggregate_statistics_reply_spec.rb
215
- - spec/statistics/aggregate_statistics_request_spec.rb
216
- - spec/statistics/description_statistics_spec.rb
217
- - spec/statistics/flow_statistics_reply_spec.rb
218
- - spec/statistics/flow_statistics_request_spec.rb
219
- - spec/statistics/port_statistics_reply_spec.rb
220
- - spec/statistics/port_statistics_request_spec.rb
221
- - spec/statistics/queue_statistics_reply_spec.rb
222
- - spec/statistics/queue_statistics_request_spec.rb
223
- - spec/statistics/table_statistics_spec.rb
224
- - spec/statistics/vendor_statistics_spec.rb
225
241
  - spec/structs/match_spec.rb
242
+ - spec/structs/packet_queue_spec.rb
226
243
  - spec/structs/physical_port_spec.rb
227
244
  - spec/structs/port_number_spec.rb
245
+ - spec/structs/queue_properties/queue_properties_spec.rb
246
+ - spec/structs/queue_properties/queue_property_min_rate_spec.rb
247
+ - spec/structs/queue_properties/queue_property_none_spec.rb