Forum Discussion
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