This repository was archived by the owner on Aug 21, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +43
-770
lines changed
module03/03-environment-03-mission
06-dmi-01-overview-of-device-level-netconf
06-dmi-02-yang-data-modeling-overview Expand file tree Collapse file tree 9 files changed +43
-770
lines changed Original file line number Diff line number Diff line change 77
88
99# the variables below assume the user is leveraging the
10- # network programmability lab and accessing csr-nwp1
10+ # network programmability lab and accessing csr1000v
1111# use the IP address or hostname of your CSR1000V device
12- HOST = '198.18.133.218 '
12+ HOST = 'ios-xe-mgmt.cisco.com '
1313# use the NETCONF port for your CSR1000V device
14- PORT = 2022
14+ PORT = 10000
1515# use the user credentials for your CSR1000V device
16- USER = 'admin '
17- PASS = 'C1sco12345 '
16+ USER = 'root '
17+ PASS = 'C!sc0123 '
1818
1919
2020# create a main() method
Original file line number Diff line number Diff line change 44import sys
55
66# the variables below assume the user is leveraging the
7- # network programmability lab and accessing csr-nwp1
7+ # network programmability lab and accessing csr1000v
88# use the IP address or hostname of your CSR1000V device
9- HOST = '198.18.133.218 '
9+ HOST = 'ios-xe-mgmt.cisco.com '
1010# use the NETCONF port for your CSR1000V device
11- PORT = 2022
11+ PORT = 10000
1212# use the user credentials for your CSR1000V device
13- USER = 'admin'
14- PASS = 'C1sco12345'
15-
13+ USER = 'root'
14+ PASS = 'C!sc0123'
1615
1716# create a main() method
1817def main ():
Original file line number Diff line number Diff line change 77
88
99# the variables below assume the user is leveraging the
10- # network programmability lab and accessing csr-nwp1
10+ # network programmability lab and accessing csr1000v
1111# use the IP address or hostname of your CSR1000V device
12- HOST = '198.18.133.218 '
12+ HOST = 'ios-xe-mgmt.cisco.com '
1313# use the NETCONF port for your CSR1000V device
14- PORT = 2022
14+ PORT = 10000
1515# use the user credentials for your CSR1000V device
16- USER = 'admin '
17- PASS = 'C1sco12345 '
16+ USER = 'root '
17+ PASS = 'C!sc0123 '
1818
1919
2020# create a main() method
Original file line number Diff line number Diff line change 88import xml .dom .minidom
99
1010# the variables below assume the user is leveraging the
11- # network programmability lab and accessing csr-nwp1
11+ # network programmability lab and accessing csr1000v
1212# use the IP address or hostname of your CSR1000V device
13- HOST = '198.18.133.218 '
13+ HOST = 'ios-xe-mgmt.cisco.com '
1414# use the NETCONF port for your CSR1000V device
15- PORT = 2022
15+ PORT = 10000
1616# use the user credentials for your CSR1000V device
17- USER = 'admin '
18- PASS = 'C1sco12345 '
17+ USER = 'root '
18+ PASS = 'C!sc0123 '
1919MODULE_NAME = 'ietf-interfaces.yang'
2020
2121
Original file line number Diff line number Diff line change 1010import xml .dom .minidom
1111
1212
13- # the variables below assume the user is requesting access
14- # to a IOS-XE device running in the DevNet Always On SandBox
15- # use the IP address or hostname of your IOS-XE device
16- HOST = '198.18.133.218 '
17- # use the NETCONF port for your IOS-XE device
18- PORT = 2022
19- # use the user credentials for your IOS-XE device
20- USER = 'admin '
21- PASS = 'C1sco12345 '
13+ # the variables below assume the user is leveraging the
14+ # network programmability lab and accessing csr1000v
15+ # use the IP address or hostname of your CSR1000V device
16+ HOST = 'ios-xe-mgmt.cisco.com '
17+ # use the NETCONF port for your CSR1000V device
18+ PORT = 10000
19+ # use the user credentials for your CSR1000V device
20+ USER = 'root '
21+ PASS = 'C!sc0123 '
2222# XML file to open
2323FILE = 'get_interfaces.xml'
2424
You can’t perform that action at this time.
0 commit comments