Forum Discussion
Jomar_46001
Nov 19, 2010Nimbostratus
Adding a iRule to a Virtual Server
Hi, I was trying to write a script to allow me to add an existing iRule to an existing Virtual Server. I am receiving the following error when I run the script: 'Could not find element by n...
L4L7_53191
Dec 05, 2010Nimbostratus
The add_rule() method expects to have a keyword argument called 'rules' - Suds does a decent job of figuring out unambiguous keyword arguments, but for anything with embedded objects it'll have problems.
http://devcentral.f5.com/wiki/default.aspx/iControl/LocalLB__VirtualServer__add_rule.html
So try something like:
c.add_rule(['VIP'], rules = convert_rule(b, 'iRule'))
Hth,
-Matt
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