I prefer running Codes on a container than a virtual machine and I use docker container to run the ansible playbooks. Today’s blog is about setting up a docker container environment for ansible. Pull Image:- I use python image to setup the Ansible container. Create Docker Container :- Verify the Running Docker:- Use VSCode to…
Category: Automation
Backup and Tech support using Ansible
Making use of Ansible to collect backup files ,show tech and see the versions of Cisco switches. I use docker container to run the ansible playbooks. Inventory file:- Create an inventory file Yaml File:- Create a yaml file. The below code will save the Backup and show tech file on the root folder with the…
PyATS UI Dashboard, Xpresso On Docker
I am new to Docker world..Last two days I was busy setting up Xpresso docker container on my lab. And finally I got the xpresso Login Page. Today’s blog i share the details on how to setup the Xpresso Docker Container. Xpresso is web based network test automation “dashboard”, which Cisco provides as complementary. XPRESSO…
Network snapshot using Genie
PyATS is the core frame work and Genie I is the PyATS standard library. Genie is the pyATS SDk which contains all the tools needed Network test Automation. Genie Command Line¶ Genie CLI is a powerful linux-based command-line utility offering Genie Python functionality directly from a linux terminal. Genie Learn¶ Genie learn is a powerful tool that can be extensively…
Python Strings
Using triple quotes and the line continuation character ( \ ) Defining a string on multiple lines. a = ”’this\ is\ my\ first\ string”’ Using triple quotes and the line continuation character ( \ ) Defining a string on multiple lines. a = ”’this is my first string”’ Strings – indexing a.index(“i”) Strings…
PyATS Installation
Python Automated Test System(pyATS) is a python based test automation. Its organically developed by internal Cisco Engineers and made public on 2017 through devnet. I use pipenv to create isolated Python environments. Pipenv is a combination of both PIP and virtualenv. Most popular tools to isolate python environment is virtualenv. Use the tool comfortable for…
“Hey Siri” Run Backup
The only programming language which I used in my life Was C++ and that was in my first year B.tech(17 years before).After that I never tried programming. During the Covid-19 lockdown I started learning python for Cisco Devnet certifications. I started falling in love with coding. The way I used to work changed with network…