Forum Discussion
Ken_R_
Nimbostratus
Dec 07, 2019F5-SDK Error When Attempting to Add Pool Members
I've just started programming with Python (3.6.8) and found the f5-sdk module to be interesting. I've written a script to build nodes, pool members and a virtual server (v13.1.1.4), however while ad...
Dec 07, 2019
Hi Ken R.
In your code; node, pool and virtual server definitions are dictionary in the list. You can remove list. "[ ]"
or...
pool.members_s.members.create(
partition='Common',
name=pool[0]['member'][0]['name'] + ':' + pool[0]['member'][0]['port'],
monitor=pool[0]['monitor'])...can you try above code instead of following?
pool.members_s.members.create(
partition='Common',
name=pool['member'] + ':' + pool['port'],
monitor=pool['monitor'])
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