pio 0.24.0 → 0.24.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef1bd0a6c467983ccca7761a5672cf8dce7e5136
4
- data.tar.gz: d7a9f2fbf5f25f5d00d6663ef9ad02db9c362295
3
+ metadata.gz: 875eb387b602d14772ebf2318b27083d6a49698c
4
+ data.tar.gz: 5075f0510a46adb49cc0da63c67db3c7244d73fd
5
5
  SHA512:
6
- metadata.gz: 07895e734c22b8802e9c9761534fced81cdaa80100486dca3ff9d11abf4c577f61a9bad7aac1de0e560ea34176bd77d2e71cf6f73158cf76da8a6dcb9a6a4055
7
- data.tar.gz: f1c35e1cb7726c0048b331595f30e4b12f6e961bdf489851c46f7174d550a2736d2d4b9fc3c3f9b6672964f4b7411ccbf25fbf847942b5a7b5e267d4cfd16211
6
+ metadata.gz: 422c2899f2b14c517c65fd18183d455121cd646465faa721fa77c5b12fb711bd49e5331c64066064545c7a632d13e957e20c32a46e5d5832205bb008cf439da8
7
+ data.tar.gz: 4dac41f867d056e79cbf5c3afb88c163599a071f1748400f38f9de91f7842506b69aa3f25fdbdeea969ce3214e48a99a8b8514f2ed2b22fc35faaf4b033429e8
@@ -3,6 +3,11 @@
3
3
  ## develop (unreleased)
4
4
 
5
5
 
6
+ ## 0.24.1 (8/4/2015)
7
+ ### Bugs fixed
8
+ * [#208](https://github.com/trema/pio/issues/208): `Pio::FlowMod.new` doesn't allow `:idle_timeout` and `:hard_timeout` options.
9
+
10
+
6
11
  ## 0.24.0 (8/1/2015)
7
12
  ### New features
8
13
  * [#201](https://github.com/trema/pio/pull/201): Add oxm experimenter support (OpenFlow1.3).
@@ -1,5 +1,47 @@
1
1
  @open_flow10
2
2
  Feature: Pio::FlowMod
3
+ Scenario: new
4
+ When I try to create an OpenFlow message with:
5
+ """
6
+ Pio::FlowMod.new(
7
+ actions: [],
8
+ buffer_id: 0,
9
+ command: :add,
10
+ flags: [],
11
+ hard_timeout: 0,
12
+ idle_timeout: 0,
13
+ match: Match.new(),
14
+ out_port: 0,
15
+ priority: 0
16
+ )
17
+ """
18
+ Then it should finish successfully
19
+ And the message have the following fields and values:
20
+ | field | value |
21
+ | ofp_version | 1 |
22
+ | message_type | 14 |
23
+ | actions | [] |
24
+ | buffer_id | 0 |
25
+ | command | :add |
26
+ | flags | [] |
27
+ | hard_timeout | 0 |
28
+ | idle_timeout | 0 |
29
+ | match.wildcards.keys.size | 12 |
30
+ | match.wildcards.key?(:in_port) | true |
31
+ | match.wildcards.key?(:vlan_vid) | true |
32
+ | match.wildcards.key?(:ether_source_address) | true |
33
+ | match.wildcards.key?(:ether_destination_address) | true |
34
+ | match.wildcards.key?(:ether_type) | true |
35
+ | match.wildcards.key?(:ip_protocol) | true |
36
+ | match.wildcards.key?(:transport_source_port) | true |
37
+ | match.wildcards.key?(:transport_destination_port) | true |
38
+ | match.wildcards.key?(:ip_source_address_all) | true |
39
+ | match.wildcards.key?(:ip_destination_address_all) | true |
40
+ | match.wildcards.key?(:vlan_priority) | true |
41
+ | match.wildcards.key?(:ip_tos) | true |
42
+ | out_port | 0 |
43
+ | priority | 0 |
44
+
3
45
  Scenario: read (Flow Mod Add)
4
46
  When I try to parse a file named "open_flow10/flow_mod_add.raw" with "Pio::FlowMod" class
5
47
  Then it should finish successfully
@@ -88,6 +88,8 @@ module Pio
88
88
  body_option :command
89
89
  body_option :cookie
90
90
  body_option :flags
91
+ body_option :hard_timeout
92
+ body_option :idle_timeout
91
93
  body_option :match
92
94
  body_option :out_port
93
95
  body_option :priority
@@ -133,7 +133,7 @@ module Pio
133
133
  # rubocop:disable MethodLength
134
134
  # This method smells of :reek:FeatureEnvy
135
135
  # This method smells of :reek:DuplicateMethodCall
136
- def initialize(user_options)
136
+ def initialize(user_options = {})
137
137
  flags = Wildcards::FLAGS.each_with_object({}) do |each, memo|
138
138
  memo[each] = true unless user_options.key?(each)
139
139
  end
@@ -1,5 +1,5 @@
1
1
  # Base module.
2
2
  module Pio
3
3
  # gem version.
4
- VERSION = '0.24.0'.freeze
4
+ VERSION = '0.24.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.24.1
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-08-01 00:00:00.000000000 Z
11
+ date: 2015-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata