File tree 3 files changed +11
-6
lines changed
3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 15
15
16
16
import requests
17
17
from pprint import pprint
18
+ import urllib3
19
+
20
+ # Disable SSL Warnings
21
+ urllib3 .disable_warnings (urllib3 .exceptions .InsecureRequestWarning )
22
+
18
23
router = {"ip" : "ios-xe-mgmt.cisco.com" ,
19
- "port" : "9443 " ,
24
+ "port" : "443 " ,
20
25
"user" : "developer" ,
21
- "pass" : "C1sco12345 " }
26
+ "pass" : "lastorangerestoreball8876 " }
22
27
23
28
headers = {"Accept" : "application/yang-data+json" }
24
29
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
24
24
25
25
*** Note: In the video, a different DevNet Sandbox is used***
26
26
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 ` .
28
28
29
29
## Download Slides
30
30
31
31
You can download the slides for this lesson [ here] ( https://developer.cisco.com/fileMedia/download/c5942bff-3499-3e11-829a-fa90ebeb5fd1 ) .
32
32
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
16
16
17
17
# Example 3: Network Programmability with RESTCONF
18
18
curl -vk \
19
- -u developer:C1sco12345 \
19
+ -u developer:lastorangerestoreball8876 \
20
20
-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