class Chef::Knife::Cloud::OpenstackFloatingIpList

Public Instance Methods

before_exec_command() click to toggle source
# File lib/chef/knife/openstack_floating_ip_list.rb, line 32
def before_exec_command
  # set columns_with_info map
  @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() click to toggle source
# File lib/chef/knife/openstack_floating_ip_list.rb, line 43
def query_resource
  @service.list_addresses
end