Class: IControl::System::GeoIP

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

Overview

The GeoIP interface enables you to maintain the GeoIP location database. The location database maps IP addresses to geographical locations.

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class IControl::Base

Instance Method Details

#loadObject

Loads GeoIP data files into the running configuration. The directory /shared/GeoIP is used for user files (as opposed to the information shipped with the system). The user files override the system files according to the preferences shown below. Note: You can use the upload_file method (ConfigSync interface) to get data files to the system. The system has the following order of preference when loading files. Order of precedence for IPv4 mapping: /shared/GeoIP/GeoIPCity.dat /shared/GeoIP/GeoIPRegion.dat /shared/GeoIP/GeoIP.dat /usr/share/GeoIP/F5GeoIP.dat Order of precedence for IPv6 mapping: /shared/GeoIP/GeoIPv6.dat /usr/share/GeoIP/F5GeoIPv6.dat ISP: /shared/GeoIP/GeoIPISP.dat Organization: /shared/GeoIP/GeoIPOrg.dat

Raises:

  • (IControl::IControl::Common::AccessDenied)

    raised if the client credentials are not valid.

  • (IControl::IControl::Common::InvalidArgument)

    raised if one of the arguments is invalid.

  • (IControl::IControl::Common::OperationFailed)

    raised if an operation error occurs.



31
32
33
# File 'lib/icontrol/system/geo_ip.rb', line 31

def load
  super
end

#versionString

Gets the version information for this interface.



13
14
15
# File 'lib/icontrol/system/geo_ip.rb', line 13

def version
  super
end