Skip to content

Python3 Scripts for EVPN lab

Notifications You must be signed in to change notification settings

varnumd/evpn_python3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Generate Ansible host_vars for EVPN lab

This Python3 script will take in these variables and generate the individual host_vars files for Ansible:

  • num_spines = 2
  • num_leafs = 8
  • p2p_range = '10.0.'
  • lo0_range = '10.0.250.'
  • lo1_range = '10.0.255.'
  • ibgp_range = p2p_range + str(num_spines+1) + '.'
  • ibgp_vlan = '4091'
  • asn_start = 65000

The script assumes that particular interfaces are used to connect leafs to spines, and leafs to leafs.

If you want to change any of these parameters, just make the change directly in the script.

About

Python3 Scripts for EVPN lab

Resources

Stars

Watchers

Forks