tomatobear_9327
May 23, 2011Nimbostratus
Having troubles when constructing LocalLB.MatchPatternString
Hi guys. I'm working on a class to add an httpclass profile.
def add_profile(self, pool_num):
MatchPatternString_1 = self.conn.LocalLB.Pool.typefactory.create('LocalLB.MatchPatternString')
MatchPatternString_1.pattern = "*pattern.com"
MatchPatternString_1.is_glob = True
I have no problems to construct other structures, like
self.conn.LocalLB.Pool.typefactory.create('LocalLB.MonitorRuleType')
self.conn.LocalLB.Pool.typefactory.create('LocalLB.Pool.MonitorAssociation')
But for MatchPatternString, it gives the following errors.
No handlers could be found for logger "suds.resolver"
Traceback (most recent call last):
File "./bigip.py", line 175, in
bigip.add_2k8fp_profile('590')
File "./bigip.py", line 145, in add_2k8fp_profile
MatchPatternString = self.conn.LocalLB.Pool.typefactory.create('LocalLB.MatchPatternString')
File "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/client.py", line 234, in create
raise TypeNotFound(name)
suds.TypeNotFound: Type not found: 'LocalLB.MatchPatternString'
How do I resolve this? Is this a bug or something?
Thanks.