icontrol 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/icontrol/arx.rb +38 -8
- data/lib/icontrol/arx/api.rb +1 -0
- data/lib/icontrol/arx/chassis.rb +11 -0
- data/lib/icontrol/arx/export.rb +4 -1
- data/lib/icontrol/arx/file_change_notification.rb +25 -4
- data/lib/icontrol/arx/file_server.rb +2 -0
- data/lib/icontrol/arx/namespace.rb +2 -0
- data/lib/icontrol/arx/network.rb +3 -0
- data/lib/icontrol/arx/policy.rb +3 -0
- data/lib/icontrol/arx/share.rb +2 -0
- data/lib/icontrol/arx/virtual_service.rb +3 -0
- data/lib/icontrol/arx/volume.rb +2 -0
- data/lib/icontrol/asm.rb +18 -3
- data/lib/icontrol/asm/object_params.rb +12 -6
- data/lib/icontrol/asm/policy.rb +118 -79
- data/lib/icontrol/asm/system_configuration.rb +27 -19
- data/lib/icontrol/asm/web_application.rb +74 -52
- data/lib/icontrol/asm/web_application_group.rb +33 -24
- data/lib/icontrol/base.rb +1 -0
- data/lib/icontrol/base/exception.rb +1 -0
- data/lib/icontrol/base/icontrol/local_lb/pool.rb +7 -0
- data/lib/icontrol/base/icontrol_overlay.rb +6 -0
- data/lib/icontrol/base/predeclarations.rb +5 -4
- data/lib/icontrol/base/struct.rb +6 -2
- data/lib/icontrol/common.rb +55 -4
- data/lib/icontrol/global_lb.rb +22 -3
- data/lib/icontrol/global_lb/application.rb +63 -44
- data/lib/icontrol/global_lb/data_center.rb +82 -58
- data/lib/icontrol/global_lb/dnssec_key.rb +152 -90
- data/lib/icontrol/global_lb/dnssec_zone.rb +55 -35
- data/lib/icontrol/global_lb/globals.rb +662 -430
- data/lib/icontrol/global_lb/link.rb +181 -131
- data/lib/icontrol/global_lb/monitor.rb +174 -104
- data/lib/icontrol/global_lb/pool.rb +290 -203
- data/lib/icontrol/global_lb/pool_member.rb +118 -71
- data/lib/icontrol/global_lb/region.rb +37 -25
- data/lib/icontrol/global_lb/rule.rb +53 -37
- data/lib/icontrol/global_lb/server.rb +176 -124
- data/lib/icontrol/global_lb/topology.rb +41 -27
- data/lib/icontrol/global_lb/virtual_server.rb +118 -84
- data/lib/icontrol/global_lb/wide_ip.rb +168 -117
- data/lib/icontrol/local_lb.rb +81 -10
- data/lib/icontrol/local_lb/klass.rb +233 -153
- data/lib/icontrol/local_lb/monitor.rb +158 -96
- data/lib/icontrol/local_lb/nat.rb +74 -52
- data/lib/icontrol/local_lb/node_address.rb +123 -86
- data/lib/icontrol/local_lb/pool.rb +229 -164
- data/lib/icontrol/local_lb/pool_member.rb +134 -76
- data/lib/icontrol/local_lb/profile_auth.rb +103 -75
- data/lib/icontrol/local_lb/profile_client_ssl.rb +284 -201
- data/lib/icontrol/local_lb/profile_diameter.rb +113 -71
- data/lib/icontrol/local_lb/profile_dns.rb +65 -46
- data/lib/icontrol/local_lb/profile_fast_http.rb +265 -178
- data/lib/icontrol/local_lb/profile_fast_l4.rb +283 -194
- data/lib/icontrol/local_lb/profile_ftp.rb +81 -58
- data/lib/icontrol/local_lb/profile_http.rb +701 -433
- data/lib/icontrol/local_lb/profile_http_class.rb +169 -121
- data/lib/icontrol/local_lb/profile_iiop.rb +87 -63
- data/lib/icontrol/local_lb/profile_one_connect.rb +99 -71
- data/lib/icontrol/local_lb/profile_persistence.rb +326 -203
- data/lib/icontrol/local_lb/profile_radius.rb +94 -62
- data/lib/icontrol/local_lb/profile_rtsp.rb +207 -129
- data/lib/icontrol/local_lb/profile_sctp.rb +231 -167
- data/lib/icontrol/local_lb/profile_server_ssl.rb +268 -189
- data/lib/icontrol/local_lb/profile_sip.rb +145 -99
- data/lib/icontrol/local_lb/profile_stream.rb +71 -51
- data/lib/icontrol/local_lb/profile_tcp.rb +455 -296
- data/lib/icontrol/local_lb/profile_udp.rb +109 -78
- data/lib/icontrol/local_lb/profile_user_statistic.rb +77 -46
- data/lib/icontrol/local_lb/profile_xml.rb +116 -79
- data/lib/icontrol/local_lb/ram_cache_information.rb +43 -20
- data/lib/icontrol/local_lb/rate_class.rb +523 -318
- data/lib/icontrol/local_lb/rule.rb +53 -37
- data/lib/icontrol/local_lb/snat.rb +96 -65
- data/lib/icontrol/local_lb/snat_pool.rb +54 -39
- data/lib/icontrol/local_lb/snat_pool_member.rb +22 -15
- data/lib/icontrol/local_lb/snat_translation_address.rb +94 -69
- data/lib/icontrol/local_lb/virtual_address.rb +99 -70
- data/lib/icontrol/local_lb/virtual_server.rb +358 -243
- data/lib/icontrol/lt_config.rb +8 -1
- data/lib/icontrol/lt_config/field.rb +87 -53
- data/lib/icontrol/lt_config/klass.rb +59 -43
- data/lib/icontrol/management.rb +80 -38
- data/lib/icontrol/management/ccldap_configuration.rb +218 -144
- data/lib/icontrol/management/change_control.rb +67 -41
- data/lib/icontrol/management/crldp_configuration.rb +73 -52
- data/lib/icontrol/management/crldp_server.rb +55 -39
- data/lib/icontrol/management/db_variable.rb +32 -21
- data/lib/icontrol/management/event_notification.rb +19 -8
- data/lib/icontrol/management/event_subscription.rb +121 -74
- data/lib/icontrol/management/key_certificate.rb +235 -138
- data/lib/icontrol/management/ldap_configuration.rb +249 -179
- data/lib/icontrol/management/license_administration.rb +97 -56
- data/lib/icontrol/management/named.rb +103 -67
- data/lib/icontrol/management/ocsp_configuration.rb +33 -24
- data/lib/icontrol/management/ocsp_responder.rb +294 -165
- data/lib/icontrol/management/partition.rb +42 -23
- data/lib/icontrol/management/provision.rb +73 -39
- data/lib/icontrol/management/radius_configuration.rb +85 -57
- data/lib/icontrol/management/radius_server.rb +51 -37
- data/lib/icontrol/management/resource_record.rb +163 -121
- data/lib/icontrol/management/snmp_configuration.rb +675 -390
- data/lib/icontrol/management/tacacs_configuration.rb +99 -67
- data/lib/icontrol/management/tmos_module.rb +20 -8
- data/lib/icontrol/management/user_management.rb +198 -124
- data/lib/icontrol/management/view.rb +33 -24
- data/lib/icontrol/management/zone.rb +49 -34
- data/lib/icontrol/management/zone_runner.rb +11 -7
- data/lib/icontrol/networking.rb +31 -4
- data/lib/icontrol/networking/admin_ip.rb +92 -71
- data/lib/icontrol/networking/arp.rb +41 -28
- data/lib/icontrol/networking/i_session_advertised_route.rb +47 -32
- data/lib/icontrol/networking/i_session_local_interface.rb +72 -52
- data/lib/icontrol/networking/i_session_peer_discovery.rb +105 -68
- data/lib/icontrol/networking/i_session_remote_interface.rb +105 -76
- data/lib/icontrol/networking/interfaces.rb +241 -142
- data/lib/icontrol/networking/packet_filter.rb +111 -69
- data/lib/icontrol/networking/packet_filter_globals.rb +39 -28
- data/lib/icontrol/networking/port_mirror.rb +39 -27
- data/lib/icontrol/networking/profile_gre.rb +63 -41
- data/lib/icontrol/networking/profile_ipip.rb +38 -25
- data/lib/icontrol/networking/profile_wccpgre.rb +85 -55
- data/lib/icontrol/networking/route_domain.rb +70 -44
- data/lib/icontrol/networking/route_table.rb +128 -91
- data/lib/icontrol/networking/self_ip.rb +57 -39
- data/lib/icontrol/networking/self_ip_port_lockdown.rb +34 -22
- data/lib/icontrol/networking/stp_globals.rb +115 -63
- data/lib/icontrol/networking/stp_instance.rb +166 -68
- data/lib/icontrol/networking/trunk.rb +165 -101
- data/lib/icontrol/networking/tunnel.rb +77 -52
- data/lib/icontrol/networking/vlan.rb +140 -98
- data/lib/icontrol/networking/vlan_group.rb +145 -101
- data/lib/icontrol/system.rb +70 -33
- data/lib/icontrol/system/cluster.rb +103 -81
- data/lib/icontrol/system/config_sync.rb +128 -72
- data/lib/icontrol/system/connections.rb +27 -17
- data/lib/icontrol/system/disk.rb +134 -67
- data/lib/icontrol/system/failover.rb +44 -27
- data/lib/icontrol/system/geo_ip.rb +16 -5
- data/lib/icontrol/system/inet.rb +47 -30
- data/lib/icontrol/system/internal.rb +13 -9
- data/lib/icontrol/system/services.rb +75 -42
- data/lib/icontrol/system/software_management.rb +132 -83
- data/lib/icontrol/system/statistics.rb +443 -298
- data/lib/icontrol/system/system_info.rb +137 -95
- data/lib/icontrol/web_accelerator/applications.rb +17 -10
- data/lib/icontrol/web_accelerator/policies.rb +13 -9
- data/lib/icontrol/web_accelerator/proxy_message.rb +11 -7
- data/spec/icontrol/local_lb/pool_member_spec.rb +495 -0
- data/spec/icontrol/local_lb/profile_http_class_spec.rb +514 -0
- metadata +10 -4
|
@@ -1,61 +1,71 @@
|
|
|
1
1
|
module IControl::System
|
|
2
2
|
##
|
|
3
|
-
# The Connections interface enables you to get information about a device's connections.
|
|
3
|
+
# The Connections interface enables you to get information about a device's connections.
|
|
4
|
+
# For example, use Connection interface to get a list of all active connections or
|
|
5
|
+
# to get a list of all active connections for a specific client.
|
|
4
6
|
class Connections < IControl::Base
|
|
5
7
|
|
|
6
8
|
set_id_name "connections"
|
|
7
9
|
|
|
8
10
|
class ActiveConnection < IControl::Base::Struct; end
|
|
9
|
-
class ConnectionID < IControl::Base::Struct; end
|
|
11
|
+
class ConnectionID < IControl::Base::Struct; end
|
|
12
|
+
class ActiveConnectionSequence < IControl::Base::Sequence ; end
|
|
13
|
+
class ConnectionIDSequence < IControl::Base::Sequence ; end ##
|
|
10
14
|
# Deletes this connection from the connection table.
|
|
11
|
-
# @
|
|
12
|
-
# @raise [IControl::Common::
|
|
13
|
-
# @raise [IControl::Common::
|
|
15
|
+
# @rspec_example
|
|
16
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
17
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
18
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
14
19
|
def delete_active_connection
|
|
15
20
|
super
|
|
16
21
|
end
|
|
17
22
|
|
|
18
23
|
##
|
|
19
24
|
# Deletes all active connection from the connection table.
|
|
20
|
-
# @
|
|
21
|
-
# @raise [IControl::Common::
|
|
22
|
-
# @raise [IControl::Common::
|
|
25
|
+
# @rspec_example
|
|
26
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
27
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
28
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
23
29
|
def delete_all_active_connections
|
|
24
30
|
super
|
|
25
31
|
end
|
|
26
32
|
|
|
27
33
|
##
|
|
28
34
|
# Gets the active connection in details for this connection.
|
|
35
|
+
# @rspec_example
|
|
29
36
|
# @return [ActiveConnection]
|
|
30
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
31
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
32
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
37
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
38
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
39
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
33
40
|
def active_connection
|
|
34
41
|
super
|
|
35
42
|
end
|
|
36
43
|
|
|
37
44
|
##
|
|
38
45
|
# Gets all active connection in details on the local load balancer.
|
|
46
|
+
# @rspec_example
|
|
39
47
|
# @return [ActiveConnection]
|
|
40
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
41
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
42
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
48
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
49
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
50
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
43
51
|
def all_active_connections
|
|
44
52
|
super
|
|
45
53
|
end
|
|
46
54
|
|
|
47
55
|
##
|
|
48
56
|
# Gets the list of active connection.
|
|
57
|
+
# @rspec_example
|
|
49
58
|
# @return [ConnectionID]
|
|
50
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
51
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
52
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
59
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
60
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
61
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
53
62
|
def list
|
|
54
63
|
super
|
|
55
64
|
end
|
|
56
65
|
|
|
57
66
|
##
|
|
58
67
|
# Gets the version information for this interface.
|
|
68
|
+
# @rspec_example
|
|
59
69
|
# @return [String]
|
|
60
70
|
def version
|
|
61
71
|
super
|
data/lib/icontrol/system/disk.rb
CHANGED
|
@@ -1,17 +1,43 @@
|
|
|
1
1
|
module IControl::System
|
|
2
2
|
##
|
|
3
|
-
# The Disk interface enables you to manage the disks in the system. The disk objects
|
|
3
|
+
# The Disk interface enables you to manage the disks in the system. The disk objects
|
|
4
|
+
# come in two flavors. &quot;Physical disks" are the actual hardware disk drives,
|
|
5
|
+
# which can be anything from a true hard disk to a compact flash drive to a USB flash
|
|
6
|
+
# drive. Physical disks are addressed by their serial numbers. &quot;Logical disks"
|
|
7
|
+
# are the view of the disk drives from the system's point of view, abstracting the
|
|
8
|
+
# disk itself, making all disk drives look the same whether they are a true hard disk,
|
|
9
|
+
# a flash drive, or a full disk array. In other words, a logical disk can hold one
|
|
10
|
+
# or more physical disks. Logical disks are addressed by the LogicalDisk identifier,
|
|
11
|
+
# which includes their logical name (e.g., &quot;HD2", &quot;CF1", &quot;MD1")
|
|
12
|
+
# and their chassis slot identifier. It is important to note the potentially confusing
|
|
13
|
+
# relationship between logical and physical disks and their identifiers. All physical
|
|
14
|
+
# disks can be addressed by a LogicalDisk identifier, though it is not guaranteed that
|
|
15
|
+
# all physical disks have an entry in the logical disk table. The logical disk identifier
|
|
16
|
+
# for a physical disk is dependent on the connection of the disk drive to the system,
|
|
17
|
+
# so can change if the system's disk drive configuration changes. On the other hand,
|
|
18
|
+
# all logical disks hold one or more physical disks, which can have a direct one-to-one
|
|
19
|
+
# mapping for a single disk drive or a one-to-many mapping for a disk array. To avoid
|
|
20
|
+
# problems, physical disks should be ideally addressed only by their serial numbers
|
|
21
|
+
# and logical disks only by their LogicalDisk identifiers. Addressing physical disks
|
|
22
|
+
# by their LogicalDisk identifier is supported as a convenience for any user-generated
|
|
23
|
+
# input. Be careful with these distinctions as you use this interface.
|
|
4
24
|
class Disk < IControl::Base
|
|
5
25
|
|
|
6
26
|
set_id_name "disks"
|
|
7
27
|
|
|
8
28
|
class LogicalDisk < IControl::Base::Struct; end
|
|
29
|
+
class LogicalDiskSequence < IControl::Base::Sequence ; end
|
|
30
|
+
class LogicalDiskSequenceSequence < IControl::Base::SequenceSequence ; end
|
|
31
|
+
class RAIDStatusSequence < IControl::Base::Sequence ; end
|
|
9
32
|
# An enumeration of RAID status.
|
|
10
33
|
class RAIDStatus < IControl::Base::Enumeration; end ##
|
|
11
|
-
# Adds physical disk to a set of logical disk arrays. For a clustered system, this
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
# @
|
|
34
|
+
# Adds physical disk to a set of logical disk arrays. For a clustered system, this
|
|
35
|
+
# must be run on the chassis slot holding the disk array. This only works for logical
|
|
36
|
+
# disk which represent disk arrays.
|
|
37
|
+
# @rspec_example
|
|
38
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
39
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
40
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
15
41
|
# @param [Hash] opts
|
|
16
42
|
# @option opts [String[]] :serial_numbers The serial numbers of the physical disks to add to each specified logical disk array.
|
|
17
43
|
def add_array_member(opts)
|
|
@@ -20,10 +46,16 @@ module IControl::System
|
|
|
20
46
|
end
|
|
21
47
|
|
|
22
48
|
##
|
|
23
|
-
# Adds physical disk to a set of logical disk arrays. For a clustered system, this
|
|
24
|
-
#
|
|
25
|
-
#
|
|
26
|
-
#
|
|
49
|
+
# Adds physical disk to a set of logical disk arrays. For a clustered system, this
|
|
50
|
+
# must be run on the chassis slot holding the disk array. This only works for logical
|
|
51
|
+
# disk which represent disk arrays. This method does exactly the same thing as &quot;add_array_member",
|
|
52
|
+
# except that the added physical disk are specified by their LogicalDisk identifiers,
|
|
53
|
+
# more convenient for user input than the serial numbers used in &quot;remove_array_member".
|
|
54
|
+
# It is supplied for convenience purposes only.
|
|
55
|
+
# @rspec_example
|
|
56
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
57
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
58
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
27
59
|
# @param [Hash] opts
|
|
28
60
|
# @option opts [IControl::System::Disk::LogicalDisk[]] :names The identifiers of the logical disks to add to each specified logical disk array.
|
|
29
61
|
def add_array_member_by_logical_id(opts)
|
|
@@ -32,21 +64,26 @@ module IControl::System
|
|
|
32
64
|
end
|
|
33
65
|
|
|
34
66
|
##
|
|
35
|
-
# Gets a list of physical disk that are members of a logical disk. Note that this can
|
|
67
|
+
# Gets a list of physical disk that are members of a logical disk. Note that this can
|
|
68
|
+
# be used for any type of logical disk -- single disk drives or disk arrays. However,
|
|
69
|
+
# it may not work for all physical disk logical identifiers.
|
|
70
|
+
# @rspec_example
|
|
36
71
|
# @return [String[]]
|
|
37
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
38
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
39
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
72
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
73
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
74
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
40
75
|
def array_member
|
|
41
76
|
super
|
|
42
77
|
end
|
|
43
78
|
|
|
44
79
|
##
|
|
45
|
-
# Gets RAID disk array statuses for a set of physical disk. Note: RAID status will
|
|
80
|
+
# Gets RAID disk array statuses for a set of physical disk. Note: RAID status will
|
|
81
|
+
# be RAID_STATUS_UNDEFINED if the disk is not a member of a RAID disk array (see get_physical_disk_is_array_member).
|
|
82
|
+
# @rspec_example
|
|
46
83
|
# @return [RAIDStatus]
|
|
47
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
48
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
49
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
84
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
85
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
86
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
50
87
|
# @param [Hash] opts
|
|
51
88
|
# @option opts [String] :serial_numbers The serial numbers of the disks of interest.
|
|
52
89
|
def array_status(opts)
|
|
@@ -56,10 +93,11 @@ module IControl::System
|
|
|
56
93
|
|
|
57
94
|
##
|
|
58
95
|
# Gets a list of serial numbers of disk installed for a set of disk bays.
|
|
96
|
+
# @rspec_example
|
|
59
97
|
# @return [String]
|
|
60
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
61
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
62
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
98
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
99
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
100
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
63
101
|
# @param [Hash] opts
|
|
64
102
|
# @option opts [long] :ids The identifiers for the disk bays of interest.
|
|
65
103
|
def bay_disk_serial_number(opts)
|
|
@@ -69,80 +107,93 @@ module IControl::System
|
|
|
69
107
|
|
|
70
108
|
##
|
|
71
109
|
# Gets a list of physical disk in the system, identified by serial number.
|
|
110
|
+
# @rspec_example
|
|
72
111
|
# @return [String]
|
|
73
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
74
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
75
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
112
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
113
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
114
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
76
115
|
def list
|
|
77
116
|
super
|
|
78
117
|
end
|
|
79
118
|
|
|
80
119
|
##
|
|
81
120
|
# Gets a list of disk bays in the system.
|
|
121
|
+
# @rspec_example
|
|
82
122
|
# @return [long]
|
|
83
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
84
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
85
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
123
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
124
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
125
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
86
126
|
def list_of_bays
|
|
87
127
|
super
|
|
88
128
|
end
|
|
89
129
|
|
|
90
130
|
##
|
|
91
131
|
# Gets a list of logical disk in the system.
|
|
132
|
+
# @rspec_example
|
|
92
133
|
# @return [LogicalDisk]
|
|
93
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
94
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
95
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
134
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
135
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
136
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
96
137
|
def list_of_logical_disks
|
|
97
138
|
super
|
|
98
139
|
end
|
|
99
140
|
|
|
100
141
|
##
|
|
101
|
-
# Gets device names for a set of logical disk. These are names like hda, hdb, etc.
|
|
142
|
+
# Gets device names for a set of logical disk. These are names like hda, hdb, etc.
|
|
143
|
+
# (Note: Currently, the strings are for descriptive purposes and are subject to change).
|
|
144
|
+
# @rspec_example
|
|
102
145
|
# @return [String]
|
|
103
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
104
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
105
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
146
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
147
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
148
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
106
149
|
def logical_disk_device_name
|
|
107
150
|
super
|
|
108
151
|
end
|
|
109
152
|
|
|
110
153
|
##
|
|
111
|
-
# Gets the formats for a set of logical disk. These are strings like multiboot, lvm,
|
|
154
|
+
# Gets the formats for a set of logical disk. These are strings like multiboot, lvm,
|
|
155
|
+
# etc. (Note: Currently, the strings are for descriptive purposes and are subject to
|
|
156
|
+
# change).
|
|
157
|
+
# @rspec_example
|
|
112
158
|
# @return [String]
|
|
113
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
114
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
115
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
159
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
160
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
161
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
116
162
|
def logical_disk_format
|
|
117
163
|
super
|
|
118
164
|
end
|
|
119
165
|
|
|
120
166
|
##
|
|
121
|
-
# Gets media types for a set of logical disk. These are strings like hd, cf, cft, etc.
|
|
167
|
+
# Gets media types for a set of logical disk. These are strings like hd, cf, cft, etc.
|
|
168
|
+
# (Note: Currently, the strings are for descriptive purposes and are subject to change).
|
|
169
|
+
# @rspec_example
|
|
122
170
|
# @return [String]
|
|
123
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
124
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
125
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
171
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
172
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
173
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
126
174
|
def logical_disk_media
|
|
127
175
|
super
|
|
128
176
|
end
|
|
129
177
|
|
|
130
178
|
##
|
|
131
179
|
# Gets sizes (in MiB) for a set of logical disk.
|
|
180
|
+
# @rspec_example
|
|
132
181
|
# @return [long]
|
|
133
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
134
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
135
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
182
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
183
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
184
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
136
185
|
def logical_disk_size
|
|
137
186
|
super
|
|
138
187
|
end
|
|
139
188
|
|
|
140
189
|
##
|
|
141
|
-
# Gets names for a set of physical disk. This name is part of the physical disk's LogicalDisk
|
|
190
|
+
# Gets names for a set of physical disk. This name is part of the physical disk's LogicalDisk
|
|
191
|
+
# identifier.
|
|
192
|
+
# @rspec_example
|
|
142
193
|
# @return [String]
|
|
143
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
144
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
145
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
194
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
195
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
196
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
146
197
|
# @param [Hash] opts
|
|
147
198
|
# @option opts [String] :serial_numbers The serial numbers of the disks of interest.
|
|
148
199
|
def name(opts)
|
|
@@ -151,11 +202,13 @@ module IControl::System
|
|
|
151
202
|
end
|
|
152
203
|
|
|
153
204
|
##
|
|
154
|
-
# Gets slot identifiers for a set of physical disk. The slot identifier is part of
|
|
205
|
+
# Gets slot identifiers for a set of physical disk. The slot identifier is part of
|
|
206
|
+
# the physical disk's LogicalDisk identifer.
|
|
207
|
+
# @rspec_example
|
|
155
208
|
# @return [long]
|
|
156
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
157
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
158
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
209
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
210
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
211
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
159
212
|
# @param [Hash] opts
|
|
160
213
|
# @option opts [String] :serial_numbers The serial numbers of the disks of interest.
|
|
161
214
|
def slot_id(opts)
|
|
@@ -165,17 +218,20 @@ module IControl::System
|
|
|
165
218
|
|
|
166
219
|
##
|
|
167
220
|
# Gets the version information for this interface.
|
|
221
|
+
# @rspec_example
|
|
168
222
|
# @return [String]
|
|
169
223
|
def version
|
|
170
224
|
super
|
|
171
225
|
end
|
|
172
226
|
|
|
173
227
|
##
|
|
174
|
-
# Gets states indicating whether a disk is a member of a RAID disk array for a set
|
|
228
|
+
# Gets states indicating whether a disk is a member of a RAID disk array for a set
|
|
229
|
+
# of physical disk.
|
|
230
|
+
# @rspec_example
|
|
175
231
|
# @return [boolean]
|
|
176
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
177
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
178
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
232
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
233
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
234
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
179
235
|
# @param [Hash] opts
|
|
180
236
|
# @option opts [String] :serial_numbers The serial numbers of the disks of interest.
|
|
181
237
|
def is_array_member(opts)
|
|
@@ -185,19 +241,23 @@ module IControl::System
|
|
|
185
241
|
|
|
186
242
|
##
|
|
187
243
|
# Gets an indication of whether the system is capable of RAID operations.
|
|
244
|
+
# @rspec_example
|
|
188
245
|
# @return [boolean]
|
|
189
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
190
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
191
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
246
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
247
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
248
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
192
249
|
def is_raid_capable
|
|
193
250
|
super
|
|
194
251
|
end
|
|
195
252
|
|
|
196
253
|
##
|
|
197
|
-
# Removes phyiscal disk from a set of logical disk arrays. For a clustered system,
|
|
198
|
-
#
|
|
199
|
-
#
|
|
200
|
-
# @
|
|
254
|
+
# Removes phyiscal disk from a set of logical disk arrays. For a clustered system,
|
|
255
|
+
# this must be run on the chassis slot holding the disk array. This only works for
|
|
256
|
+
# logical disk which represent disk arrays.
|
|
257
|
+
# @rspec_example
|
|
258
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
259
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
260
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
201
261
|
# @param [Hash] opts
|
|
202
262
|
# @option opts [String[]] :serial_numbers The serial numbers of the physical disks to add to each specified logical disk array.
|
|
203
263
|
def remove_array_member(opts)
|
|
@@ -206,10 +266,17 @@ module IControl::System
|
|
|
206
266
|
end
|
|
207
267
|
|
|
208
268
|
##
|
|
209
|
-
# Removes physical disk from a set of logical disk arrays. For a clustered system,
|
|
210
|
-
#
|
|
211
|
-
#
|
|
212
|
-
#
|
|
269
|
+
# Removes physical disk from a set of logical disk arrays. For a clustered system,
|
|
270
|
+
# this must be run on the chassis slot holding the disk array. This only works for
|
|
271
|
+
# logical disk which represent disk arrays. This method does exactly the same thing
|
|
272
|
+
# as &quot;remove_array_member", except that the removed physical disk are specified
|
|
273
|
+
# by their LogicalDisk identifiers, more convenient for user input than the serial
|
|
274
|
+
# numbers used in &quot;remove_array_member". It is supplied for convenience purposes
|
|
275
|
+
# only.
|
|
276
|
+
# @rspec_example
|
|
277
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
278
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
279
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
213
280
|
# @param [Hash] opts
|
|
214
281
|
# @option opts [IControl::System::Disk::LogicalDisk[]] :names
|
|
215
282
|
def remove_array_member_by_logical_id(opts)
|
|
@@ -1,45 +1,55 @@
|
|
|
1
1
|
module IControl::System
|
|
2
2
|
##
|
|
3
|
-
# The Failover interface enables you to manipulate a device's fail-over states. For
|
|
3
|
+
# The Failover interface enables you to manipulate a device's fail-over states. For
|
|
4
|
+
# example, you can get the state, active or standby, in which a device is running in
|
|
5
|
+
# a redundant configuration. You can also switch a device's state from active to standby.
|
|
4
6
|
class Failover < IControl::Base
|
|
5
7
|
|
|
6
8
|
set_id_name "nil"
|
|
7
9
|
|
|
10
|
+
class FailoverModeSequence < IControl::Base::Sequence ; end
|
|
11
|
+
class FailoverStateSequence < IControl::Base::Sequence ; end
|
|
8
12
|
# A list of fail-over modes of operation.
|
|
9
13
|
class FailoverMode < IControl::Base::Enumeration; end
|
|
10
14
|
# A list of fail-over states.
|
|
11
15
|
class FailoverState < IControl::Base::Enumeration; end ##
|
|
12
16
|
# Gets the current fail-over mode that the device is running in.
|
|
17
|
+
# @rspec_example
|
|
13
18
|
# @return [FailoverMode]
|
|
14
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
15
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
16
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
19
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
20
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
21
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
17
22
|
def failover_mode
|
|
18
23
|
super
|
|
19
24
|
end
|
|
20
25
|
|
|
21
26
|
##
|
|
22
27
|
# Gets the current fail-over state that the device is running in.
|
|
28
|
+
# @rspec_example
|
|
23
29
|
# @return [FailoverState]
|
|
24
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
25
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
26
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
30
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
31
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
32
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
27
33
|
def failover_state
|
|
28
34
|
super
|
|
29
35
|
end
|
|
30
36
|
|
|
31
37
|
##
|
|
32
|
-
# Gets the peer IP address(es) in a redundant pair. There will be a primary address
|
|
38
|
+
# Gets the peer IP address(es) in a redundant pair. There will be a primary address
|
|
39
|
+
# and possibly a secondary address. The primary will be the first entry in the returned
|
|
40
|
+
# list.
|
|
41
|
+
# @rspec_example
|
|
33
42
|
# @return [String]
|
|
34
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
35
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
36
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
43
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
44
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
45
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
37
46
|
def peer_address
|
|
38
47
|
super
|
|
39
48
|
end
|
|
40
49
|
|
|
41
50
|
##
|
|
42
51
|
# Gets the version information for this interface.
|
|
52
|
+
# @rspec_example
|
|
43
53
|
# @return [String]
|
|
44
54
|
def version
|
|
45
55
|
super
|
|
@@ -47,46 +57,53 @@ module IControl::System
|
|
|
47
57
|
|
|
48
58
|
##
|
|
49
59
|
# Checks to see if this device is part of a redundant pair.
|
|
60
|
+
# @rspec_example
|
|
50
61
|
# @return [boolean]
|
|
51
|
-
# @raise [IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
52
|
-
# @raise [IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
53
|
-
# @raise [IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
62
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
63
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
64
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
54
65
|
def is_redundant
|
|
55
66
|
super
|
|
56
67
|
end
|
|
57
68
|
|
|
58
69
|
##
|
|
59
|
-
# Restores an active-active device configuration after a failure. You can only use
|
|
60
|
-
#
|
|
61
|
-
#
|
|
62
|
-
# @
|
|
70
|
+
# Restores an active-active device configuration after a failure. You can only use
|
|
71
|
+
# this command after the DB key &quot;Failover.ManFailBack" has been created, and
|
|
72
|
+
# set to a value of &quot;enable".
|
|
73
|
+
# @rspec_example
|
|
74
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
75
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
76
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
63
77
|
def set_failback
|
|
64
78
|
super
|
|
65
79
|
end
|
|
66
80
|
|
|
67
81
|
##
|
|
68
82
|
# Sets the device to &quot;forced offline" state.
|
|
69
|
-
# @
|
|
70
|
-
# @raise [IControl::Common::
|
|
71
|
-
# @raise [IControl::Common::
|
|
83
|
+
# @rspec_example
|
|
84
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
85
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
86
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
72
87
|
def set_offline
|
|
73
88
|
super
|
|
74
89
|
end
|
|
75
90
|
|
|
76
91
|
##
|
|
77
92
|
# Sets the device to release the &quot;forced offline" state.
|
|
78
|
-
# @
|
|
79
|
-
# @raise [IControl::Common::
|
|
80
|
-
# @raise [IControl::Common::
|
|
93
|
+
# @rspec_example
|
|
94
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
95
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
96
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
81
97
|
def set_offline_release
|
|
82
98
|
super
|
|
83
99
|
end
|
|
84
100
|
|
|
85
101
|
##
|
|
86
102
|
# Sets the device to standby mode.
|
|
87
|
-
# @
|
|
88
|
-
# @raise [IControl::Common::
|
|
89
|
-
# @raise [IControl::Common::
|
|
103
|
+
# @rspec_example
|
|
104
|
+
# @raise [IControl::IControl::Common::AccessDenied] raised if the client credentials are not valid.
|
|
105
|
+
# @raise [IControl::IControl::Common::InvalidArgument] raised if one of the arguments is invalid.
|
|
106
|
+
# @raise [IControl::IControl::Common::OperationFailed] raised if an operation error occurs.
|
|
90
107
|
def set_standby
|
|
91
108
|
super
|
|
92
109
|
end
|