Forum Discussion
Jan 22, 2008
The issue you are having is that the add_address_class_member takes an array of structures defining the address class entries you want to add. You are passing in a scalar string. The server is looking for an array and when you pass a scalar, the array conversion doesn't find an array definition and interprets it as an empty array and essentially performs a no-op.
The add_address_class_member() method is defined as:
struct LocalLB::Class::AddressEntry {
string address;
string netmask;
};
struct LocalLB::Class::AddressClass {
string name;
AddressEntry [] members;
};
LocalLB::Class::add_address_class_member(
in LocalLB::Class::AddressClass [] class_members
);
You will need to package up and array of AddressClass items, one for each Class you are adding addresses to. Within each of those AddressClass items, you'll need to include an array of AddressEntry structures that contain the address and netmasks of the entries you want to add.
It looks like you are building the arrays, but in your call to add_address_class_member() you are passing in a character string.
Hope this helps...
-Joe