Module: XClarityClient::Mixins::NodeMixin
- Included in:
- Client
- Defined in:
- lib/xclarity_client/mixins/node_mixin.rb
Overview
Exposes NodeManagement features
Instance Method Summary collapse
- #blink_loc_led(uuid = '', name = 'Identify') ⇒ Object
- #disable_media_mount_support_thinkserver(uuid = '') ⇒ Object
- #discover_nodes(opts = {}) ⇒ Object
- #enable_media_mount_support_thinkserver(uuid = '') ⇒ Object
- #fetch_nodes(uuids = nil, include_attributes = nil, exclude_attributes = nil) ⇒ Object
- #mount_media_thinkserver(uuid, opts) ⇒ Object
- #mount_media_thinksystem(uuid, opts) ⇒ Object
- #power_off_node(uuid = '') ⇒ Object
- #power_off_node_now(uuid = '') ⇒ Object
- #power_on_node(uuid = '') ⇒ Object
- #power_restart_node(uuid = '') ⇒ Object
- #power_restart_node_controller(uuid = '') ⇒ Object
- #power_restart_node_now(uuid = '') ⇒ Object
- #power_restart_node_to_setup(uuid = '') ⇒ Object
- #remove_all_mounted_medias_thinksystem(uuid = '') ⇒ Object
- #retrieve_mounted_media_details(uuid = '') ⇒ Object
- #turn_off_loc_led(uuid = '', name = 'Identify') ⇒ Object
- #turn_on_loc_led(uuid = '', name = 'Identify') ⇒ Object
- #unmount_media_thinkserver(uuid, media_type = '') ⇒ Object
- #unmount_media_thinksystem(uuid, media_uid = '') ⇒ Object
Instance Method Details
#blink_loc_led(uuid = '', name = 'Identify') ⇒ Object
20 21 22 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 20 def blink_loc_led(uuid = '', name = 'Identify') node_management.set_loc_led_state(uuid, 'Blinking', name) end |
#disable_media_mount_support_thinkserver(uuid = '') ⇒ Object
68 69 70 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 68 def disable_media_mount_support_thinkserver(uuid = '') node_management.disable_media_mount_support(uuid) end |
#discover_nodes(opts = {}) ⇒ Object
6 7 8 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 6 def discover_nodes(opts = {}) node_management.fetch_all(opts) end |
#enable_media_mount_support_thinkserver(uuid = '') ⇒ Object
64 65 66 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 64 def enable_media_mount_support_thinkserver(uuid = '') node_management.enable_media_mount_support(uuid) end |
#fetch_nodes(uuids = nil, include_attributes = nil, exclude_attributes = nil) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 10 def fetch_nodes(uuids = nil, include_attributes = nil, exclude_attributes = nil) node_management.get_object( uuids, include_attributes, exclude_attributes ) end |
#mount_media_thinkserver(uuid, opts) ⇒ Object
76 77 78 79 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 76 def mount_media_thinkserver(uuid, opts) validate_mount_media_params(opts, 'thinkserver') node_management.mount_media(uuid, opts) end |
#mount_media_thinksystem(uuid, opts) ⇒ Object
81 82 83 84 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 81 def mount_media_thinksystem(uuid, opts) validate_mount_media_params(opts) node_management.mount_media(uuid, opts) end |
#power_off_node(uuid = '') ⇒ Object
36 37 38 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 36 def power_off_node(uuid = '') node_management.set_power_state(uuid, :powerOffSoftGraceful) end |
#power_off_node_now(uuid = '') ⇒ Object
40 41 42 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 40 def power_off_node_now(uuid = '') node_management.set_power_state(uuid, :powerOff) end |
#power_on_node(uuid = '') ⇒ Object
32 33 34 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 32 def power_on_node(uuid = '') node_management.set_power_state(uuid, :powerOn) end |
#power_restart_node(uuid = '') ⇒ Object
44 45 46 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 44 def power_restart_node(uuid = '') node_management.set_power_state(uuid, :powerCycleSoftGrace) end |
#power_restart_node_controller(uuid = '') ⇒ Object
52 53 54 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 52 def power_restart_node_controller(uuid = '') node_management.set_bmc_power_state(uuid, :restart) end |
#power_restart_node_now(uuid = '') ⇒ Object
48 49 50 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 48 def power_restart_node_now(uuid = '') node_management.set_power_state(uuid, :powerCycleSoft) end |
#power_restart_node_to_setup(uuid = '') ⇒ Object
56 57 58 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 56 def power_restart_node_to_setup(uuid = '') node_management.set_power_state(uuid, :bootToF1) end |
#remove_all_mounted_medias_thinksystem(uuid = '') ⇒ Object
72 73 74 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 72 def remove_all_mounted_medias_thinksystem(uuid = '') node_management.remove_all_mounted_medias(uuid) end |
#retrieve_mounted_media_details(uuid = '') ⇒ Object
60 61 62 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 60 def retrieve_mounted_media_details(uuid = '') node_management.retrieve_mounted_media_details(uuid) end |
#turn_off_loc_led(uuid = '', name = 'Identify') ⇒ Object
28 29 30 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 28 def turn_off_loc_led(uuid = '', name = 'Identify') node_management.set_loc_led_state(uuid, 'Off', name) end |
#turn_on_loc_led(uuid = '', name = 'Identify') ⇒ Object
24 25 26 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 24 def turn_on_loc_led(uuid = '', name = 'Identify') node_management.set_loc_led_state(uuid, 'On', name) end |
#unmount_media_thinkserver(uuid, media_type = '') ⇒ Object
86 87 88 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 86 def unmount_media_thinkserver(uuid, media_type = '') node_management.unmount_media_thinkserver(uuid, media_type) end |
#unmount_media_thinksystem(uuid, media_uid = '') ⇒ Object
90 91 92 |
# File 'lib/xclarity_client/mixins/node_mixin.rb', line 90 def unmount_media_thinksystem(uuid, media_uid = '') node_management.unmount_media_thinksystem(uuid, media_uid) end |