get_profile returning parent value, not applied value

I am calling the LocalLB::VirtualServer - get_profile method:

F5Interface.LocalLBVirtualServer.get_profile()

What I am getting back are the parent profiles for each of the HTTP and TCP Profiles. Is there any way to get the actual profile that is applied and not the parent?

PROFILE_TYPE_HTTP

PROFILE_CONTEXT_TYPE_ALL

http <---- Incorrect

PROFILE_TYPE_TCP

PROFILE_CONTEXT_TYPE_ALL

tcp <---- Incorrect

Hmm, I’m not seeing this issue on my 10.2.1 HF3 VE box:

>>> b.LocalLB.VirtualServer.get_profile(virtual_servers = ['testvip1'])
[[(LocalLB.VirtualServer.VirtualServerProfileAttribute){
   profile_type = "PROFILE_TYPE_HTTP"
   profile_context = "PROFILE_CONTEXT_TYPE_ALL"
   profile_name = "fse.http"
 }, (LocalLB.VirtualServer.VirtualServerProfileAttribute){
   profile_type = "PROFILE_TYPE_TCP"
   profile_context = "PROFILE_CONTEXT_TYPE_ALL"
   profile_name = "tcp"
 }, (LocalLB.VirtualServer.VirtualServerProfileAttribute){
   profile_type = "PROFILE_TYPE_XML"
   profile_context = "PROFILE_CONTEXT_TYPE_ALL"
   profile_name = "xml_test"
 }]]

Seeing yours work properly made me logically rethink the method…I forgot to specify the Partition.

F5Interface.ManagementPartition.set_active_partition(PartitionName);

Works great now.

Thanks!

darn partitions… :slight_smile: