Forum Discussion
Nate_W_50838
Jan 29, 2009Historic F5 Account
Problem disabling pool member via pyControl
I'm trying to write a very basic python script to add a pool member to an existing pool, then disable it. My script is this:
!/usr/bin/env python
import pycontrol.pyCont...
L4L7_53191
Nimbostratus
Feb 03, 2009Glad you're working! This brings up a good point though, and it's worth explaining it a bit as it'll almost certainly affect future additions to the Utils module for pyControl. The utility functions that are added are convenience functions that will hopefully save some cycles for folks. Because of this, we try and keep them generic and flexible. The requirement is that you pass a valid "pool member" object to the function to disable the member. This allows us to pass in different objects that refer to different systems.
A possible use case would be to create a pool member object for both the active and standby systems in a pair, and make a call to each system to disable the pool member in question(and you didn't want to do a config sync). That way if a failover were to occur you'd have two systems that were at parity with respect to the pool in question.
Thanks for the post.
-Matt
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