trema 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5a54d5f3f28b9407ad3aed3e47fa43e8621461d
4
- data.tar.gz: 0332b19bd8cc1398160035511eb9dffb6db6e851
3
+ metadata.gz: 24f771188fce45a80f695db3d73613b03781cebd
4
+ data.tar.gz: 29f171a402641c1bca2b4b3fd08dbcca0958171b
5
5
  SHA512:
6
- metadata.gz: f8c3a5b57a185fac024176c8de07cc62c1a0cf5aeb3e3d67b9a77d7ab0682fc50d9888013f49ab5f02cb14b50867f881e7f5c9140a846ecc38a831f16b3d2987
7
- data.tar.gz: 336e7e1f50e16562713547e4e2c43bd9b7d23219125e49e171aae0c630d8eac9134873dd23623c69bf84a6aa30f020803496b5d8b8945e38bb49b2735ffbafd0
6
+ metadata.gz: 4de09becdd8602e8873bb7c4bb658e07036fae06d266b75bd2afc6417a22c68b1ff27366e11cb96e0503606c3fdf1e917e0d39d4e5cef553cc99d00eaa93ac34
7
+ data.tar.gz: 0ee815621061790c1812cbb0a02a62544e3e3be1cf73b953a919346cfd3f4fbbb2689e58458c685f14bea5b57f33232c2f23224c3e8c5547aea6e1ab0634d454
data/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@
3
3
  ## develop (unreleased)
4
4
 
5
5
 
6
+ ## 0.7.0 (9/16/2015)
7
+ ### New features
8
+ * [#408](https://github.com/trema/trema/pull/408): Add `Trema::Controller#description_stats_reply` handler.
9
+
10
+
6
11
  ## 0.6.0 (9/9/2015)
7
12
  ### New features
8
13
  * [#398](https://github.com/trema/trema/pull/398): Add `Trema::Controller#barrier_reply` handler.
@@ -0,0 +1,30 @@
1
+ Feature: description_stats_reply handler
2
+ Background:
3
+ Given a file named "description_stats_reply.rb" with:
4
+ """ruby
5
+ class DescriptionStatsReply < Trema::Controller
6
+ def switch_ready(dpid)
7
+ send_message dpid, DescriptionStats::Request.new
8
+ end
9
+
10
+ def description_stats_reply(dpid, message)
11
+ logger.info 'description_stats_reply handler is invoked'
12
+ end
13
+ end
14
+ """
15
+ And a file named "trema.conf" with:
16
+ """ruby
17
+ vswitch { datapath_id 0xabc }
18
+ """
19
+
20
+ @sudo
21
+ Scenario: invoke description_reply handler
22
+ Given I use OpenFlow 1.0
23
+ When I trema run "description_stats_reply.rb" with the configuration "trema.conf"
24
+ Then the file "DescriptionStatsReply.log" should contain "description_stats_reply handler is invoked"
25
+
26
+ @sudo @wip
27
+ Scenario: invoke barrier_reply handler
28
+ Given I use OpenFlow 1.3
29
+ When I trema run "barrier_reply.rb" with the configuration "trema.conf"
30
+ Then the file "BarrierReply.log" should contain "barrier_reply handler is invoked"
@@ -323,6 +323,8 @@ module Trema
323
323
  end
324
324
  when Barrier::Reply
325
325
  maybe_send_handler :barrier_reply, datapath_id, message
326
+ when DescriptionStats::Reply
327
+ maybe_send_handler :description_stats_reply, datapath_id, message
326
328
  else
327
329
  fail "Unknown OpenFlow message: #{message.inspect}"
328
330
  end
data/lib/trema/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # Base module.
2
2
  module Trema
3
3
  # gem version.
4
- VERSION = '0.6.0'.freeze
4
+ VERSION = '0.7.0'.freeze
5
5
  end
data/trema.gemspec CHANGED
@@ -23,8 +23,8 @@ Gem::Specification.new do |gem|
23
23
 
24
24
  gem.add_dependency 'bundler', '~> 1.10.6'
25
25
  gem.add_dependency 'gli', '~> 2.13.2'
26
- gem.add_dependency 'phut', '~> 0.6.9'
27
- gem.add_dependency 'pio', '~> 0.26.0'
26
+ gem.add_dependency 'phut', '~> 0.6.10'
27
+ gem.add_dependency 'pio', '~> 0.27.0'
28
28
  gem.add_dependency 'rake'
29
29
 
30
30
  # Docs
@@ -39,5 +39,5 @@ Gem::Specification.new do |gem|
39
39
  gem.add_development_dependency 'reek', '~> 3.3.1'
40
40
  gem.add_development_dependency 'rspec', '~> 3.3.0'
41
41
  gem.add_development_dependency 'rspec-given', '~> 3.7.1'
42
- gem.add_development_dependency 'rubocop', '~> 0.34.0'
42
+ gem.add_development_dependency 'rubocop', '~> 0.34.1'
43
43
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhito Takamiya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-10 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 0.6.9
47
+ version: 0.6.10
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 0.6.9
54
+ version: 0.6.10
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pio
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 0.26.0
61
+ version: 0.27.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 0.26.0
68
+ version: 0.27.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -212,14 +212,14 @@ dependencies:
212
212
  requirements:
213
213
  - - ~>
214
214
  - !ruby/object:Gem::Version
215
- version: 0.34.0
215
+ version: 0.34.1
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - ~>
221
221
  - !ruby/object:Gem::Version
222
- version: 0.34.0
222
+ version: 0.34.1
223
223
  description: Trema is a full-stack, easy-to-use framework for developing OpenFlow
224
224
  controllers in Ruby.
225
225
  email:
@@ -247,6 +247,7 @@ files:
247
247
  - features/api/logging.feature
248
248
  - features/api/send_flow_mod_add.feature
249
249
  - features/handlers/barrier_reply.feature
250
+ - features/handlers/description_stats_reply.feature
250
251
  - features/handlers/echo_reply.feature
251
252
  - features/handlers/hello_failed.feature
252
253
  - features/handlers/packet_in.feature