Forum Discussion
sdkarthik3591_2
Nimbostratus
Feb 05, 2016enable/disable at Node level and not pool level
Hi,
Does anybody know or have code to enable and disable a server at node level(not pool level) in java using icontrol?
1 Reply
- L4L7_53191
Nimbostratus
I'm very interested in doing this, although I'll need to speak with my friends over at f5 again - I've brought this up before, and I'd like to revisit it again. Note that when I wrote pyControl I was an employee at f5, and I consider it to be f5 property. So I'll need to chat with a few folks over there about it. - L4L7_53191
Nimbostratus
Oh, and what is the issue with the setup.py that you found? Can you send me your changes? - Radomir_Dopiera
Nimbostratus
Whether it is the property of F5 or not should not matter, as it is released under the GPL license. Of course I understand that it wouldn't be very nice to just use that license without talking to them first.from setuptools import setup setup( name='pycontrol', description='Library for F5 iControl API', long_description="""pyControl is a Python-based library that integrates with F5's BIG-IP iControl management API.""", version='2.0.1r86', license='GPL', url='http://devcentral.f5.com/Default.aspx?tabid=149', keywords='iControl F5 API', py_modules=['pycontrol'], install_requires=['distribute', 'suds>=0.3.9'], platforms='any', classifiers=[ 'Operating System :: OS Independent', 'Programming Language :: Python', ], )
- Jestin_47598
Nimbostratus
Any updates here? I would really like to see pycontrol in pypi. As the OP stated, I'm also happy to publish it myself if needed.
- L4L7_53191
Nimbostratus
It's not on pypi, but I've recently put it up on github: https://github.com/mcauthorn/pycontrol. I'll probably merge the patch above into setup.py as well, so you should be able to install it via pip and pointing it to the github uri. - L4L7_53191
Nimbostratus
Mhite convinced me this is a great idea. Jestin: would you please head over to github, add the pypi stuff (I've not done this before) and issue a pull request? That way we can draft off of your experience. We'll send it up afterwards. - L4L7_53191
Nimbostratus
Should be up on pypi very soon gang, stay tuned. Rearranging some stuff now to make it pypi / pip friendly. Adding @Radomir's setup.py as well. - L4L7_53191
Nimbostratus
Gang: It's up on pypi now, and works via normal "pip install pycontrol" into your favorite virtualenv :) Thanks to Mhite and Radomir for the nudge and the help.