smp_86112
Feb 17, 2011Cirrostratus
Issue with LocalLB.VirtualServer.set_connection_mirror_state
It appears there may be a bug (?) in the LocalLB.VirtualServer.set_connection_mirror_state API. I'm running 10.2.0 (base). It seems that connection mirroring is Enabled regardless of what EnabledState[] value is passed. Consider the following Perl code:
my $soapResponse = $Virtual->get_connection_mirror_state(SOAP::Data->name(virtual_servers => ["test_virtual"]));
my $connection_mirrored_state = $soapResponse->result->[0];
print $connection_mirrored_state . "\n";$soapResponse = $Virtual->set_connection_mirror_state(SOAP::Data->name(virtual_servers => ["test_virtual"]),
SOAP::Data->name(states => ["FRED"])
);$soapResponse = $Virtual->get_connection_mirror_state(SOAP::Data->name(virtual_servers => ["test_virtual"]));
$connection_mirrored_state = $soapResponse->result->[0];
print $connection_mirrored_state . "\n";
Here is the output:
[root@linux ltm] ./test.pl
STATE_DISABLED
STATE_ENABLED
So setting the "states" value to "FRED" enables connection mirroring on the virtual. In fact, setting the value to STATE_DISABLED enables connection mirroring - there is no way to turn it off. Can anyone else validate?