Forum Discussion
samstep
Cirrocumulus
Mar 13, 2013v11/v10 iControl get_list change in behaviour? (/Common prefix)
Dear F5 iControl API experts,
In versions 9.x and 10.x of BIG-IP the iControl methods such as "get_list()" when run for example on a Pool would return a list like this:
pool1 ...
samstep
Cirrocumulus
Mar 15, 2013Many thanks for your response Todd,
I have indeed found out that to get back to "normal" behaviour to provide compatibility I need to call:
System::Session::set_returned_path(PATH_BARE)
...at the beginning of the session.
My code was checking the list of objects on the BIG-IP against the list of created objects on several BIG-IPs with a mixture of versions 9/10 and 11. So I create a pool called "PoolABC" on 3 BIG-IP devices with different versions (v9/10/11) and when I check the list of pools v9 and v10 devices return "PoolABC", however v11 returns "/Common/PoolABC" . as a result the business logic validation fails on v11 because the returned name of the created object by the API is different form the name of the object that was created!
I understand the whole "New World" concept, however...my frustration comes from the fact that the DOCUMENTATION of get_list() method in iControl API does not mention that the returned list will contain the folder name starting from version 11. It really needs to be updated to reflect the change in the returned data
Thanks,
Sam
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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