Forum Discussion
Brandon_Lay_104
Jan 14, 2009Nimbostratus
Awesome. that answers a lot of questions. However, I'm actually trying to deal with Data Groups of type Address and thus having difficulty adding a LocalLBClassAddressEntry. I only need to add host entries, not network addresses.
I've gotten thus far...
Begin
$Class = (Get-F5.iControl).LocalLBClass
$AddressClass = New-Object -typename iControl.LocalLBClassAddressClass
$AddressClass.name = "MyAddressGroup"
Here is where I get my ToString error....
$AddressClass.members = ("10.100.100.1")
(Also) If I change it to the following, it seems to want
a network address. Not a host address.
$AddressClass.members = (10.100.100.1)
then presumably I would do this...?
$Class.add_address_class_member(,$AddressClass)
and when I do the following, it just tells me I get
the member is {iControl.LocalLBClassAddressEntry}
rather than the actual member entry
$Class.get_address_class((,"MyAddressGroup"))
End
Help!
-Brandon