trema 0.8.3 → 0.8.4
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/CHANGELOG.md +5 -0
- data/bin/trema +7 -7
- data/lib/trema/version.rb +1 -1
- data/trema.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac18a035f00fe07ae6418554199541a9d94732a1
|
4
|
+
data.tar.gz: 121fe33ddf699232dae17036c5b3440a8d330381
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f3c2455b0416bf25b637d5fb3b1109ca240ef4c458d486eb5b903d6fde14a2b2f622a94a05a46f45175f71d7722c16673d25b7bb0daf5772e87de53e4bee6d1
|
7
|
+
data.tar.gz: 3d7fabeb8f28bca2a1e3ef46713add659f96bbfdeead929dbbbacecf8bc424fc4cac63f93c230d5093dc68998730bafe5ac151304668480fbec3057458107021
|
data/CHANGELOG.md
CHANGED
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
|
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.
|
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.
|
107
|
-
"#{all.first.
|
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.
|
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.
|
118
|
-
"#{each} -> #{all.first.
|
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?
|
data/lib/trema/version.rb
CHANGED
data/trema.gemspec
CHANGED
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.
|
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-
|
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.
|
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.
|
54
|
+
version: 0.7.4
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pio
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|