Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

corrected typos and updated URL paths for RESTCONF in module03 hello_… #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions module03/03-environment-03-mission/hello_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 20 needs further review. Suggested URL is different from the original one

# Parameter passed during the call
params = {"verbose" : ""}

Expand Down