visual_article_netmiko

Netmiko for OmniSwitch

Want to learn how to automate your Alcatel-Lucent OmniSwitch? View the step-by-step guide written by Gilbert Moisio, Senior Consultant, on how to automate the Nornir framework on OmniSwitch

Post on 29.10.2019 by Gilbert MOISIO

Automation on OmniSwitch

 

In 2016, I wrote an Alcatel-Lucent Enterprise module alcatel_aos for Netmiko.

This Python module works for AOS6 and AOS8. It is regularly updated by Kirk Byers when major changes are made in the Netmiko library.

I have now been asked to create a Python code to automate configuration on the Alcatel-Lucent Enterprise OmniSwitch, so I used the Nornir framework in addition to the Netmiko library to structure the Python code in a way close to Ansible.

 

Here a step-by-step guide for implementing it:

Figure 1_ Nornir configuration file

Figure 2_ File inventory/ :

Hosts.yaml

groups.yaml

defaults.yaml

Figure 3_ Files templates/ :

 

Figure 4 Script Files:

get_facts.py

 

config_radius.py

config_save.py

 

Results get_fact.py

 

 

Results config_radius.py

 

Results config_save.py


When all these actions have been completed, the Nornir automation framework will be ready to use.

 

Link to the article written by Gilbert Moisio: https://moisio.fr/category/ale/

Please wait...

Comment below to share your thoughts on this blog post

Notify me of followup comments via e-mail. You can also subscribe without commenting.

This site uses Akismet to reduce spam. Learn how your comment data is processed.