# LeafOnly-EC

## Template Details: LeafOnly-EC

* Devices used
  * 2- Spine Devices
  * 4- Leaf Devices
  * 4- End Host



### LeafOnly-EC Standard Template

```yaml
Inventory:
  SSpines: 0
  Spines: 2
  Leafs: 4
  Tors: 0
Connectivity:
  SSpine: []
  Spine: []        
  Leaf:
    - switchId: 1
      switchName: "Leaf-1"
      ipAddress: "100.100.10.13"
      ASN: 1001 
      Credentials:
        user: "admin"
        password: "admin"
      mclag:
      Links:
        - link: "L1_Ethernet48 | L5_Ethernet0"
          staticLink: true
          properties:
        - link: "L1_Ethernet52 | L6_Ethernet0"
          staticLink: true
          properties:
        - link: "L1_Ethernet56 |  L2_Ethernet56"
          staticLink: true
          properties:
        - link: "L1_Ethernet45 |  L3_Ethernet45"
          staticLink: true
          properties:
        - link: "L1_Ethernet46 |  L4_Ethernet45"
          staticLink: true
          properties:                    
        - link: "L1_Ethernet0 |  H1_Ethernet0"
          staticLink: true
          properties:
            mode: "L2-Access"
            vlan: 201
            mc_po_group: 201
        - link: "L1_Ethernet4 |  H2_Ethernet0"
          staticLink: true
          properties:
            mode: "L2-Access"
            vlan: 202
            mc_po_group: 202
    - switchId: 2
      switchName: "Leaf-2"
      ipAddress: "100.100.10.14"
      ASN: 1002 
      Credentials:
        user: "admin"
        password: "admin"
      mclag:
      Links:
        - link: "L2_Ethernet48 | L5_Ethernet4"
          staticLink: true
          properties:
        - link: "L2_Ethernet52 | L6_Ethernet4"
          staticLink: true
          properties:
        - link: "L2_Ethernet56 | L1_Ethernet56"
          staticLink: true
          properties:
        - link: "L2_Ethernet45 | L3_Ethernet46"
          staticLink: true
          properties:
        - link: "L2_Ethernet46 | L4_Ethernet46"
          staticLink: true
          properties:                    
        - link: "L2_Ethernet0 |  H1_Ethernet1"
          staticLink: true
          properties:
            mode: "L2-Access"
            vlan: 203
            mc_po_group: 203
        - link: "L2_Ethernet4 |  H2_Ethernet1"
          staticLink: true
          properties:
            mode: "L2-Access"
            vlan: 204
            mc_po_group: 204
    - switchId: 3
      switchName: "Leaf-3"
      ipAddress: "100.100.10.15"
      ASN: 1003 
      Credentials:
        user: "admin"
        password: "admin"
      mclag:
      Links:
        - link: "L3_Ethernet48 | L5_Ethernet8"
          staticLink: true
          properties:
        - link: "L3_Ethernet52 | L6_Ethernet8"
          staticLink: true
          properties:
        - link: "L3_Ethernet56 | L4_Ethernet56"
          staticLink: true
          properties:
        - link: "L3_Ethernet45 | L1_Ethernet45"
          staticLink: true
          properties:
        - link: "L3_Ethernet46 | L2_Ethernet45"
          staticLink: true
          properties:                    
        - link: "L3_Ethernet0 |  H3_Ethernet0"
          staticLink: true
          properties:
            mode: "L2-Access"
            vlan: 205
            mc_po_group: 205
        - link: "L3_Ethernet4 |  H4_Ethernet0"
          staticLink: true
          properties:
            mode: "L2-Access"
            vlan: 206
            mc_po_group: 206
    - switchId: 4
      switchName: "Leaf-4"
      ipAddress: "100.100.10.16"
      ASN: 1004 
      Credentials:
        user: "admin"
        password: "admin"
      mclag:
      Links:
        - link: "L4_Ethernet48 | L5_Ethernet12"
          staticLink: true
          properties:
        - link: "L4_Ethernet52 | L6_Ethernet12"
          staticLink: true
          properties:
        - link: "L4_Ethernet56 | L3_Ethernet56"
          staticLink: true
          properties:
        - link: "L4_Ethernet45 | L1_Ethernet46"
          staticLink: true
          properties:
        - link: "L4_Ethernet46 | L2_Ethernet46"
          staticLink: true
          properties:                    
        - link: "L4_Ethernet0 |  H3_Ethernet1"
          staticLink: true
          properties:
            mode: "L2-Access"
            vlan: 207
            mc_po_group: 207
        - link: "L4_Ethernet4 |  H4_Ethernet1"
          staticLink: true
          properties:
            mode: "L2-Access"
            vlan: 208
            mc_po_group: 208
    - switchId: 5
      switchName: "Leaf-5-Spine-1"
      ipAddress: "100.100.10.11"
      ASN: 1005 
      Credentials:
        user: "admin"
        password: "admin"
      mclag:     
      Links:
        - link: "L5_Ethernet0 | L1_Ethernet48"
          staticLink: true
          properties:
        - link: "L5_Ethernet4 | L2_Ethernet48"
          staticLink: true
          properties:
        - link: "L5_Ethernet8 | L3_Ethernet48"
          staticLink: true
          properties:
        - link: "L5_Ethernet12 | L4_Ethernet48"
          staticLink: true
          properties:
        - link: "L5_Ethernet124 | L6_Ethernet124"
          staticLink: true
          properties:           
    - switchId: 6
      switchName: "Leaf-6-Spine-2"
      ipAddress: "100.100.10.12"
      ASN: 1006 
      Credentials:
        user: "admin"
        password: "admin"
      mclag: 
      Links:
        - link: "L6_Ethernet0 | L1_Ethernet52"
          staticLink: true
          properties:
        - link: "L6_Ethernet4 | L2_Ethernet52"
          staticLink: true
          properties:
        - link: "L6_Ethernet8 | L3_Ethernet52"
          staticLink: true
          properties:
        - link: "L6_Ethernet12 | L4_Ethernet52"
          staticLink: true
          properties:
        - link: "L6_Ethernet124 | L5_Ethernet124"
          staticLink: true
          properties:
  Tor: []
BGP:
PhysicalIfCfg:
  FEC: "Off"
  MTU: 9000
  AdminStatus: "Up"
ASN:
  SSpine: "10000-20000"
  Spine: "21000-50000"
  Leaf: "51000-60000"
  Tor: "61000-70000"
IPv4Pool:
  Loopback: "10.10.10.0/24"
  LeafSpine: "40.0.0.0/24"
  LeafTor: "39.0.0.0/24"
  Host: "49.0.0.0/24"
IPv6Pool:
NTP:
  server: "100.100.10.10"
  timezone: "Asia/Kolkata"
SYSLOG:
  server: "100.100.10.10"
SNMP:
  trapserver: "100.100.10.10"
Parameters:
  vlan: "201,202,203,204,205,206,207,208"
  anycast_gateway: "100.10.0.0/23"
  hosts_per_vlan: 10
L2LS:
  enabled: false
  mode: "L2" # OverL2 and OverL3
```
