Several months ago I wrote up the v10 formatting for internal and external datagroups: iRules Data Group Formatting Rules. In v11, however, there is a change to the format of the internal data group ...
In case you want to work with network address type external datagroups you may want to use the following structures:
Key definition options for host addresses (no quotes used in key definition):
host 10.21.21.21
network 10.22.22.22 prefixlen 32
network 10.23.23.23 mask 255.255.255.255
Key definition options for network addresses (no quotes used in key definition):
network 10.24.24.0 prefixlen 24
network 10.25.25.0 mask 255.255.255.0
To add a value to a key the following syntax applies (double quotes used for argument definition):
host 10.21.21.21 := "host 21",
network 10.22.22.22 prefixlen 32 := "network 22",
Further notes:
- trailing comma in last line is optional
- line feed between records is optional (all records can be put in a single line as the comma is used as record separator)