Keywords in Unlang
The following tables list the keywords used in Unlang. These keywords implement the "flow control" of the policies.
| Keyword | Description |
|---|---|
Exit early from a |
|
Match inside of a |
|
Do something when an |
|
Check for condition when a previous |
|
Loop over a list of attributes. |
|
Check for a condition, and execute a sub-policy if it matches. |
|
Immediately stop processing a section. |
|
Check for multiple values. |
|
Edit a list of attributes. |
The following keywords are also used in unlang. These keywords
define policies and groups of policies.
| Keyword | Description |
|---|---|
Group a series of statements. |
|
Define a load balancing group without fail-over. |
|
Define a redundant group with fail-over. |
|
Define a redundant group with fail-over and load balancing. |
The unlang statements can also refer to modules. The modules are
pre-packaged libraries that implement specific functionality, such as
connecting to SQL, LDAP, etc. The module used here is not the literal
string module. Instead, it is the name of a pre-packaged module
such as sql, or ldap, or eap.
| Keyword | Description |
|---|---|
Execute a named module, e.g., |
|
Execute a particular method of a named module, e.g., |
|
Built-in modules, e.g., |