Latest Posts

Virtual Environment

Install : apt-get update apt install python3-virtualenv cd ~ cd VENV virtualenv virtualenv-3.6 -p /usr/bin/python36 “virtual env name” ll or ls -lart This is going to create a new sandbox source “virtual env name”/bin/activate  <— this is to active it which…
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

YAML Basics

Example of a YAML file : List : — – 10.10.10.1 – 10.10.10.2 – 10.10.10.3 Dictionary : — Key:value device1: 10.10.10.1 device2: this is a string device3: “this can nclude special characters” device4: True or true or yes or no…
Read more