Forum Discussion
Greg_33558
Nimbostratus
Jun 23, 2015Equivalent of TCL {*} list expansion for iRules?
iRules (LTM 11.6 HF4) don't appear to support TCL list expansion e.g. {*} or {expand}. I'm trying to concatenate two lists, and the default behavior of lappend is to leave the appended list unexpand...
gowenfawr
Nimbostratus
Jun 23, 2015I ended up using concat as the most efficient method from Concatenating Lists:
set http_headers [concat {host content-length content-type referer} \
[class lookup more_headers config-datagroup]]
This tested out properly in cases where more_headers was unset, set but empty, and set with values.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects