openstack-quantum-client 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/openstack-quantum-client/l2l3/dhcp_entry.rb +2 -2
- data/lib/openstack-quantum-client/version.rb +1 -1
- data/spec/{openstack-quantum-messager → openstack-quantum-client}/l2l3/attachment_detail_spec.rb +0 -0
- data/spec/{openstack-quantum-messager → openstack-quantum-client}/l2l3/dhcp_entry_spec.rb +3 -3
- data/spec/{openstack-quantum-messager → openstack-quantum-client}/l2l3/dhcp_spec.rb +0 -0
- data/spec/{openstack-quantum-messager → openstack-quantum-client}/l2l3/filter_rule_spec.rb +0 -0
- data/spec/{openstack-quantum-messager → openstack-quantum-client}/l2l3/filtered_range_spec.rb +0 -0
- data/spec/{openstack-quantum-messager → openstack-quantum-client}/l2l3/firewall_spec.rb +0 -0
- data/spec/{openstack-quantum-messager → openstack-quantum-client}/l2l3/network_spec.rb +0 -0
- data/spec/{openstack-quantum-messager → openstack-quantum-client}/l2l3/port_spec.rb +0 -0
- data/spec/{openstack-quantum-messager → openstack-quantum-client}/l2l3_spec.rb +0 -0
- data/spec/{openstack_quantum_messager_spec.rb → openstack_quantum_client_spec.rb} +0 -0
- metadata +18 -18
@@ -6,10 +6,10 @@ module Openstack
|
|
6
6
|
@quantum_url = "#{quantum_url}/dhcp_entries.json"
|
7
7
|
end
|
8
8
|
|
9
|
-
def create(address, mac)
|
9
|
+
def create(address, mac, name)
|
10
10
|
post_to_quantum(
|
11
11
|
@quantum_url,
|
12
|
-
{"dhcp_entry" => {"mac" => mac, "address" => address}}
|
12
|
+
{"dhcp_entry" => {"mac" => mac, "address" => address, "name" => name}}
|
13
13
|
)
|
14
14
|
end
|
15
15
|
end
|
data/spec/{openstack-quantum-messager → openstack-quantum-client}/l2l3/attachment_detail_spec.rb
RENAMED
File without changes
|
@@ -5,7 +5,7 @@ describe Openstack::QuantumClient::DhcpEntry do
|
|
5
5
|
before do
|
6
6
|
config = {:url => "http://localhost:9696", :tenant => "XYZ"}
|
7
7
|
@client = Openstack::QuantumClient::L2l3.new(config)
|
8
|
-
@dhcp_entry_info = {"dhcp_entry" => {"mac" => "a4:ba:db:05:6e:f8", "address" => "192.168.3.4"}}
|
8
|
+
@dhcp_entry_info = {"dhcp_entry" => {"mac" => "a4:ba:db:05:6e:f8", "address" => "192.168.3.4", "name" => "machine0001"}}
|
9
9
|
end
|
10
10
|
|
11
11
|
it "should generate the correct json syntax for dhcp inclusion" do
|
@@ -15,11 +15,11 @@ describe Openstack::QuantumClient::DhcpEntry do
|
|
15
15
|
:body => @dhcp_entry_info.to_json,
|
16
16
|
:headers => {"Content-Type" => "application/json"}
|
17
17
|
)
|
18
|
-
@client.dhcp_entry.create("192.168.3.4", "a4:ba:db:05:6e:f8")
|
18
|
+
@client.dhcp_entry.create("192.168.3.4", "a4:ba:db:05:6e:f8", "machine0001")
|
19
19
|
end
|
20
20
|
|
21
21
|
it "should return the dhcp uuid" do
|
22
|
-
dhcp_entry_info = @client.
|
22
|
+
dhcp_entry_info = @client.dhcp_entry.create("dhcp1", "192.168.3.4", "machine0001")
|
23
23
|
dhcp_entry_info.should_not be_nil
|
24
24
|
dhcp_entry_info["id"].should match(/\w{8}-\w{4}-\w{4}-\w{4}-\w{12}/)
|
25
25
|
end
|
File without changes
|
File without changes
|
data/spec/{openstack-quantum-messager → openstack-quantum-client}/l2l3/filtered_range_spec.rb
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstack-quantum-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-02-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
17
|
-
requirement: &
|
17
|
+
requirement: &19845920 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *19845920
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rspec
|
28
|
-
requirement: &
|
28
|
+
requirement: &19845280 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *19845280
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: fakeweb
|
39
|
-
requirement: &
|
39
|
+
requirement: &19844260 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *19844260
|
48
48
|
description: A simple gem to deal with openstack quantum
|
49
49
|
email:
|
50
50
|
- pothix@pothix.com
|
@@ -57,16 +57,16 @@ files:
|
|
57
57
|
- ./README.markdown
|
58
58
|
- ./openstack-quantum-client-0.1.2.gem
|
59
59
|
- ./spec/spec_helper.rb
|
60
|
-
- ./spec/
|
61
|
-
- ./spec/openstack-quantum-
|
62
|
-
- ./spec/openstack-quantum-
|
63
|
-
- ./spec/openstack-quantum-
|
64
|
-
- ./spec/openstack-quantum-
|
65
|
-
- ./spec/openstack-quantum-
|
66
|
-
- ./spec/openstack-quantum-
|
67
|
-
- ./spec/openstack-quantum-
|
68
|
-
- ./spec/openstack-quantum-
|
69
|
-
- ./spec/
|
60
|
+
- ./spec/openstack-quantum-client/l2l3_spec.rb
|
61
|
+
- ./spec/openstack-quantum-client/l2l3/dhcp_entry_spec.rb
|
62
|
+
- ./spec/openstack-quantum-client/l2l3/filtered_range_spec.rb
|
63
|
+
- ./spec/openstack-quantum-client/l2l3/network_spec.rb
|
64
|
+
- ./spec/openstack-quantum-client/l2l3/firewall_spec.rb
|
65
|
+
- ./spec/openstack-quantum-client/l2l3/filter_rule_spec.rb
|
66
|
+
- ./spec/openstack-quantum-client/l2l3/dhcp_spec.rb
|
67
|
+
- ./spec/openstack-quantum-client/l2l3/port_spec.rb
|
68
|
+
- ./spec/openstack-quantum-client/l2l3/attachment_detail_spec.rb
|
69
|
+
- ./spec/openstack_quantum_client_spec.rb
|
70
70
|
- ./Gemfile
|
71
71
|
- ./Rakefile
|
72
72
|
- ./lib/openstack-quantum-client.rb
|