Example Testbed FileΒΆ

# Example
# -------
#
#   an example two router testbed

extends: base_tb_config.yaml

testbed:
    name: sampleTestbed
    alias: topologySampleTestbed
    tacacs:
        login_prompt: "login:"
        password_prompt: "Password:"
        username: admin
    passwords:
        tacacs: CSCO12345^
        enable:  lab
        line: lab
    servers:
        tftp:
            server: ott2lab-tftp1
            address: 223.255.254.254
            path: ""
            username: rcpuser
            password: 123rcp!
        ntp:
            server: 102.0.0.102
    custom:
        owner: john
        contacts: mai@domain.com

devices:
    ott-tb1-n7k4:
        type: Nexus 7000
        alias: device-1
        connections:
            a:
              protocol: telnet
              ip: 10.85.84.80
              port: 2001
            b:
              protocol: telnet
              ip: 10.85.84.80
              port: 2003
            alt:
              protocol: telnet
              ip: 5.19.27.5
        clean:
            pre_clean: |
                      switchname %{self}
                      license grace-period
                      feature telnet
                      interface mgmt0
                          ip addr %{self.connections.alt.ip}/24
                      no shut
                      vrf context management
                          ip route 101.0.0.0/24 5.19.27.251
                          ip route 102.0.0.0/24 5.19.27.251
            post_clean: |
                      switchname %{self}
                      license grace-period
                      feature telnet
                      interface mgmt0
                          ip addr %{self.connections.alt.ip}/24
                      no shut
                      vrf context management
                          ip route 101.0.0.0/24 5.19.27.251
                          ip route 102.0.0.0/24 5.19.27.251
        custom:
            SUP1: Supervisor Module-1X
            SUP2: Supervisor Module-1X

    ott-tb1-n7k5:
        type: Nexus 7000
        alias: device-2
        connections:
            a:
              protocol: telnet
              ip: 10.85.84.80
              port: 2006
            b:
              protocol: telnet
              ip: 10.85.84.80
              port: 2009
            alt:
              protocol: telnet
              ip: 5.19.27.6
        clean:
            pre_clean: |
                        switchname %{self}
                        license grace-period
                        feature telnet
                        interface mgmt0
                            ip addr %{self.connections.alt.ip}/24
                        vrf context management
                            ip route 101.0.0.0/24 5.19.27.251
                            ip route 102.0.0.0/24 5.19.27.251
            post_clean: |
                      switchname %{self}
                      license grace-period
                      feature telnet
                      interface mgmt0
                          ip addr %{self.connections.alt.ip}/24
                      no shut
                      vrf context management
                          ip route 101.0.0.0/24 5.19.27.251
                          ip route 102.0.0.0/24 5.19.27.251
        custom:
            SUP1: Supervisor Module-1X
            SUP2: Supervisor Module-1X

topology:
    ott-tb1-n7k4:
        interfaces:
            Ethernet4/1:
                alias: device1-intf1
                link: rtr1-rtr2-1
                type: ethernet
            Ethernet4/2:
                alias: device1-intf2
                link: rtr1-rtr2-2
                type: ethernet
            Ethernet4/6:
                link: loopback-1
                type: ethernet
            Ethernet4/7:
                link: loopback-1
                type: ethernet
            Ethernet4/45:
                link: loopback-2
                type: ethernet
            Ethernet4/46:
                link: loopback-2
                type: ethernet

    ott-tb1-n7k5:
        interfaces:
            Ethernet5/1:
                alias: device2-intf1
                link: rtr1-rtr2-1
                type: ethernet
            Ethernet5/2:
                alias: device2-intf2
                link: rtr1-rtr2-2
                type: ethernet