diff --git a/README.md b/README.md index 85c4cd0..5588914 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ devnet01.cisco.com --sysip 1.1.1.1 --loopip 2.2.2.2/24 --geip To use this application you will need: -* Python 3.6+ +* Python 3.7+ * Cisco SD-WAN 18+ * A Cisco SD-WAN account with permissions to attach and detach templates @@ -46,7 +46,7 @@ cd Getting-started-with-Cisco-SD-WAN-REST-APIs Setup Python Virtual Environment (requires Python 3.6+) ``` -python3.6 -m venv venv +python3.7 -m venv venv source venv/bin/activate pip install -r requirements.txt ``` @@ -56,9 +56,9 @@ Setup local environment variables for your Cisco SD-WAN fabric. Provide the info Examples: ``` -export SDWAN_IP=10.10.30.190 -export SDWAN_USERNAME=admin -export SDWAN_PASSWORD=admin +export SDWAN_IP=sandboxsdwan.cisco.com +export SDWAN_USERNAME=devnetuser +export SDWAN_PASSWORD=Cisco123! ``` ### Using the application diff --git a/sdwan.py b/sdwan.py index 6354bd3..0c4c881 100755 --- a/sdwan.py +++ b/sdwan.py @@ -54,6 +54,8 @@ def login(self, vmanage_ip, username, password): sess = requests.session() #If the vmanage has a certificate signed by a trusted authority change verify to True login_response = sess.post(url=login_url, data=login_data, verify=False) + print('login_response') + print(login_response) if b'' in login_response.content: