include

Description

This does a “C” style include where the contents of the APL script are directly copied into the current document.

Notes

The target of include is the name of an APL script. not a file. The objects defined in f5.apl_common can be found in the /defaults/app_template_base.conf file.

Syntax

include "<include_script>"

Examples

In this example, the yesno definition is being called from f5.apl_common and used in the template.
include "/Common/f5.apl_common"
section example11 {
  yesno use_ssl
}
text {
  example11 "SSL Parameters"
  example11.use_ssl "Offload SSL? "
}

the yesno object defined in apl_common is a simple choice command:
define choice yesno display "small" {"Yes", "No"}

Resulting UI presentation:
Another example of an include from apl_common:
define section ssl_section {
    noyes offload_ssl
    optional ( offload_ssl == "Yes" )
    {
        choice cert default "default.crt" display "large" tcl { tmsh::run_proc f5.app_utils:get_ssl_certs }
        choice key default "default.key" display "large" tcl { tmsh::run_proc f5.app_utils:get_ssl_keys }
    }
}

Codeshare Entries

The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.