Forum Discussion
iApp to modify data-group
- 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) \}\} }
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) \}\}
}
- Fred_Slater_856Aug 12, 2014Historic F5 Account(Wiki formatting did not show it, but the "array set" and "tmsh::modify" commands must be on separate lines.)
- Ryan77777May 02, 2018Altocumulus
When you delete the iApp, how does the entry get removed from the datagroup? Is there a way to program that into iApp as part of the decomm process?
- Fred_Slater_856May 03, 2018Historic F5 Account
Is doesn't get removed, and no, unfortunately the iApp framework has no hooks for decomm code.
Recent Discussions
Related Content
* 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