PYTHON

CiscoConfParse

CiscoConfParse is a library for Cisco device.   :  pip install ciscoconfparse Example : from ciscoconfparse import ciscoconfparse Cisco_obj = CiscoConfParse(“show_run.txt”) print(Cisco_obj)  <—- this will return all the information about that object If using Netmiko to pull information from any device into a…
Read more

Complex Data Structure

When dealing with very large output data structure , and need to extract data from it : Example : Devices = { ‘sw1’: { ‘ip_addr’: ‘10.10.10.1’, ‘username’: ‘admin’, ‘password’: ‘cisco’, ‘bgp_peer’: ‘10.10.20.1’, ‘10.10.30.1’, ‘10.10.40.1’}, ‘sw2’: { ‘ip_addr’: ‘10.10.10.2’, ‘username’: ‘admin’,…
Read more