Forum Discussion
Eldad_162351
Aug 10, 2014Nimbostratus
iApp to modify data-group
hello,
im trying to add a set of key and value from iApp to a data-group belonged to iRule.
my iApp template:
section x {
table y_table {
string key
string value
}
}
text {...
- Aug 12, 2014
I led you astray. The following is corrected, and works if your data-group already exists. If it doesn't exist yet, use tmsh::create. It appears that the exec is not necessary.
foreach row $::x__y_table { array set columns [join $row] tmsh::modify ltm data-group internal /Common/my_datagroup records add \{ $columns(key) \{ data $columns(value) \}\} }
Eldad_162351
Aug 12, 2014Nimbostratus
looks like im doing something wrong...
now im getting the error:
::x__y_table__key no such variable
i tried to set a new variables for the key and value before the exec and call them from the exec but still same error.
thanks for all your support, really appriciated since im new to the F5 dev...
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