SuggestHostName

Syntax

sub SuggestHostName

Back to top

Description

This function is called for every change request, in which the work order contains an IP address or subnet that is not associated with a hostname. It receives the change request as input, as well as the IP address/subnet and an indication of whether the IP address/subnet is a source or destination. It returns a suggested hostname for the IP address/subnet.

Back to top

Configuration

By default, this hook is not called. To configure the hook, complete the procedure below.

To enable the SuggestHostName hook, ue the generic procedure for overriding system defaults to set the configuration parameter SuggestHostNameInWorkOrder to the value 1. For details, see Override FireFlow system defaults.

Note: After setting this parameter, you must restart FireFlow for the change to take affect. See Restarting FireFlow (see Restart FireFlow).

Back to top

Input Parameters

$ticket

A Perl hash reference containing a single key called flatTicket, which points to the flat ticket representation of the change request.

For details, see Flat Ticket Examples.

$ip

The IP address or subnet that does not have an associated hostname.

$field

The IP address or subnet's function. This can have the following values:

  • Source
  • Destination

Back to top

Return Values

A suggested hostname for the IP address/subnet.

Back to top