Handler - IPAddress
IPAddress handler generates a Search button next to the parent attribute's data field for selecting a free IP address from referred subnets. Clicking the button opens a pop-up window that provides a list of free addresses, from which a suitable address can be selected and consequently reserved.
In order to function as intended, the parent data card must must include a subnet -denoting reference attribute with the code subnet (typed exactly as indicated). The attribute must point to data card with an IP address space -denoting attribute with the code ip_space (typed exactly as indicated). The value of the IP address space attribute must be a subnet, defined using the CIDR syntax: IP_address/mask (e.g. 192.168.100.0/24). Note that multiple subnets can be defined by making the IP address space attribute multivalue.
The displayed list of free addresses contains only those IP addresses that are not used by attributes with an IPAddressHandler in data cards that refer the selected subnet. Also note that data cards that are hidden or in the trash will be ignored. Consequently, IP addresses held by such will be shown in the list of free addresses. Also note that searching for free addresses is done as root, so there is no need to change user permissions.
Subnet attribute referring to Subnet template:

In addition, with metadata, you can also generate PING command button for the selected IP.
The following tables provide information on the attribute settings and metadata requirements for IPAddress handler.
Table 1. Attribute Settings
| Handler name | Datatype |
|---|---|
IPAddress |
String |
Table 2. Optional Attribute Metadata
| Name | Value | Description |
|---|---|---|
| hasPingButton | hasPingButton | Generates a Ping button for pinging the IP address. |
| hasAddButton | hasAddButton |
Generates an In E7, if metadata is set then user is allowed to add custom addresses from outside of subnet. |
| globalMode | true/false | If set on (true) search of reserved ips is done from all IpAddressHandler attributes instead of restricting it to selected subnet. Default value is false. |
Table of Contents