Class: Openstack::QuantumMessager::L2l3
- Inherits:
-
Object
- Object
- Openstack::QuantumMessager::L2l3
show all
- Defined in:
- lib/openstack-quantum-messager/l2l3.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(config) ⇒ L2l3
The initialize l2l3 class should be initialized passing a hash with url and tenant: Example:
{:url => "http://localhost:9696", :tenant => "XYZ"}
13
14
15
16
|
# File 'lib/openstack-quantum-messager/l2l3.rb', line 13
def initialize(config)
@quantum_extension_url = "#{config[:url]}/v1.0/extensions/l2l3/tenants/#{config[:tenant]}"
@quantum_url = "#{config[:url]}/v1.0/tenants/#{config[:tenant]}"
end
|
Instance Attribute Details
#quantum_extension_url ⇒ Object
Returns the value of attribute quantum_extension_url.
6
7
8
|
# File 'lib/openstack-quantum-messager/l2l3.rb', line 6
def quantum_extension_url
@quantum_extension_url
end
|
#quantum_url ⇒ Object
Returns the value of attribute quantum_url.
5
6
7
|
# File 'lib/openstack-quantum-messager/l2l3.rb', line 5
def quantum_url
@quantum_url
end
|
Instance Method Details
#attachment_detail ⇒ Object
18
19
20
|
# File 'lib/openstack-quantum-messager/l2l3.rb', line 18
def attachment_detail
@attachment_detail ||= AttachmentDetail.new(@quantum_extension_url)
end
|
#dhcp ⇒ Object
34
35
36
|
# File 'lib/openstack-quantum-messager/l2l3.rb', line 34
def dhcp
@dhcp ||= Dhcp.new(@quantum_extension_url)
end
|
#dhcp_entry ⇒ Object
38
39
40
|
# File 'lib/openstack-quantum-messager/l2l3.rb', line 38
def dhcp_entry
@dhcp_entry ||= DhcpEntry.new(@quantum_extension_url)
end
|
#filter_rule ⇒ Object
30
31
32
|
# File 'lib/openstack-quantum-messager/l2l3.rb', line 30
def filter_rule
@filter_rule ||= FilterRule.new(@quantum_extension_url)
end
|
#filtered_range ⇒ Object
26
27
28
|
# File 'lib/openstack-quantum-messager/l2l3.rb', line 26
def filtered_range
@filtered_range ||= FilteredRange.new(@quantum_extension_url)
end
|
#firewall ⇒ Object
22
23
24
|
# File 'lib/openstack-quantum-messager/l2l3.rb', line 22
def firewall
@firewall ||= Firewall.new(@quantum_extension_url)
end
|
#network ⇒ Object
46
47
48
|
# File 'lib/openstack-quantum-messager/l2l3.rb', line 46
def network
@network ||= Network.new(@quantum_url)
end
|
#port ⇒ Object
42
43
44
|
# File 'lib/openstack-quantum-messager/l2l3.rb', line 42
def port
@port ||= Port.new(@quantum_url)
end
|