Forum Discussion
Chris_82142
Nimbostratus
Jun 20, 2013Can only disable a node, not enable.
Hello Everyone,
I am trying to use Pycontrol V2.0 to enable and disable a node:
!/bin/python
import sys
import pycontrol.pycontrol as pc
import suds
b = p...
Chris_82142
Nimbostratus
Jun 21, 2013Thanks a lot! I switched over to Big Suds and you're right. It's so much easier!
!/bin/python
import suds
import bigsuds
nodes = ['IP']
b = bigsuds.BIGIP(hostname = 'IP',
username = "Uname",
password = "Pword",)
disable = ["STATE_DISABLED"]
enable = ["STATE_ENABLED"]
status = b.LocalLB.NodeAddressV2.set_session_enabled_state(nodes, disable)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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