Skip to menu Skip to content Skip to search
The stellar community blog

Netmiko for OmniSwitch

by Gilbert MOISIO
Posted10.29.19 Automation SWITCHING Trends
Partager sur facebook Partager sur twitter Partager sur linkedin
visual_article_netmiko

By Gilbert Moisio, Senior consultant, specialist on knowledge acquisition, technologies and methodologies. He published several papers about automation, Software-Defined Networking and Wi-Fi. His website: https://moisio.fr/

 

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...

Post a comment

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