Skip to content

Commit a533b40

Browse files
committed
Markdown updates to assist with copy/paste
1 parent 1458946 commit a533b40

File tree

2 files changed

+85
-84
lines changed

2 files changed

+85
-84
lines changed

Diff for: lab/extras/ncclient_notebook_no_code/ncclient_no_code.ipynb

+40-41
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{
44
"cell_type": "markdown",
55
"metadata": {
6-
"jp-MarkdownHeadingCollapsed": true,
76
"tags": []
87
},
98
"source": [
@@ -402,7 +401,7 @@
402401
"\n",
403402
"Import the following Python modules:\n",
404403
"* **ncclient** - NETCONF manager (client) to connect to NETCONF agents (network devices).\n",
405-
"* **pprint.pprint** - Method to print output in a more friendly format than the standard Python print() function.\n",
404+
"* **pprint.pprint** - Method to print output in a more friendly format than the standard Python `print()` function.\n",
406405
"* **xmltodict** - Module to convert between XML and Python Dictionary encoding formats, bidirectionally."
407406
]
408407
},
@@ -459,7 +458,7 @@
459458
"* Use the **with** keyword in order to allow the Python *Context Manager* to automatically close the NETCONF session, after the code runs.\n",
460459
" * The alternative is to manually close a NETCONF session.\n",
461460
"* Use the **connect** method of the **ncclient manager** class to initiate a connection to **R1**.\n",
462-
" * Pass the **r1** dictionary as an argument to the **connect** method with the syntax **\\*\\*r1**.\n",
461+
" * Pass the **r1** dictionary as an argument to the **connect** method with the syntax `**r1`.\n",
463462
" * This technique is caled *Dictionary Unpacking* and converts each dictionary key to a keyword argument, with their corresponding values.\n",
464463
"* Assign the result of the **connect** method to the variable **conn** (short for 'connection').\n",
465464
"* Assign the value of the **conn.server_capabilities** attribute to the variable **caps** (short for 'capabilities')\n",
@@ -511,9 +510,9 @@
511510
"\n",
512511
"\n",
513512
"* Use YANG Suite to build an RPC filter as follows:\n",
514-
" * YANG Model - **Cisco-IOS-XE-interfaces-oper**\n",
515-
" * XPath - **/interfaces/interface/v4-protocol-stats**\n",
516-
" * Optional - filter on interface **GigabitEthernet1**\n",
513+
" * YANG Model - `Cisco-IOS-XE-interfaces-oper`\n",
514+
" * XPath - `/interfaces/interface/v4-protocol-stats`\n",
515+
" * Optional - filter on interface `GigabitEthernet1`\n",
517516
" * Copy and paste the data in the **\\<filter\\>** tag from YANG Suite to the **payload** variable (multiline string) below."
518517
]
519518
},
@@ -603,9 +602,9 @@
603602
"\n",
604603
"\n",
605604
"* Use YANG Suite to build an RPC filter as follows:\n",
606-
" * YANG Model - **ietf-interfaces**\n",
607-
" * XPath - **/interfaces/interface/ip:ipv4**\n",
608-
" * Optional - filter on interface **GigabitEthernet1**\n",
605+
" * YANG Model - `ietf-interfaces`\n",
606+
" * XPath - `/interfaces/interface/ip:ipv4`\n",
607+
" * Optional - filter on interface `GigabitEthernet1`\n",
609608
" * Copy and paste the data in the **\\<filter\\>** tag from YANG Suite to the **payload** variable (multiline string) below."
610609
]
611610
},
@@ -677,9 +676,9 @@
677676
"\n",
678677
"\n",
679678
"* Use YANG Suite to build an RPC configuration for a new Loopback interface (Loopback 0) as follows:\n",
680-
" * YANG Model - **Cisco-IOS-XE-native**\n",
681-
" * XPath - **/native/interface/Loopback/name**\n",
682-
" * Interface Name - **0**\n",
679+
" * YANG Model - `Cisco-IOS-XE-native`\n",
680+
" * XPath - `/native/interface/Loopback/name`\n",
681+
" * Interface Name - `0`\n",
683682
" * Copy and paste the data in the **\\<config\\>** tag from YANG Suite to the **payload** variable (multiline string) below. "
684683
]
685684
},
@@ -731,8 +730,8 @@
731730
"This NETCONF request will use the **get-config** RPC to determine whether or not the previous operation added the **Loopback 0** interface to **R1**.\n",
732731
"\n",
733732
"* Use YANG Suite to build a build an RPC which gets configuration data for the **R1** interfaces:\n",
734-
" * YANG Model - **Cisco-IOS-XE-native**\n",
735-
" * XPath - **/native/interface**\n",
733+
" * YANG Model - `Cisco-IOS-XE-native`\n",
734+
" * XPath - `/native/interface`\n",
736735
" * Copy and paste the data in the **\\<filter\\>** tag from YANG Suite to the **payload** variable (multiline string) below. "
737736
]
738737
},
@@ -784,16 +783,16 @@
784783
"This NETCONF request will use the **edit-config** RPC to add more configuration detail to the new **Loopback 0** interface on **R1**.\n",
785784
"\n",
786785
"* Use YANG Suite to build an RPC which configures a new **IP address**, **description,** and **load interval** to the new **Loopback 0** interface:\n",
787-
" * YANG Model - **Cisco-IOS-XE-native**\n",
786+
" * YANG Model - `Cisco-IOS-XE-native`\n",
788787
" * XPaths:\n",
789-
" * **/native/interface/Loopback/name**\n",
790-
" * **/native/interface/Loopback/description**\n",
791-
" * **/native/interface/Loopback/ip/address/primary**\n",
792-
" * **/native/interface/Loopback/load-interval**\n",
793-
" * Description - Added by NETCONF\n",
794-
" * IPv4 Address - **172.16.10.10**\n",
795-
" * Subnet Mask - **255.255.255.255**\n",
796-
" * Load Interval - **30**\n",
788+
" * `/native/interface/Loopback/name`\n",
789+
" * `/native/interface/Loopback/description`\n",
790+
" * `/native/interface/Loopback/ip/address/primary`\n",
791+
" * `/native/interface/Loopback/load-interval`\n",
792+
" * Description - `Added by NETCONF``\n",
793+
" * IPv4 Address - `172.16.10.10`\n",
794+
" * Subnet Mask - `255.255.255.255`\n",
795+
" * Load Interval - `30`\n",
797796
" * Copy and paste the data in the **\\<config\\>** tag from YANG Suite to the **payload** variable (multiline string) below. "
798797
]
799798
},
@@ -834,8 +833,8 @@
834833
"This NETCONF request will use the **get-config** RPC to determine whether or not the previous operation added configuration elements to the **Loopback 0** interface on **R1**.\n",
835834
"\n",
836835
"* Use YANG Suite to build a build an RPC which gets configuration data for the **R1** interfaces:\n",
837-
" * YANG Model - **Cisco-IOS-XE-native**\n",
838-
" * XPath - **/native/interface**\n",
836+
" * YANG Model - `Cisco-IOS-XE-native`\n",
837+
" * XPath - `/native/interface`\n",
839838
" * Copy and paste the data in the **\\<filter\\>** tag from YANG Suite to the **payload** variable (multiline string) below. "
840839
]
841840
},
@@ -885,10 +884,10 @@
885884
"This NETCONF request will use the **edit-config** RPC with the **delete operation** to remove the new **Loopback 0** interface from **R1**.\n",
886885
"\n",
887886
"* Use YANG Suite to build an RPC which deletes interface **Loopback 0**:\n",
888-
" * YANG Model - **Cisco-IOS-XE-native**\n",
889-
" * XPath - **/native/interface/Loopback**\n",
890-
" * Loopback Operation - **delete**\n",
891-
" * Interface Name - **0**\n",
887+
" * YANG Model - `Cisco-IOS-XE-native`\n",
888+
" * XPath - `/native/interface/Loopback`\n",
889+
" * Loopback Operation - `delete`\n",
890+
" * Interface Name - `0`\n",
892891
" * Copy and paste the data in the **\\<config\\>** tag from YANG Suite to the **payload** variable (multiline string) below."
893892
]
894893
},
@@ -929,8 +928,8 @@
929928
"This NETCONF request will use the **get-config** RPC to determine whether or not the previous operation removed the **Loopback 0** interface from **R1**.\n",
930929
"\n",
931930
"* Use YANG Suite to build a build an RPC which gets configuration data for the **R1** interfaces:\n",
932-
" * YANG Model - **Cisco-IOS-XE-native**\n",
933-
" * XPath - **/native/interface**\n",
931+
" * YANG Model - `Cisco-IOS-XE-native`\n",
932+
" * XPath - `/native/interface`\n",
934933
" * Copy and paste the data in the **\\<filter\\>** tag from YANG Suite to the **payload** variable (multiline string) below. "
935934
]
936935
},
@@ -985,9 +984,9 @@
985984
"\n",
986985
"\n",
987986
"* Use YANG Suite to build a configuration for a new Loopback interrface as follows:\n",
988-
" * YANG Model - **Cisco-IOS-XE-native**\n",
989-
" * XPath - **/native/interface/Loopback**\n",
990-
" * Interface Name - **10**\n",
987+
" * YANG Model - `Cisco-IOS-XE-native`\n",
988+
" * XPath - `/native/interface/Loopback`\n",
989+
" * Interface Name - `10`\n",
991990
" * Copy and paste the data in the **\\<config\\>** tag from YANG Suite to the **payload** variable (multiline string) below. "
992991
]
993992
},
@@ -1023,9 +1022,9 @@
10231022
"\n",
10241023
"\n",
10251024
"* Use YANG Suite to build a configuration for a new Loopback interrface as follows:\n",
1026-
" * YANG Model - **Cisco-IOS-XE-native**\n",
1027-
" * XPath - **/native/interface/Loopback**\n",
1028-
" * Interface Name - **10**\n",
1025+
" * YANG Model - `Cisco-IOS-XE-native`\n",
1026+
" * XPath - `/native/interface/Loopback`\n",
1027+
" * Interface Name - `10`\n",
10291028
" * Copy and paste the data in the **\\<config\\>** tag from YANG Suite to the **payload** variable (multiline string) below. "
10301029
]
10311030
},
@@ -1076,8 +1075,8 @@
10761075
"This NETCONF request will confirm the change to the **candidate** datastore does not appear in the **running** datastore on **R2**, yet.\n",
10771076
"\n",
10781077
"* Use YANG Suite to build a build an RPC which gets configuration data for the **R2** interfaces:\n",
1079-
" * YANG Model - **Cisco-IOS-XE-native**\n",
1080-
" * XPath - **/native/interface**\n",
1078+
" * YANG Model - `Cisco-IOS-XE-native`\n",
1079+
" * XPath - `/native/interface`\n",
10811080
" * Copy and paste the data in the **\\<filter\\>** tag from YANG Suite to the **payload** variable (multiline string) below. "
10821081
]
10831082
},
@@ -1172,8 +1171,8 @@
11721171
"This NETCONF request will confirm the change to the **candidate** datastore now *does* appear in the **running** datastore on **R2**.\n",
11731172
"\n",
11741173
"* Use YANG Suite to build a build an RPC which gets configuration data for the **R2** interfaces:\n",
1175-
" * YANG Model - **Cisco-IOS-XE-native**\n",
1176-
" * XPath - **/native/interface**\n",
1174+
" * YANG Model - `Cisco-IOS-XE-native`\n",
1175+
" * XPath - `/native/interface`\n",
11771176
" * Copy and paste the data in the **\\<filter\\>** tag from YANG Suite to the **payload** variable (multiline string) below. "
11781177
]
11791178
},

0 commit comments

Comments
 (0)