Class: Chef::Knife::Cloud::OpenstackFloatingIpList
Instance Method Summary
collapse
included
#create_service_instance, #instance_addresses, #primary_network_ip_address, #primary_private_ip_address, #primary_public_ip_address, #validate!
Instance Method Details
#before_exec_command ⇒ Object
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/chef/knife/openstack_floating_ip_list.rb', line 32
def before_exec_command
@columns_with_info = [
{ label: "ID", key: "id" },
{ label: "Instance ID", key: "instance_id" },
{ label: "IP Address", key: "ip" },
{ label: "Fixed IP", key: "fixed_ip" },
{ label: "Floating IP Pool", key: "pool" },
]
end
|
#query_resource ⇒ Object
43
44
45
|
# File 'lib/chef/knife/openstack_floating_ip_list.rb', line 43
def query_resource
@service.list_addresses
end
|