For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

scottjk2's avatar
scottjk2
Icon for Nimbostratus rankNimbostratus
Apr 25, 2018

Add existing member to pool using icontrol, pycontrol, bigip.

I'm trying to add an existing member to a pool. Using icontrol.LocalLP.Pool.add_member_v2() fails because the member I'm trying to add has the same ip address as an existing node. I either need to be able to add an existing member to a pool, OR I need to be able to update the name field when adding a member.

 

code used that fails because address is already used:

 

member.address = address
member.port = port
members_seq.items.append(member)
bigIP.LocalLB.Pool.add_member_v2(pool_names=[pool_name], members=[members_seq])

How can I add an existing node to be a member in a pool? OR how can I update the name field of a member?

 

1 Reply

  • I found my answer. Wasn't in the documentation, but trial and error for a few hours helped.

     

    When using add_member_v2() for the member.address you can put the name of the previously created node, and it will add that node instead of trying to create a new node with the same ip.