File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1515
1616import requests
1717from pprint import pprint
18+ import urllib3
19+
20+ # Disable SSL Warnings
21+ urllib3 .disable_warnings (urllib3 .exceptions .InsecureRequestWarning )
22+
1823router = {"ip" : "ios-xe-mgmt.cisco.com" ,
19- "port" : "9443 " ,
24+ "port" : "443 " ,
2025 "user" : "developer" ,
21- "pass" : "C1sco12345 " }
26+ "pass" : "lastorangerestoreball8876 " }
2227
2328headers = {"Accept" : "application/yang-data+json" }
2429
Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ This lesson leverages the [IOS XE on CSR Recommended Code Always On](https://dev
2424
2525*** Note: In the video, a different DevNet Sandbox is used***
2626
27- When running the ` curl ` for the RESTCONF example, leverage ` https://ios-xe-mgmt.cisco.com:9443 ` as the URL instead of ` https://10.10.20.21 ` .
27+ When running the ` curl ` for the RESTCONF example, leverage ` https://ios-xe-mgmt.cisco.com:443 ` as the URL instead of ` https://10.10.20.21 ` .
2828
2929## Download Slides
3030
3131You can download the slides for this lesson [ here] ( https://developer.cisco.com/fileMedia/download/c5942bff-3499-3e11-829a-fa90ebeb5fd1 ) .
3232
33- > * Suggestion: Right click, "Open in new tab"*
33+ > * Suggestion: Right click, "Open in new tab"*
Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ curl https://api.icndb.com/jokes/random?limitTo=nerdy
1616
1717# Example 3: Network Programmability with RESTCONF
1818curl -vk \
19- -u developer:C1sco12345 \
19+ -u developer:lastorangerestoreball8876 \
2020 -H ' accept: application/yang-data+json' \
21- https://ios-xe-mgmt.cisco.com:9443 /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet2
21+ https://ios-xe-mgmt.cisco.com:443 /restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet2
You can’t perform that action at this time.
0 commit comments