Skip to content

Commit b93b970

Browse files
committed
- All samples use creds.py for CUCM address and credentials
- Update README to reflect
1 parent 6ba3543 commit b93b970

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# axl-python-zeep-sample
1+
# axl-python-zeep-samples
22

33
## Overview
44

@@ -25,7 +25,7 @@ The concepts and techniques shown can be extended to enable automated management
2525
$ pip install zeep
2626
```
2727

28-
* Edit axlZeep.py to specify your CUCM location and AXL user credentials
28+
* Edit creds.py to specify your CUCM location and AXL user credentials
2929

3030
* Add the AXL WSDL files for your CUCM version
3131

@@ -62,17 +62,17 @@ The concepts and techniques shown can be extended to enable automated management
6262
6363
are represented a little differently than expected by Zeep. Note that `<member>` becomes an array, not `<members>`:
6464
65-
```json
65+
```python
6666
{
67-
members: {
68-
member: [
67+
'members': {
68+
'member': [
6969
{
70-
"subElement1": None,
71-
"subElement2": None
70+
'subElement1': 'value',
71+
'subElement2': 'value'
7272
},
73-
{
74-
"subElement1": None,
75-
"subElement2": None
73+
{
74+
'subElement1': 'value',
75+
'subElement2': 'value'
7676
}
7777
]
7878
}

axlZeep.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@
5151

5252
WSDL_URL = 'AXLAPI.wsdl'
5353

54-
# These are sample values for DevNet sandbox
55-
# replace them with values for your own CUCM, if needed
54+
# Configure CUCM location and AXL credentials in creds.py
55+
import creds
5656

57-
CUCM_URL = 'https://10.10.20.1:8443/axl/'
58-
USERNAME = 'administrator'
59-
PASSWD = 'ciscopsdt'
57+
CUCM_URL = 'https://' + creds.CUCM_ADDRESS + ':8443/axl/'
58+
USERNAME = creds.USERNAME
59+
PASSWD = creds.PASSWORD
6060

6161
# If you have a pem file certificate for CUCM, uncomment and define it here
6262

axlZeepUndo.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@
4646
from zeep.plugins import HistoryPlugin
4747
from zeep.exceptions import Fault
4848

49+
# Configure CUCM location and AXL credentials in creds.py
50+
import creds
51+
52+
CUCM_URL = 'https://' + creds.CUCM_ADDRESS + ':8443/axl/'
53+
USERNAME = creds.USERNAME
54+
PASSWD = creds.PASSWORD
55+
4956
WSDL_URL = 'AXLAPI.wsdl'
50-
CUCM_URL = 'https://10.10.20.1:8443/axl/'
51-
USERNAME = 'administrator'
52-
PASSWD = 'ciscopsdt'
5357

5458
#CERT = 'some.pem'
5559

0 commit comments

Comments
 (0)