Forum Discussion
Jim_Gore_43214
Nimbostratus
Oct 03, 2006LocalLB.ProfileStream.set_target_string ??
Hello,
I have the following perl subroutine that I am testing to set the target in a stream profile:
sub setTarget()
{
push (@profileName, "ocm_reject_stream");
$targetValue = "\@test1\@test2\@";
$defaultFlag = FALSE;
$newTarget =
{
value => $targetValue,
default_flag => $defaultFlag
};
$soapResponse = $LocalLBProfileStream->set_target_string
(
SOAP::Data->name(profile_names => [@profileName]),
SOAP::Data->name(targets => [$newTarget])
);
&checkResponse($soapResponse);
}
When I run this I don't get any errors but the stream profile's target is not replaced but is reset to nothing.
Any help would be greatly appreciated!
Jim
- Ahh, another perl boolean question. I'll have to put a tech tip up for this one.
... $newTarget = { value => $targetValue, default_flag => 0 };
- Jim_Gore_43214
Nimbostratus
Thanks Joe!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects