-
Hello again, I am carrying out a project to verify configurations in CUCM. EU=>End User but when I go to do it globally there are many tagfilters that are not enabled, I understand that it is due to performance problems, the fact is that I know that it can be a long process but I have a powerful machine and I am willing to wait to fill the lists to do a correct debugging on my platform, it would be a monthly process or something similar . Can you give me instructions to modify the library by enabling the missing tags filter? In the SOAP I notice that the fields of what I expect to be the list of users (LUser) are specified, would I have to edit it?
in the axl library I don't know where the fields are enabled, but I know that the zeep library uses them to print the error with enabled fields
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Unfortunately, this is a limitation of AXL, not the library. There is currently not a way to ask AXL to return all tags on a 'list' call without specifying every single tag manually. Again, the work done in #30 will make this a non-issue, but that is not ready to be implemented yet. For now, the workaround I would suggest is pulling lists of all users, DN's, and phones but using an empty phones = []
users = []
dns = []
phone_uuids = [phone.uuid for phone in ucm.get_phones(tagfilter={})]
user_uuids = [user.uuid for user in ucm.get_users(tagfilter={})]
dn_uuids = [dn.uuid for dn in ucm.get_directory_numbers(tagfilter={})]
for p_uuid in phone_uuids:
phones.append(ucm.get_phone(uuid=p_uuid))
for u_uuid in user_uuids:
users.append(ucm.client.getUser(uuid=u_uuid)) # need to use client here, get_user doesn't have a uuid/args parameter
for d_uuid in dn_uuids:
dns.append(ucm.get_directory_number(uuid=d_uuid)) Depending on how many users/phones/DNs you have however, the multiple 'get' requests can take a LONG time to finish. If you have experience with threading, I would suggest using a ThreadPoolExecutor with a max worker rate of around 50 (depending on how many resources are allocated to your UCM publisher, you could go higher). |
Beta Was this translation helpful? Give feedback.
Unfortunately, this is a limitation of AXL, not the library.
get_phones
,get_users
, andget_directory_numbers
all use 'list' calls instead of 'get' like their singular counterparts. The AXL schema specifies that nearly all 'list' calls must provide a valid 'returnedTags' attribute (this is whattagfilter
directly assigns to). With 'get' calls, this is optional and AXL will return all tags if 'returnedTags' is not supplied.There is currently not a way to ask AXL to return all tags on a 'list' call without specifying every single tag manually. Again, the work done in #30 will make this a non-issue, but that is not ready to be implemented yet.
For now, the workaround I would suggest is pull…