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" : ""}