Solved
Forum Discussion
Satoshi_Toyosa1
Jun 19, 2018Employee
As shown in the Github Issue 1436, the feature became available from SDK version 3.0.15.
To check the current version on your box, run
pip show f5-sdk
To upgrade to the latest, run
pip install --upgrade f5-sdk
A sample code for host_info:
from f5.bigip import ManagementRoot
mgmt = ManagementRoot('xx.xx.xx.xx', 'admin', 'passwd')
host = mgmt.tm.sys.host_info.load()
def recurse(dictionary, level):
for key, value in dictionary.iteritems():
if isinstance(value, dict):
print('{}{}:'.format(' '*level, key))
recurse(value, level+1)
else:
print('{} {} : {}'.format(' '*level, key, value))
recurse(host.raw, 0)