Forum Discussion

mhite_60883's avatar
mhite_60883
Icon for Cirrocumulus rankCirrocumulus
Jan 26, 2012

V11 friendly way to see partition list

I'm trying to understand how I should be working with partitions with V11 via the API. The documentation says Management.Partition is deprecated for V11. However, there doesn't appear to be any other way to retrieve folders that are actually management partitions without using Management.Partition.get_partition_list().

 

 

>>> b = f5_build_bigip_object("1.1.1.1", "test", "test", ['Management.Folder', 'Management.Partition'])

 

>>> b.Management.Folder.get_list()

 

[/Common/shared]

 

 

>>> b.Management.Partition.get_partition_list()

 

[(Management.Partition.AuthZPartition){

 

partition_name = "Common"

 

description = None

 

}, (Management.Partition.AuthZPartition){

 

partition_name = "test"

 

description = None

 

}]

 

 

Can someone perhaps point me in the right direction?

 

 

Thanks.

 

1 Reply

  • Sorry gang, disregard! Confused myself. ;) Looks like old partition behavior was to list all partitions starting at / when you do a Management.Folder.get_list(), whereas Management.Folder.get_list() is going to anchor itself to /Common as a starting point unless you explicitly set something else. So you need to:

     

     

    >>> b.System.Session.set_active_folder(folder="/")

     

    >>> b.Management.Folder.get_list()

     

    [/, /Common, /test, /test-failover]