cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
772
Views
0
Helpful
0
Replies

Add line in device profile using python

yixiu0317
Beginner
Beginner

Hi There,

I am new to the python and AXL schema, any help with the schema is appreciated.

I am using Python 3.7 with suds-jurko 0.6 and testing on CUCM11.0

What I try to achieve is create a user device profile with a number.

Here is my code.

Everything until the 'description' is working, but I am not sure how to add the number to the device profile.

The 'lines' attribute has several child attributes and I do not know how to call them.

Anyone can help on this?

Thank you in advance.

result = client.service.addDeviceProfile({'name' :'TEST',

                                          'protocol':'SCCP',

                                          'class':'Device Profile',

                                          'product':'Cisco 7962',

                                          'protocolSide' : 'User',

                                          'phoneTemplateName':'Standard 7962G SCCP',

                                          'description' :'123',

                                          'lines' : '{line[]:[index: 1],[dirn: [pattern:123]]}'

                                          })

print (result)

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: