v11: iRules Data Group Updates
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 ...
Updated Oct 02, 2023
Version 3.0JRahm
Admin
Joined January 20, 2005
hooleylist
Dec 29, 2011Cirrostratus
See this post for details on external file data groups in v11:
http://devcentral.f5.com/tabid/53/aft/1184918/Default.aspx
In v11 to use an external file, you need to import it first. Here are the steps:
1. Create a text file containing the data group contents. Here is a sample string data group file:
"name1" := "value1",
"name2" := "value2",
"name3" := "value3",
2. If you're on Windows, use a utility like dos2unix.exe to convert the line endings from CRLF to LF (https://encrypted.google.com/search?q=dos2unix.exe). If you don't do this, you will get an error on import:
01070627:3: The string data group external file (/config/filestore/.stage_d/55_d/Common_d/data_group_d/:Common:name_value_external_dg_1) has an invalid format, line: 2.
3. Navigate to System | File Management | Data Group File List | Import
4. Specify a filename. Example:
File Name: C:\tmp\name_value_external_dg.dos.txt
Name: name_value_external_dg
File Contents: string
Key / Value Pair Seperator: =:
5. Navigate to Local Traffic | iRules | Data Group List | Create
6. Specify a data group name. Example:
Name: name_value_external_dg
Type: External (File)
File Name: name_value_external_dg
Aaron