Class: IControl::System::ConnectionInformation

Inherits:
Base::Struct
  • Object
show all
Defined in:
lib/icontrol/system.rb,
lib/icontrol/system.rb

Overview

Connection information for the system. This contains the local and remote addresses used to connect to the system when using a method that returns this structure. Normally a client would know the "local“ address on which it connected to the system, but if network translation changes the destination address of the system, this method can inform the client of the translation without the client having to code the mapping. This is designed to address the scenario in which the system is behind a virtual address or similar and the client needs to learn, for example, whether an address matches the cluster address.

Instance Attribute Summary collapse

Instance Attribute Details

#localIControl::Common::IPPortDefinition

The address and port on which the system was contacted.

Returns:


152
153
154
# File 'lib/icontrol/system.rb', line 152

def local
  @local
end

#remoteIControl::Common::IPPortDefinition

The address and port of the client.

Returns:


152
153
154
# File 'lib/icontrol/system.rb', line 152

def remote
  @remote
end