Class: IControl::Networking::Tunnel
- Inherits:
-
Base
- Object
- Base
- IControl::Networking::Tunnel
- Defined in:
- lib/icontrol/networking/tunnel.rb,
lib/icontrol/networking.rb
Overview
The Tunnel interface manages a virtual network interface that allows a network protocol to carry packets of another protocol between two endpoints. Once created, it can be used just like a VLAN in BIG-IP configurations.
Defined Under Namespace
Classes: TunnelDirection, TunnelDirectionSequence
Instance Method Summary collapse
-
#create(opts) ⇒ Object
Creates a set of tunnel.
-
#delete_all_tunnels ⇒ Object
Deletes all tunnel.
-
#delete_tunnel ⇒ Object
Deletes a set of tunnel.
-
#direction ⇒ TunnelDirection
Gets the direction for traffic flow within a set of tunnel.
-
#list ⇒ String
Gets the names of all tunnel.
-
#local_address ⇒ String
Gets the IP address for the local end of a set of tunnel.
-
#mtu ⇒ long
Gets the maximum transmission unit (MTU) for a set of tunnel.
-
#profile ⇒ String
Gets the profile specifying the tunneling protocol for a set of tunnel.
-
#remote_address ⇒ String
Gets the IP address for the remote end for a set of tunnel.
-
#set_direction(opts) ⇒ Object
Sets the direction for traffic flow within a set of tunnel.
-
#set_local_address(opts) ⇒ Object
Sets the IP address for the local end of the tunnel for a set of tunnel.
-
#set_mtu(opts) ⇒ Object
Sets the maximum transmission unit (MTU) for a set of tunnel.
-
#set_profile(opts) ⇒ Object
Sets the profile specifying the tunneling protocol for a set of tunnel.
-
#set_remote_address(opts) ⇒ Object
Sets the IP address for the remote end of a set of tunnel.
-
#set_tos(opts) ⇒ Object
Sets the Type of Service (ToS) value for the encapsulating packet’s IP header.
-
#tos ⇒ long
Gets the Type of Service (ToS) value for the encapsulating packet’s IP header.
-
#version ⇒ String
Gets the version information for this interface.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
#create(opts) ⇒ Object
Creates a set of tunnel.
22 23 24 25 |
# File 'lib/icontrol/networking/tunnel.rb', line 22 def create(opts) opts = check_params(opts,[:local_addresses,:remote_addresses,:profiles]) super(opts) end |
#delete_all_tunnels ⇒ Object
Deletes all tunnel.
33 34 35 |
# File 'lib/icontrol/networking/tunnel.rb', line 33 def delete_all_tunnels super end |
#delete_tunnel ⇒ Object
Deletes a set of tunnel.
43 44 45 |
# File 'lib/icontrol/networking/tunnel.rb', line 43 def delete_tunnel super end |
#direction ⇒ TunnelDirection
Gets the direction for traffic flow within a set of tunnel.
54 55 56 |
# File 'lib/icontrol/networking/tunnel.rb', line 54 def direction super end |
#list ⇒ String
Gets the names of all tunnel.
65 66 67 |
# File 'lib/icontrol/networking/tunnel.rb', line 65 def list super end |
#local_address ⇒ String
Gets the IP address for the local end of a set of tunnel.
76 77 78 |
# File 'lib/icontrol/networking/tunnel.rb', line 76 def local_address super end |
#mtu ⇒ long
Gets the maximum transmission unit (MTU) for a set of tunnel.
87 88 89 |
# File 'lib/icontrol/networking/tunnel.rb', line 87 def mtu super end |
#profile ⇒ String
Gets the profile specifying the tunneling protocol for a set of tunnel.
98 99 100 |
# File 'lib/icontrol/networking/tunnel.rb', line 98 def profile super end |
#remote_address ⇒ String
Gets the IP address for the remote end for a set of tunnel.
109 110 111 |
# File 'lib/icontrol/networking/tunnel.rb', line 109 def remote_address super end |
#set_direction(opts) ⇒ Object
Sets the direction for traffic flow within a set of tunnel.
140 141 142 143 |
# File 'lib/icontrol/networking/tunnel.rb', line 140 def set_direction(opts) opts = check_params(opts,[:directions]) super(opts) end |
#set_local_address(opts) ⇒ Object
Sets the IP address for the local end of the tunnel for a set of tunnel
153 154 155 156 |
# File 'lib/icontrol/networking/tunnel.rb', line 153 def set_local_address(opts) opts = check_params(opts,[:addresses]) super(opts) end |
#set_mtu(opts) ⇒ Object
Sets the maximum transmission unit (MTU) for a set of tunnel. If zero, the tunnel’s MTU is automatically set to the MTU of the tunnel’s underlying interface minus the encapsulation overhead introduced by the tunneling protocol in use for the tunnel.
168 169 170 171 |
# File 'lib/icontrol/networking/tunnel.rb', line 168 def set_mtu(opts) opts = check_params(opts,[:mtus]) super(opts) end |
#set_profile(opts) ⇒ Object
Sets the profile specifying the tunneling protocol for a set of tunnel. This profile may be an IPIP, GRE, or WCCP-GRE profile type.
182 183 184 185 |
# File 'lib/icontrol/networking/tunnel.rb', line 182 def set_profile(opts) opts = check_params(opts,[:profiles]) super(opts) end |
#set_remote_address(opts) ⇒ Object
Sets the IP address for the remote end of a set of tunnel.
195 196 197 198 |
# File 'lib/icontrol/networking/tunnel.rb', line 195 def set_remote_address(opts) opts = check_params(opts,[:addresses]) super(opts) end |
#set_tos(opts) ⇒ Object
Sets the Type of Service (ToS) value for the encapsulating packet’s IP header. The valid range is zero to 254. The special value 65535 specifies that the encapsulating packet’s IP header ToS value is set to the encapsulated packet’s IP header ToS value.
210 211 212 213 |
# File 'lib/icontrol/networking/tunnel.rb', line 210 def set_tos(opts) opts = check_params(opts,[:values]) super(opts) end |
#tos ⇒ long
Gets the Type of Service (ToS) value for the encapsulating packet’s IP header.
120 121 122 |
# File 'lib/icontrol/networking/tunnel.rb', line 120 def tos super end |
#version ⇒ String
Gets the version information for this interface.
128 129 130 |
# File 'lib/icontrol/networking/tunnel.rb', line 128 def version super end |