phut 0.6.0 → 0.6.1

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: 0ef918284af69d747340059b8a92a410fd291856
4
- data.tar.gz: 4c2ae440238a04ba768123ed7091f9fb1fed9955
3
+ metadata.gz: d3154248cc5c06ba4b45575fa25f1199e8305430
4
+ data.tar.gz: b6f4eb3d52c9ec624c539a6fcbd4026879c2e70b
5
5
  SHA512:
6
- metadata.gz: 581acfd2cff43bc01d6cb4d2aff4a4b87bc018cb0e1b85f43cd2af7d3b8e6f669e58c18fe7ba3b919223da07908cb7c7e974490749dd3a2ab1dc2bb8da3474c7
7
- data.tar.gz: 3df8308962938c722d63dcc1fb17b1a58727b390d3f346a4b3cf221644b77076ea18be7bdc2c3a0b60a18b687c2103d63561be9023d1f369e45918b3421f1031
6
+ metadata.gz: 33c9b7c2b74092e5e75b6893dd73d4f3552281b7ca6c84088c2560a492d8e5a8c96bf63ad9f3db54e31aa7c23588304c96030e82e622e77418830296fee9f6f2
7
+ data.tar.gz: b65ad6847e693199626e071f70f8db09cacf2755f073af6f9f72b75080fc99c0c8e6aac97d96eea7a7ce08e8c18b6c879f8385e220e53e1d8b6e9e446635bf46
data/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@
3
3
  ## develop (unreleased)
4
4
 
5
5
 
6
+ ## 0.6.1 (6/1/2015)
7
+ ### Bugs fixed
8
+ * Use the default port number (6653) if `port` attribute is not set.
9
+
10
+
6
11
  ## 0.6.0 (6/1/2015)
7
12
  ### Changes
8
13
  * [#21](https://github.com/trema/phut/pull/21): Use IANA-assigned port number 6653.
@@ -6,7 +6,7 @@ Feature: The vswitch DSL directive.
6
6
  vswitch { dpid '0xabc' }
7
7
  """
8
8
  When I do phut run "network.conf"
9
- Then a vswitch named "0xabc" should be running
9
+ Then a vswitch named "0xabc" (controller port = 6653) should be running
10
10
 
11
11
  Scenario: vswitch { dpid NUMBER }
12
12
  Given a file named "network.conf" with:
@@ -14,7 +14,7 @@ Feature: The vswitch DSL directive.
14
14
  vswitch { dpid 0xabc }
15
15
  """
16
16
  When I do phut run "network.conf"
17
- Then a vswitch named "0xabc" should be running
17
+ Then a vswitch named "0xabc" (controller port = 6653) should be running
18
18
 
19
19
  Scenario: vswitch { datapath_id STRING }
20
20
  Given a file named "network.conf" with:
@@ -22,7 +22,7 @@ Feature: The vswitch DSL directive.
22
22
  vswitch { datapath_id '0xabc' }
23
23
  """
24
24
  When I do phut run "network.conf"
25
- Then a vswitch named "0xabc" should be running
25
+ Then a vswitch named "0xabc" (controller port = 6653) should be running
26
26
 
27
27
  Scenario: vswitch { datapath_id NUMBER }
28
28
  Given a file named "network.conf" with:
@@ -30,7 +30,7 @@ Feature: The vswitch DSL directive.
30
30
  vswitch { datapath_id 0xabc }
31
31
  """
32
32
  When I do phut run "network.conf"
33
- Then a vswitch named "0xabc" should be running
33
+ Then a vswitch named "0xabc" (controller port = 6653) should be running
34
34
 
35
35
  Scenario: vswitch { dpid ...; port NUMBER }
36
36
  Given a file named "network.conf" with:
@@ -49,4 +49,4 @@ Feature: The vswitch DSL directive.
49
49
  vswitch('my_switch') { datapath_id '0xabc' }
50
50
  """
51
51
  When I do phut run "network.conf"
52
- Then a vswitch named "my_switch" should be running
52
+ Then a vswitch named "my_switch" (controller port = 6653) should be running
data/lib/phut/syntax.rb CHANGED
@@ -7,7 +7,7 @@ module Phut
7
7
  # The 'vswitch(name) { ...attributes... }' directive.
8
8
  class VswitchDirective
9
9
  def initialize(alias_name, &block)
10
- @attributes = { name: alias_name }
10
+ @attributes = { name: alias_name, port_number: 6653 }
11
11
  instance_eval(&block)
12
12
  end
13
13
 
data/lib/phut/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # Base module.
2
2
  module Phut
3
- VERSION = '0.6.0'
3
+ VERSION = '0.6.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhito Takamiya