phut 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/features/shell.feature +0 -8
- data/lib/phut/open_vswitch.rb +5 -1
- data/lib/phut/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78fcf6f28c8a7ca7d4b96577e741a040d36a6b6b
|
4
|
+
data.tar.gz: 50eee5d6d1cc66c2c18039bf2270bc80379a6886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebbd2a412dfd6effeff88e914fcaafbe6312506de0f899437454f963f8fbbb7e0c2a18c59de3a1058b7865a4dd161deeb630756a7b5564e03ef630a784ce7498
|
7
|
+
data.tar.gz: bbdb92a486e99b2c41a0540e0f3cf291b9fd77d369c51dc81b9987976fa9ebf0a38ee28e9e4a348d0772e828492be789e4825413f07e2f756ddc4129c0e59cab
|
data/CHANGELOG.md
CHANGED
data/features/shell.feature
CHANGED
@@ -17,14 +17,6 @@ Feature: Shell
|
|
17
17
|
And sleep 1
|
18
18
|
Then a vswitch named "0xabc" should be running
|
19
19
|
|
20
|
-
@shell
|
21
|
-
Scenario: dump_flows
|
22
|
-
Given I type "vswitch '0xabc'"
|
23
|
-
When I type "dump_flows 0xabc"
|
24
|
-
And I type "quit"
|
25
|
-
And sleep 1
|
26
|
-
Then the output should contain "NXST_FLOW reply"
|
27
|
-
|
28
20
|
@shell
|
29
21
|
Scenario: vswitch twice and fail
|
30
22
|
And I type "vswitch 0xabc"
|
data/lib/phut/open_vswitch.rb
CHANGED
@@ -109,7 +109,11 @@ module Phut
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def dump_flows
|
112
|
-
|
112
|
+
output =
|
113
|
+
`sudo ovs-ofctl dump-flows #{bridge_name} -O #{Pio::OpenFlow.version}`
|
114
|
+
output.split("\n").inject('') do |memo, each|
|
115
|
+
memo + ((/^(NXST|OFPST)_FLOW reply/=~ each) ? '' : each.lstrip + "\n")
|
116
|
+
end
|
113
117
|
end
|
114
118
|
|
115
119
|
def running?
|
data/lib/phut/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phut
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yasuhito Takamiya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -412,7 +412,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
412
412
|
version: '0'
|
413
413
|
requirements: []
|
414
414
|
rubyforge_project:
|
415
|
-
rubygems_version: 2.
|
415
|
+
rubygems_version: 2.5.1
|
416
416
|
signing_key:
|
417
417
|
specification_version: 4
|
418
418
|
summary: Virtual network in seconds.
|