Chris_82142
Jun 20, 2013Nimbostratus
Can 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 = pc.BIGIP(
hostname = "LTM",
username = "Uname",
password = "Pword ",
fromurl = True,
wsdls = ['LocalLB.NodeAddressV2'])
nodes = ['1.2.3.4']
state = ['1']
b.LocalLB.NodeAddressV2.set_session_enabled_state(nodes, state)
Regardless of what number I enter for "state" the node will disable but not enable. I feel I am overlooking something very simple and am unsure how to contrust "state". Could someone please explain what I am overlooking of provide an example (preferably in Python)
Thanks!