Class: IControl::Networking::SelfIP
- Inherits:
-
Base
- Object
- Base
- IControl::Networking::SelfIP
- Defined in:
- lib/icontrol/networking/self_ip.rb,
lib/icontrol/networking.rb
Overview
The SelfIP interface enables you to work with the definitions and attributes contained in a device's Self IP.
Instance Method Summary (collapse)
-
- (Object) create(opts)
Creates this self IP addresses with extended attributes.
-
- (Object) delete_all_self_ips
Deletes all self IP addresses.
-
- (Object) delete_self_ip
Deletes this self IP addresses.
-
- (EnabledState) floating_state
Gets the floating states of this self IPs.
-
- (String) list
Gets a list of all self IPs on this device.
-
- (String) netmask
Gets the netmasks of this self IPs.
-
- (Object) set_floating_state(opts)
Sets the floating states of this self IPs.
-
- (Object) set_netmask(opts)
Sets the netmasks of this self IPs.
-
- (Object) set_unit_id(opts)
Sets the unit ids of this self IPs.
-
- (Object) set_vlan(opts)
Sets the VLANs with which this self IPs are associated.
-
- (long) unit_id
Gets the unit ids of this self IPs.
-
- (String) version
Gets the version information for this interface.
-
- (String) vlan
Gets the VLANs with which this self IPs are associated.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
- (Object) create(opts)
Creates this self IP addresses with extended attributes.
20 21 22 23 |
# File 'lib/icontrol/networking/self_ip.rb', line 20 def create(opts) check_params(opts,[:vlan_names,:netmasks,:unit_ids,:floating_states]) super end |
- (Object) delete_all_self_ips
Deletes all self IP addresses.
31 32 33 |
# File 'lib/icontrol/networking/self_ip.rb', line 31 def delete_all_self_ips super end |
- (Object) delete_self_ip
Deletes this self IP addresses.
41 42 43 |
# File 'lib/icontrol/networking/self_ip.rb', line 41 def delete_self_ip super end |
- (EnabledState) floating_state
Gets the floating states of this self IPs.
52 53 54 |
# File 'lib/icontrol/networking/self_ip.rb', line 52 def floating_state super end |
- (String) list
Gets a list of all self IPs on this device.
63 64 65 |
# File 'lib/icontrol/networking/self_ip.rb', line 63 def list super end |
- (String) netmask
Gets the netmasks of this self IPs.
74 75 76 |
# File 'lib/icontrol/networking/self_ip.rb', line 74 def netmask super end |
- (Object) set_floating_state(opts)
Sets the floating states of this self IPs. Note: If floating state is being set to enabled, then unit ID will be set to 1 by default. If floating state is being set to disabled, then unit ID will be set to 0.
118 119 120 121 |
# File 'lib/icontrol/networking/self_ip.rb', line 118 def set_floating_state(opts) check_params(opts,[:states]) super end |
- (Object) set_netmask(opts)
Sets the netmasks of this self IPs.
131 132 133 134 |
# File 'lib/icontrol/networking/self_ip.rb', line 131 def set_netmask(opts) check_params(opts,[:netmasks]) super end |
- (Object) set_unit_id(opts)
Sets the unit ids of this self IPs. Note: If unit ID is being set to 0, then floating state will be set to disabled by default. If unit ID is being set to 1 or 2, then floating state will be set to enabled.
146 147 148 149 |
# File 'lib/icontrol/networking/self_ip.rb', line 146 def set_unit_id(opts) check_params(opts,[:unit_ids]) super end |
- (Object) set_vlan(opts)
Sets the VLANs with which this self IPs are associated.
159 160 161 162 |
# File 'lib/icontrol/networking/self_ip.rb', line 159 def set_vlan(opts) check_params(opts,[:vlan_names]) super end |
- (long) unit_id
Gets the unit ids of this self IPs.
85 86 87 |
# File 'lib/icontrol/networking/self_ip.rb', line 85 def unit_id super end |
- (String) version
Gets the version information for this interface.
93 94 95 |
# File 'lib/icontrol/networking/self_ip.rb', line 93 def version super end |
- (String) vlan
Gets the VLANs with which this self IPs are associated.
104 105 106 |
# File 'lib/icontrol/networking/self_ip.rb', line 104 def vlan super end |