ZTP Dynamic Provisioning for Arista switches (using EVE-ng and Devuan)

In this video I’m using ZTP dynamic provisioning for Arista switches in my virtual environment using EVE-ng and Devuan as the ZTP server (other linux distros work “pretty” much the same). Note that this is just an example and there are lot more things that you can do with ZTP (e.g integrating it with Ansible, upgrading hundreds of switches, etc.) More info on the links provided at the bottom.
At first it may seems a bit complicated, but there are a couple of things we need to be aware of and after seeing how all the tools used to build are provisioning is connected it will become more clearer and after that it’s up to you.

In the first couple of minutes I briefly talk about my topology, but if you want to go directly to the ZTP part click on the following link:

Filing structure, files created or modified:
add your DHCP config to /etc/dhcp/dhcpd.conf
specify the basic parameters of your server in /etc/ztpserver/ztpserver.conf

Define actions in(you have to create a definition file for each device):
/usr/share/ztpserver/definitions/

Templates (configlets):
/usr/share/ztpserver/files/templates/

Resource files(used as a database for your variables in your configlets):
/usr/share/ztpserver/resources/

Neighbordb – to specify which definitions go for which devices and matching patterns based on connectivity
/usr/share/ztpserver/neighbordb

Note: The definitions, resources and neighbordb files have to have a yaml format (key-value pair similar to Python dictionaries). The ZTP parser doesn’t like TABs so make sure you are using only spaces in your files.
Best way to troubleshoot issues with your files is to validate them with “ztps –validate” and “ztps –debug”, both of them have relatively straight-forward explanations.

Useful documentation:
https://ztpserver.readthedocs.io
https://github.com/arista-eosplus/ztpserver

Thanks for watching!

source by NetViking

eve-ng

Mourad ELGORMA

Mourad ELGORMA

Fondateur de summarynetworks, passionné des nouvelles technologies et des métiers de Réseautique , Master en réseaux et système de télécommunications. ,j’ai affaire à Pascal, Delphi, Java, MATLAB, php …Connaissance du protocole TCP / IP, des applications Ethernet, des WLAN …Planification, installation et dépannage de problèmes de réseau informatique……Installez, configurez et dépannez les périphériques Cisco IOS. Surveillez les performances du réseau et isolez les défaillances du réseau. VLANs, protocoles de routage (RIPv2, EIGRP, OSPF.)…..Manipuler des systèmes embarqués (matériel et logiciel ex: Beaglebone Black)…Linux (Ubuntu, kali, serveur Mandriva Fedora, …). Microsoft (Windows, Windows Server 2003). ……Paquet tracer, GNS3, VMware Workstation, Virtual Box, Filezilla (client / serveur), EasyPhp, serveur Wamp,Le système de gestion WORDPRESS………Installation des caméras de surveillance ( technologie hikvision DVR………..). ,

5 réflexions sur “ZTP Dynamic Provisioning for Arista switches (using EVE-ng and Devuan)

  • Avatar
    mai 4, 2021 à 10:31
    Permalien

    Hi NetViking…

    Great tutorial on ZTP and Dynamic provisioning!
    Is it possible to share your definition YML files? I'm relatively new to programming and scripting. This is help me understand the transition from CLI to Ansible/YML, etc.

    Répondre
  • Avatar
    mai 4, 2021 à 10:31
    Permalien

    Great video. Do you have a guide or some reference doc on how to update the firmware using ZTP/ztpserver?

    Répondre
  • Avatar
    mai 4, 2021 à 10:31
    Permalien

    Hi,
    I am still deploying, but can you share the bootstrap file and how it point to the neighbordb
    Thx

    Répondre

Laisser un commentaire