trema 0.8.3 → 0.8.4

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: 85bc1531a77d973ecec4a277ff4bcea2025d993b
4
- data.tar.gz: 0b2a5e532a2124335d269dcddc022836ecf153e5
3
+ metadata.gz: ac18a035f00fe07ae6418554199541a9d94732a1
4
+ data.tar.gz: 121fe33ddf699232dae17036c5b3440a8d330381
5
5
  SHA512:
6
- metadata.gz: ecaf73ba71f8956e1f17be8c3a4d17890f7432b7d187158f5047415a6728dfacfcf0ae6c5af094ae909dc0c41517340afae08adb784fc7d4df68b136f7cbdce2
7
- data.tar.gz: e9b463a88d9b1c5cb9a6a412bf3fabc3c0f2eff53a2452b52b2110dc057d1f9acdefb7724b7e0b15a944e0393c60cd21c45fe833af2df98aaacea94549d7dc7d
6
+ metadata.gz: 2f3c2455b0416bf25b637d5fb3b1109ca240ef4c458d486eb5b903d6fde14a2b2f622a94a05a46f45175f71d7722c16673d25b7bb0daf5772e87de53e4bee6d1
7
+ data.tar.gz: 3d7fabeb8f28bca2a1e3ef46713add659f96bbfdeead929dbbbacecf8bc424fc4cac63f93c230d5093dc68998730bafe5ac151304668480fbec3057458107021
@@ -3,6 +3,11 @@
3
3
  ## develop (unreleased)
4
4
 
5
5
 
6
+ ## 0.8.4 (11/30/2015)
7
+ ### Bugs fixed
8
+ * Fix NoMethodError.
9
+
10
+
6
11
  ## 0.8.3 (11/17/2015)
7
12
  ### Changes
8
13
  * Pio 0.30.0
data/bin/trema CHANGED
@@ -49,7 +49,7 @@ module Trema
49
49
  Phut.pid_dir = options[:pid_dir]
50
50
  Phut.log_dir = options[:log_dir]
51
51
  Phut.socket_dir = options[:socket_dir]
52
- Pio::OpenFlow.switch_version 'OpenFlow13' if options[:openflow13]
52
+ Pio::OpenFlow.switch_version('OpenFlow13') if options[:openflow13]
53
53
  require 'trema/switch'
54
54
  Trema::Command.new.run(args, global_options.merge(options))
55
55
  end
@@ -101,10 +101,10 @@ module Trema
101
101
 
102
102
  stats = Phut::VhostDaemon.process(args[0], options[:socket_dir]).stats
103
103
 
104
- dests = stats[:tx].map { |each| each.ip_destination_address.to_s }.uniq
104
+ dests = stats[:tx].map { |each| each.destination_ip_address.to_s }.uniq
105
105
  txstats = dests.map do |each|
106
- all = stats[:tx].select { |pkt| pkt.ip_destination_address == each }
107
- "#{all.first.ip_source_address} -> #{each} = " \
106
+ all = stats[:tx].select { |pkt| pkt.destination_ip_address == each }
107
+ "#{all.first.source_ip_address} -> #{each} = " \
108
108
  "#{all.size} packet#{all.size > 1 ? 's' : ''}"
109
109
  end
110
110
  unless txstats.empty?
@@ -112,10 +112,10 @@ module Trema
112
112
  txstats.each { |each| puts " #{each}" }
113
113
  end
114
114
 
115
- sources = stats[:rx].map { |each| each.ip_source_address.to_s }.uniq
115
+ sources = stats[:rx].map { |each| each.source_ip_address.to_s }.uniq
116
116
  rxstats = sources.map do |each|
117
- all = stats[:rx].select { |pkt| pkt.ip_source_address == each }
118
- "#{each} -> #{all.first.ip_destination_address} = " \
117
+ all = stats[:rx].select { |pkt| pkt.source_ip_address == each }
118
+ "#{each} -> #{all.first.destination_ip_address} = " \
119
119
  "#{all.size} packet#{all.size > 1 ? 's' : ''}"
120
120
  end
121
121
  unless rxstats.empty?
@@ -1,5 +1,5 @@
1
1
  # Base module.
2
2
  module Trema
3
3
  # gem version.
4
- VERSION = '0.8.3'.freeze
4
+ VERSION = '0.8.4'.freeze
5
5
  end
@@ -23,7 +23,7 @@ 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.7.3'
26
+ gem.add_dependency 'phut', '~> 0.7.4'
27
27
  gem.add_dependency 'pio', '~> 0.30.0'
28
28
 
29
29
  # Docs
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.8.3
4
+ version: 0.8.4
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-11-17 00:00:00.000000000 Z
11
+ date: 2015-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.7.3
47
+ version: 0.7.4
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.7.3
54
+ version: 0.7.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pio
57
57
  requirement: !ruby/object:Gem::Requirement