Class: OneVirtualRouterHelper
Constant Summary
collapse
- ALL_TEMPLATE =
{
:name => "all",
:large => "--all",
:description => "Show all template data"
}
- FLOAT =
{
:name => "float",
:large => "--float",
:description => "Makes this IP request a Floating one"
}
Instance Attribute Summary
#client
Class Method Summary
collapse
Instance Method Summary
collapse
#check_orphan, client, #create_resource, #filterflag_to_i, filterflag_to_i_desc, get_client, get_password, #group_name, #initialize, #list_pool, #list_pool_format, #list_pool_table, #list_pool_top, #list_pool_xml, #list_to_id, list_to_id_desc, name_to_id, #perform_action, #perform_actions, #print_page, #retrieve_resource, #set_client, set_endpoint, set_password, set_user, #show_resource, #start_pager, #stop_pager, table_conf, #to_id, to_id_desc, #user_name
Class Method Details
.conf_file ⇒ Object
37
38
39
|
# File 'lib/one_helper/onevrouter_helper.rb', line 37
def self.conf_file
"onevrouter.yaml"
end
|
.rname ⇒ Object
33
34
35
|
# File 'lib/one_helper/onevrouter_helper.rb', line 33
def self.rname
"VROUTER"
end
|
Instance Method Details
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# File 'lib/one_helper/onevrouter_helper.rb', line 41
def format_pool(options)
config_file = self.class.table_conf
table = CLIHelper::ShowTable.new(config_file, self) do
column :ID, "ONE identifier for the Virtual Router", :size=>4 do |d|
d["ID"]
end
column :NAME, "Name of the Virtual Router", :left, :size=>27 do |d|
d["NAME"]
end
column :USER, "Username of the Virtual Router owner", :left,
:size=>15 do |d|
helper.user_name(d, options)
end
column :GROUP, "Group of the Virtual Router", :left, :size=>15 do |d|
helper.group_name(d, options)
end
default :ID, :USER, :GROUP, :NAME
end
table
end
|