Forum Discussion

fanghe_315215's avatar
fanghe_315215
Icon for Altocumulus rankAltocumulus
Nov 10, 2017

How to configure data-group item via Pyhon?

import urllib3 from f5.bigip import ManagementRoot from f5.bigip import Ltm urllib3.disable_warnings() mgmt = ManagementRoot("10.16.0.11", "admin", "t&v'6%>D{Gb>^KB") print(mgmt) ltm = mgmt.tm.ltm ...
  • fanghe_315215's avatar
    Nov 11, 2017
    data_collection = ltm.data_group.internals.get_collection()
    trustadditem = ltm.data_group.internals.internal.load(name='trustedAddresses', partition='Common')
    trustaddrecords = trustadditem.records
    for i in trustaddrecords:
        print(i)