Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
containerlab / etc / containerlab / lab-examples / templated01 / templated01.clab.gotmpl
Size: Mime:
name: templated01

topology:
  defaults:
    kind: nokia_srlinux
  kinds:
    nokia_srlinux:
      image: ghcr.io/nokia/srlinux

  nodes:
    # spines
{{- range $spineIndex := seq 1 $.spines.num }}
    {{ $.spines.prefix }}{{ $spineIndex }}:
      type: {{ $.spines.type }}
{{- end }}
    # leaves
{{- range $leafIndex := seq 1 $.leaves.num }}
    {{ $.leaves.prefix }}{{ $leafIndex }}:
      type: {{ $.leaves.type }}
{{- end }}

  links:
{{- range $spineIndex := seq 1 $.spines.num }}
    # {{ $.spines.prefix }}{{ $spineIndex }}
  {{- range $leafIndex := seq 1 $.leaves.num }}
    - endpoints: ["{{ $.spines.prefix }}{{ $spineIndex }}:e1-{{ $leafIndex }}", "{{ $.leaves.prefix }}{{ $leafIndex }}:e1-{{ $spineIndex }}"]
  {{- end }}
{{- end }}