From c5718ca6b649665ddf332d2f74456c1dd73f3ac1 Mon Sep 17 00:00:00 2001 From: steve280782 Date: Sat, 27 Aug 2016 23:44:12 +0100 Subject: [PATCH] corrected typos and updated URL paths for RESTCONF in module03 hello_lap.py --- module03/03-environment-03-mission/hello_lab.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module03/03-environment-03-mission/hello_lab.py b/module03/03-environment-03-mission/hello_lab.py index 54f8547..9e45fe4 100755 --- a/module03/03-environment-03-mission/hello_lab.py +++ b/module03/03-environment-03-mission/hello_lab.py @@ -3,21 +3,21 @@ import requests import sys -#Disbale all warning messages +#Disable all warning messages requests.packages.urllib3.disable_warnings() # we need to know our token TOKEN = 'insert-your-token-from-deverloper.ciscospark.com-here' NAME = 'event-room-name-inserted-here' +# insert hostname or IP only for RESTCONF and APIC_EM addresses, no https or path required RESTCONF = 'insert-restconf-ip-or-url-here' APIC_EM = 'insert-apic-em-ip-or-url-here' #Function to check if restconf is accessible def check_restconf(address): - # Retconf enabled device's address and default entry level - restconf_api= "http://"+address+":9443/api" - + # Restconf enabled device's address and default entry level + restconf_api= "https://"+address+"/sandbox/restconf/api" # Parameter passed during the call params = {"verbose" : ""}