Class: IControl::LocalLB::NAT
- Inherits:
-
Base
- Object
- Base
- IControl::LocalLB::NAT
- Defined in:
- lib/icontrol/local_lb/nat.rb,
lib/icontrol/local_lb.rb
Overview
The NAT interface enables you to work with the statistics and definitions contained in a local load balancer’s network address translations (NAT). For example, use the NAT interface to both get and set the NAT statistics and attributes of a local load balancer.
Defined Under Namespace
Classes: NATDefinition, NATDefinitionSequence, NATStatisticEntry, NATStatisticEntrySequence, NATStatistics
Instance Method Summary collapse
-
#all_statistics ⇒ NATStatistics
Gets statistics for all NATs.
-
#arp_state ⇒ EnabledState
Gets the ARP states for this NATs.
-
#create(opts) ⇒ Object
Creates this NATs.
-
#delete_all_nats ⇒ Object
Deletes all NATs.
-
#delete_nat ⇒ Object
Deletes this NATs.
-
#enabled_state ⇒ EnabledState
Gets the states of this NAT addresses.
-
#list ⇒ NATDefinition
Gets a sequence of all NAT definitions.
-
#reset_statistics ⇒ Object
Resets statistics for a NAT.
-
#set_arp_state(opts) ⇒ Object
Sets the ARP states for this NATs.
-
#set_enabled_state(opts) ⇒ Object
Sets the state for a list of NAT addresses.
-
#set_unit_id(opts) ⇒ Object
Sets the Unit IDs for this NATs.
-
#set_vlan(opts) ⇒ Object
Adds VLANSs to the list of VLANs on which access to this NATs is disabled.
-
#statistics ⇒ NATStatistics
Gets statistics for a sequence of NATs.
-
#unit_id ⇒ long
Gets the controller to which this NATs apply in an active-active, redundant load balancer configuration.
-
#version ⇒ String
Gets the version information for this interface.
-
#vlan ⇒ VLANFilterList
Gets the lists of VLANs on which access to this NATs is disabled.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
#all_statistics ⇒ NATStatistics
Gets statistics for all NATs.
56 57 58 |
# File 'lib/icontrol/local_lb/nat.rb', line 56 def all_statistics super end |
#arp_state ⇒ EnabledState
Gets the ARP states for this NATs.
67 68 69 |
# File 'lib/icontrol/local_lb/nat.rb', line 67 def arp_state super end |
#create(opts) ⇒ Object
Creates this NATs.
24 25 26 27 |
# File 'lib/icontrol/local_lb/nat.rb', line 24 def create(opts) opts = check_params(opts,[:unit_ids,:vlans]) super(opts) end |
#delete_all_nats ⇒ Object
Deletes all NATs.
35 36 37 |
# File 'lib/icontrol/local_lb/nat.rb', line 35 def delete_all_nats super end |
#delete_nat ⇒ Object
Deletes this NATs.
45 46 47 |
# File 'lib/icontrol/local_lb/nat.rb', line 45 def delete_nat super end |
#enabled_state ⇒ EnabledState
Gets the states of this NAT addresses.
78 79 80 |
# File 'lib/icontrol/local_lb/nat.rb', line 78 def enabled_state super end |
#list ⇒ NATDefinition
Gets a sequence of all NAT definitions.
89 90 91 |
# File 'lib/icontrol/local_lb/nat.rb', line 89 def list super end |
#reset_statistics ⇒ Object
Resets statistics for a NAT.
141 142 143 |
# File 'lib/icontrol/local_lb/nat.rb', line 141 def reset_statistics super end |
#set_arp_state(opts) ⇒ Object
Sets the ARP states for this NATs.
153 154 155 156 |
# File 'lib/icontrol/local_lb/nat.rb', line 153 def set_arp_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_enabled_state(opts) ⇒ Object
Sets the state for a list of NAT addresses.
166 167 168 169 |
# File 'lib/icontrol/local_lb/nat.rb', line 166 def set_enabled_state(opts) opts = check_params(opts,[:states]) super(opts) end |
#set_unit_id(opts) ⇒ Object
Sets the Unit IDs for this NATs.
179 180 181 182 |
# File 'lib/icontrol/local_lb/nat.rb', line 179 def set_unit_id(opts) opts = check_params(opts,[:unit_ids]) super(opts) end |
#set_vlan(opts) ⇒ Object
Adds VLANSs to the list of VLANs on which access to this NATs is disabled.
192 193 194 195 |
# File 'lib/icontrol/local_lb/nat.rb', line 192 def set_vlan(opts) opts = check_params(opts,[:vlans]) super(opts) end |
#statistics ⇒ NATStatistics
Gets statistics for a sequence of NATs.
100 101 102 |
# File 'lib/icontrol/local_lb/nat.rb', line 100 def statistics super end |
#unit_id ⇒ long
Gets the controller to which this NATs apply in an active-active, redundant load balancer configuration.
112 113 114 |
# File 'lib/icontrol/local_lb/nat.rb', line 112 def unit_id super end |
#version ⇒ String
Gets the version information for this interface.
120 121 122 |
# File 'lib/icontrol/local_lb/nat.rb', line 120 def version super end |
#vlan ⇒ VLANFilterList
Gets the lists of VLANs on which access to this NATs is disabled.
131 132 133 |
# File 'lib/icontrol/local_lb/nat.rb', line 131 def vlan super end |