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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c3b681d2cbe588388b838a3b6d9d888242a319a
4
- data.tar.gz: 2b8602c3b6d63299c5f648256cffa40c201684c6
3
+ metadata.gz: 78fcf6f28c8a7ca7d4b96577e741a040d36a6b6b
4
+ data.tar.gz: 50eee5d6d1cc66c2c18039bf2270bc80379a6886
5
5
  SHA512:
6
- metadata.gz: 6f5bca013e25718e9e209dd90e9597ea62373e914af63c5a81bd286f8aa917e7f2de6dd8cd755664cc3593545c47fd532d1e8fc844f06ad641cd97167702d8e6
7
- data.tar.gz: 3b31460f0b73ca4ee302b4664504e78c359549213bc92900dc887e2c93766c73849faa2cccf80e14137cb467fb955191f1f6ed929754fda7faae19b7c48f40dc
6
+ metadata.gz: ebbd2a412dfd6effeff88e914fcaafbe6312506de0f899437454f963f8fbbb7e0c2a18c59de3a1058b7865a4dd161deeb630756a7b5564e03ef630a784ce7498
7
+ data.tar.gz: bbdb92a486e99b2c41a0540e0f3cf291b9fd77d369c51dc81b9987976fa9ebf0a38ee28e9e4a348d0772e828492be789e4825413f07e2f756ddc4129c0e59cab
data/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@
3
3
  ## develop (unreleased)
4
4
 
5
5
 
6
+ ## 0.7.6 (2/10/2016)
7
+ ### Changes
8
+ * Drop the first line (NXST_FLOW...) of dump-flows output.
9
+
10
+
6
11
  ## 0.7.5 (12/17/2015)
7
12
  ### Bugs fixed
8
13
  * [#33](https://github.com/trema/phut/pull/33): Fix dump_flows in OpenFlow 1.3.
@@ -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"
@@ -109,7 +109,11 @@ module Phut
109
109
  end
110
110
 
111
111
  def dump_flows
112
- `sudo ovs-ofctl dump-flows #{bridge_name} -O #{Pio::OpenFlow.version}`
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
@@ -1,4 +1,4 @@
1
1
  # Base module.
2
2
  module Phut
3
- VERSION = '0.7.5'
3
+ VERSION = '0.7.6'
4
4
  end
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.5
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: 2015-12-17 00:00:00.000000000 Z
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.4.6
415
+ rubygems_version: 2.5.1
416
416
  signing_key:
417
417
  specification_version: 4
418
418
  summary: Virtual network in seconds.