# netlab: Building Leaf-and-Spine Fabrics with the Fabric Plugin

DevFeed: [netlab: Building Leaf-and-Spine Fabrics with the Fabric Plugin](<https://devfeed.tech/articles/netlab-building-leaf-and-spine-fabrics-with-the-fabric-plugin-10966.md>)

Original publisher: [Read original article](<https://blog.ipspace.net/2024/03/netlab-fabric-plugin/>)

Published: 2024-03-25T08:43:00Z

Content type: tutorial

Language: en

Sources: [ipSpace.net blog](<https://devfeed.tech/sources/ipspace-net-blog.md>)

Topics: [networking](<https://devfeed.tech/topics/networking.md>), [evpn](<https://devfeed.tech/topics/evpn.md>), [BGP](<https://devfeed.tech/topics/bgp.md>), [Ansible](<https://devfeed.tech/topics/ansible.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Containers](<https://devfeed.tech/topics/containers.md>)

Tags: [ansible](<https://devfeed.tech/tags/ansible.md>), [bgp](<https://devfeed.tech/tags/bgp.md>), [containers](<https://devfeed.tech/tags/containers.md>), [evpn](<https://devfeed.tech/tags/evpn.md>), [fabric](<https://devfeed.tech/tags/fabric.md>), [linux](<https://devfeed.tech/tags/linux.md>), [netlab](<https://devfeed.tech/tags/netlab.md>), [ospf](<https://devfeed.tech/tags/ospf.md>)

## AI overview

This tutorial explains how netlab 1.7.0's fabric plugin builds leaf-and-spine lab topologies. It covers generating and renaming leaf and spine nodes, adding EVPN with IBGP and OSPF, attaching Linux hosts, and running the example with Ubuntu, Ansible, containerlab, and Arista cEOS containers.

## Source excerpt

netlab release 1.7.0 added the fabric plugin that simplifies building lab topologies with leaf-and-spine fabrics. All you have to do to build a full-blown leaf-and-spine fabric is: Specify the default device type Enable the fabric plugin Specify the number of leaves and spines in the fabric. For example, the following lab topology builds a fabric with Arista cEOS containers having two spines and four leaves: Read more ...