phut 0.6.7 → 0.6.8
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/lib/phut/open_vswitch.rb +3 -1
- data/lib/phut/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 181e372bc2ac6c421b74ce2b453f79c73aa664ac
|
4
|
+
data.tar.gz: 6ff377299788daade005648046b3722e201671b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e84bbfc6ed6dbc5fd63bf0c11515c64081e7e7fc858d7fccdf54ea33fe14c3adf357f28e00ba946c29641cb12f0d6bf30e46f08aef996bdbfd2e08fc82af9335
|
7
|
+
data.tar.gz: 37c94364ab404e3926124b6305644fd31149ae23d662d1c9011d47a2fb183896106d54963ebe2a706b545960083c6a38d56d66f30b9b37de0de03890879ab158
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,11 @@
|
|
3
3
|
## develop (unreleased)
|
4
4
|
|
5
5
|
|
6
|
+
## 0.6.8 (9/9/2015)
|
7
|
+
### Changes
|
8
|
+
* Raises Phut::vSwitch::AlreadyRunning when phut failed to start vSwitch.
|
9
|
+
|
10
|
+
|
6
11
|
## 0.6.7 (9/9/2015)
|
7
12
|
### Bugs fixed
|
8
13
|
* [#27](https://github.com/trema/phut/issues/27): Change the option ordering of sysctl to work with CentOS 6.
|
data/lib/phut/open_vswitch.rb
CHANGED
@@ -6,6 +6,8 @@ require 'phut/shell_runner'
|
|
6
6
|
module Phut
|
7
7
|
# Open vSwitch controller.
|
8
8
|
class OpenVswitch
|
9
|
+
class AlreadyRunning < StandardError; end
|
10
|
+
|
9
11
|
include ShellRunner
|
10
12
|
|
11
13
|
attr_reader :dpid
|
@@ -45,7 +47,7 @@ module Phut
|
|
45
47
|
"-- set controller #{bridge_name} connection-mode=out-of-band"
|
46
48
|
sh "sudo ovs-vsctl set-fail-mode #{bridge_name} secure"
|
47
49
|
rescue
|
48
|
-
raise "Open vSwitch (dpid = #{@dpid}) is already running!"
|
50
|
+
raise AlreadyRunning, "Open vSwitch (dpid = #{@dpid}) is already running!"
|
49
51
|
end
|
50
52
|
alias_method :start, :run
|
51
53
|
# rubocop:enable MethodLength
|
data/lib/phut/version.rb
CHANGED