Forum Discussion
spirrello_22970
Nimbostratus
Mar 30, 2016Using Python Bigsuds for Replacing TCP Profile
Hi,
I'm trying to run the following from a Python script but i'm getting the following error message. I've tried both options but I'm getting the same error message. Any idea on why this would...
Justin_Kinney_1
Nimbostratus
May 17, 2016Sweet! The transaction approach completely works. Sample code below:
b = bigsuds.BIGIP(host, username, password)
virtual_server = 'vs-foo'
with bigsuds.Transaction(b):
del_profiles = [{'profile_context': 'PROFILE_CONTEXT_TYPE_ALL', 'profile_name': '/Common/tcp'}]
b.LocalLB.VirtualServer.remove_profile([virtual_server], [del_profiles])
add_profiles = [{'profile_context': 'PROFILE_CONTEXT_TYPE_ALL', 'profile_name': '/Common/tcp-wan-optimized'}]
b.LocalLB.VirtualServer.add_profile([virtual_server], [add_profiles])- JRahmMay 17, 2016
Admin
Nice! I'll write this up for others when I get back into the office.
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