Skip to content

5-stage Clos topology

Description A 5-stage Clos topology with X Pod(s), Y Super Spine(s)
Components Nokia SR Linux
Topology template file templated02.clab.gotmpl
Topology variable file templated02.clab_vars.yaml
Name templated02

Description#

This lab consists of a customizable 5 stage Clos topology. Each pod in this lab consists of a configurable number of fully meshed spines and leaves. The spines in each pod are connected to a configurable number of super spines.

The topology template is rendered using the variable file shown below:

super_spines:
  # SRL super spine type
  type: ixrd3
  # number of super spines
  num: 2
  # prefix of super spines name: ${prefix}${index}
  prefix: super-spine

pods:
  # number of pods
  num: 2
  spines:
    # SRL spine type
    type: ixrd3
    # number of spines per pod
    num: 2
    # prefix of spines name: ${prefix}${index}
    prefix: spine
  leaves:
    # SRL leaf type
    type: ixrd2l
    # number of leaves per pod
    num: 4
    # prefix of leaf name: ${prefix}${index}
    prefix: leaf

Configuration#

clab deploy -t templated02.clab.gotmpl

Run configure.sh script to configure the lab

bash configure.sh

The configure.sh script relies on gomplate and gnmic.

  • gomplate is used to generate the necessary configuration variables based on the number of spines and leaves, their type and prefix.
  • gnmic is used to generate configuration payloads per node and push it using a gNMI Set RPC.