pio 0.24.0 → 0.24.1
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/open_flow10/flow_mod.feature +42 -0
- data/lib/pio/open_flow10/flow_mod.rb +2 -0
- data/lib/pio/open_flow10/match.rb +1 -1
- data/lib/pio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 875eb387b602d14772ebf2318b27083d6a49698c
|
4
|
+
data.tar.gz: 5075f0510a46adb49cc0da63c67db3c7244d73fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 422c2899f2b14c517c65fd18183d455121cd646465faa721fa77c5b12fb711bd49e5331c64066064545c7a632d13e957e20c32a46e5d5832205bb008cf439da8
|
7
|
+
data.tar.gz: 4dac41f867d056e79cbf5c3afb88c163599a071f1748400f38f9de91f7842506b69aa3f25fdbdeea969ce3214e48a99a8b8514f2ed2b22fc35faaf4b033429e8
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -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
|
data/lib/pio/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|