Hello,
I'm writing some code that interacts with a F5 BigIP load balancer using the BigIP::iControl Perl module.
However the .pm file available is very out of date compared to the API now available so I am having to manually update the .pm with the additional functionality I need.
I've used Perl for some time now, but never done anything like this, and I am having some issue with accessing the objects that are being returned to me.
The context of this might be irrelevant, but I wanted to give some background.
I am being given the following object, but I cannot work out how I can access the values inside the second bless:
$VAR1 = bless( [ bless( { 'availability_status' => 'AVAILABILITY_STATU +S_RED', 'status_description' => 'Pool member has bee +n marked down by a monitor', 'enabled_status' => 'ENABLED_STATUS_ENABLED' }, 'LocalLB::ObjectStatus' ), bless( { 'availability_status' => 'AVAILABILITY_STATU +S_RED', 'status_description' => 'Pool member has bee +n marked down by a monitor', 'enabled_status' => 'ENABLED_STATUS_ENABLED' }, 'LocalLB::ObjectStatus' ) ], 'LocalLB::ObjectStatus[]' );
It looks a little odd to me as I was not expecting to have a bless inside another bless object.
Here is the API and Method in question https://devcentral.f5.com/wiki/iControl.LocalLB__Pool__get_member_object_status.ashx
Any help with this would be appreciated, let me know if you would like more information.
Thanks,
Darren
In reply to Object Access Issue by Darren123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |