Forum Discussion
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.
- L4L7_53191NimbostratusTry and print out the suds client - it will show you all of the types that it is expecting to be able to create:
- L4L7_53191NimbostratusTry and print out the suds client - it will show you all of the types that it is expecting to be able to create:
- tomatobear_9327Nimbostratus
Thanks, Matt.
- tomatobear_9327NimbostratusResolved.
- tomatobear_9327NimbostratusResolved.
- tomatobear_9327NimbostratusResolved.
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