pio 0.13.0 → 0.14.0
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 -16
- data/lib/pio/packet_in.rb +4 -0
- data/lib/pio/version.rb +1 -1
- data/spec/pio/packet_in_spec.rb +6 -0
- 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: 1fd283fac969bbd9c87f81cbca52df75e1ea0688
|
4
|
+
data.tar.gz: ef718b4d71676d8d5280297e9baa886b593d5d59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc32c4a9a1b820c3c15bc6e1e32f5ad939021e4e4ffc13e744050e2c503743d81bbec8d4a23e9a2c5a18f770e08c3118f3a1b69f1295644890df5e465c811c7c
|
7
|
+
data.tar.gz: 52d1e44d687f70d594ae39e09dc82b56963bcf3e1fc1c5f5b768319d2001a4bdba43ff9968a81a70bb46b76506af9d37e0dbe61e729da6d840eb40739881ea8e
|
data/CHANGELOG.md
CHANGED
@@ -3,75 +3,68 @@
|
|
3
3
|
## develop (unreleased)
|
4
4
|
|
5
5
|
|
6
|
-
## 0.
|
6
|
+
## 0.14.0 (2/9/2015)
|
7
|
+
### New features
|
8
|
+
* [#125](https://github.com/trema/pio/pull/125): Add new accessor methods `Pio::PacketIn#datapath_id` and `Pio::PacketIn#dpid`.
|
9
|
+
|
7
10
|
|
11
|
+
## 0.13.0 (2/6/2015)
|
8
12
|
### New features
|
9
13
|
* [#124](https://github.com/trema/pio/pull/124): Add new methods `Pio::PacketIn#source_mac` and `Pio::PacketIn#destination_mac`.
|
10
14
|
|
11
15
|
|
12
16
|
## 0.12.0 (2/5/2015)
|
13
|
-
|
14
17
|
### New features
|
15
18
|
* [#123](https://github.com/trema/pio/pull/123): Add new class `Pio::ExactMatch`.
|
16
19
|
|
17
20
|
|
18
21
|
## 0.11.2 (1/29/2015)
|
19
|
-
|
20
22
|
### Bugs fixed
|
21
23
|
* [#121](https://github.com/trema/pio/pull/121): Fix behavior of `Pio::Match#==` and `Pio::SendOutPort#==`.
|
22
24
|
|
23
25
|
|
24
26
|
## 0.11.1 (1/15/2015)
|
25
|
-
|
26
27
|
### New features
|
27
28
|
* [#116](https://github.com/trema/pio/issues/116): Support Cisco-style MAC addresses.
|
28
29
|
|
29
30
|
|
30
31
|
## 0.11.0 (1/15/2015)
|
31
|
-
|
32
32
|
### New features
|
33
33
|
* [#108](https://github.com/trema/pio/pull/108): Added new class `Pio::FlowMod` and `Pio::Match`.
|
34
34
|
|
35
35
|
|
36
36
|
## 0.10.1 (1/6/2015)
|
37
|
-
|
38
37
|
### Bugs fixed
|
39
38
|
* [#104](https://github.com/trema/pio/issues/104): Fix bug when parsing `Pio::PacketOut` with `Pio::StripVlanHeader` action.
|
40
39
|
|
41
40
|
|
42
41
|
## 0.10.0 (1/6/2015)
|
43
|
-
|
44
42
|
### New features
|
45
43
|
* [#103](https://github.com/trema/pio/pull/103): Added new class `Pio::PacketOut`.
|
46
44
|
|
47
45
|
|
48
46
|
## 0.9.0 (12/22/2014)
|
49
|
-
|
50
47
|
### New features
|
51
48
|
* [#102](https://github.com/trema/pio/pull/102): Added new class `Pio::PacketIn`.
|
52
49
|
|
53
50
|
|
54
51
|
## 0.8.2 (12/18/2014)
|
55
|
-
|
56
52
|
### Bugs fixed
|
57
53
|
* [#100](https://github.com/trema/pio/pull/100): Fix bug when passing `ports:` option to `Pio::Features::Request.new`.
|
58
54
|
|
59
55
|
|
60
56
|
## 0.8.1 (6/5/2014)
|
61
|
-
|
62
57
|
### Misc
|
63
58
|
* Updated bundled gems.
|
64
59
|
* Modernized Gemfile and .gemspec.
|
65
60
|
|
66
61
|
|
67
62
|
## 0.8.0 (5/26/2014)
|
68
|
-
|
69
63
|
### Changes
|
70
64
|
* Renamed `version` => `ofp_version`
|
71
65
|
|
72
66
|
|
73
67
|
## 0.7.0 (4/22/2014)
|
74
|
-
|
75
68
|
### New features
|
76
69
|
* Added new class `Pio::Features`, `Pio::Features::Request` and `Pio::Features::Reply`
|
77
70
|
|
@@ -80,19 +73,16 @@
|
|
80
73
|
|
81
74
|
|
82
75
|
## 0.6.0 (4/15/2014)
|
83
|
-
|
84
76
|
### New features
|
85
77
|
* Added new class `Pio::Echo`, `Pio::Echo::Request` and `Pio::Echo::Reply`.
|
86
78
|
|
87
79
|
|
88
80
|
## 0.5.1 (4/15/2014)
|
89
|
-
|
90
81
|
### Bugs fixed
|
91
82
|
* Set hello message type = 0.
|
92
83
|
|
93
84
|
|
94
85
|
## 0.5.0 (4/14/2014)
|
95
|
-
|
96
86
|
### New features
|
97
87
|
* Added new class `Pio::Hello`.
|
98
88
|
|
@@ -102,7 +92,6 @@
|
|
102
92
|
|
103
93
|
|
104
94
|
## 0.4.0 (3/31/2014)
|
105
|
-
|
106
95
|
### New features
|
107
96
|
* Added new classes `Pio::Dhcp`, `Pio::Dhcp::Discover`,
|
108
97
|
`Pio::Dhcp::Offer`, `Pio::Dhcp::Request` and `Pio::Dhcp::Ack`.
|
data/lib/pio/packet_in.rb
CHANGED
data/lib/pio/version.rb
CHANGED
data/spec/pio/packet_in_spec.rb
CHANGED
@@ -99,7 +99,10 @@ describe Pio::PacketIn do
|
|
99
99
|
data: data_dump
|
100
100
|
}
|
101
101
|
end
|
102
|
+
When { packet_in.datapath_id = 0xabc }
|
102
103
|
|
104
|
+
Then { packet_in.datapath_id == 0xabc }
|
105
|
+
Then { packet_in.dpid == 0xabc }
|
103
106
|
Then { packet_in.ofp_version == 1 }
|
104
107
|
Then { packet_in.message_type == 10 }
|
105
108
|
Then { packet_in.message_length == 78 }
|
@@ -123,7 +126,10 @@ describe Pio::PacketIn do
|
|
123
126
|
data: data_dump
|
124
127
|
}
|
125
128
|
end
|
129
|
+
When { packet_in.dpid = 0xabc }
|
126
130
|
|
131
|
+
Then { packet_in.datapath_id == 0xabc }
|
132
|
+
Then { packet_in.dpid == 0xabc }
|
127
133
|
Then { packet_in.ofp_version == 1 }
|
128
134
|
Then { packet_in.message_type == 10 }
|
129
135
|
Then { packet_in.message_length == 78 }
|
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.
|
4
|
+
version: 0.14.0
|
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-02-
|
11
|
+
date: 2015-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|