From the course: NetOps (DevOps for Network Engineers): Automating Networks

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Network application example

Network application example

- Remember before we had a show version Python script that we could run locally. Let's see how we could put this file onto GitLab and have it execute for us automatically using the previous knowledge that we've gained from the last few sections. So just to recap, this is the show version Python script. What it requires is obviously the nornir package as well as the nornir netmiko driver. And what we have here is also a host.yaml file that specifies the IP address, the point number, username, password and we can also execute this show version script. And what it would do is it goes out and look at the host file, execute the show version and print out the command. So let's see how we could get this onto the GitLab repository. So let me go ahead and move to our first project. If you'll remember right now we just have the copp-acl.txt file, as well as the readme file. So we could just start adding files to this…

Contents