ONES YAML Config Generation
Last updated
Last updated
Generate ONES YAML template using NCP:
User: generate ones yaml config for 2 leaf and 2 spine
NCP:
Inventory: SSpines: 0 Spines: 2 Leafs: 2 Tors: 0 Connectivity: SSpine: [] Spine: - switchId: 1 switchName: '"Spine-1"' ipAddress: '"192.168.209.1"' ASN: 2011 Credentials: password: '"admin"' user: '"admin"' mclag: null Links: - link: '"S1_Ethernet0 | L1_Ethernet0"' staticLink: true properties: null - link: '"S1_Ethernet1 | L2_Ethernet0"' staticLink: true properties: null - switchId: 2 switchName: '"Spine-2"' ipAddress: '"192.168.209.2"' ASN: 2012 Credentials: password: '"admin"' user: '"admin"' mclag: null Links: - link: '"S2_Ethernet0 | L1_Ethernet1"' staticLink: true properties: null - link: '"S2_Ethernet1 | L2_Ethernet1"' staticLink: true properties: null Leaf: - switchId: 1 switchName: '"Leaf-1"' ipAddress: '"192.168.210.1"' ASN: 3011 Credentials: password: '"admin"' user: '"admin"' mclag: null Links: - link: '"L1_Ethernet0 | S1_Ethernet0"' staticLink: true properties: null - link: '"L1_Ethernet1 | S2_Ethernet0"' staticLink: true properties: null - switchId: 2 switchName: '"Leaf-2"' ipAddress: '"192.168.210.2"' ASN: 3012 Credentials: password: '"admin"' user: '"admin"' mclag: null Links: - link: '"L2_Ethernet0 | S1_Ethernet1"' staticLink: true properties: null - link: '"L2_Ethernet1 | S2_Ethernet1"' staticLink: true properties: null Tor: [] BGP: BGP_U: false ND_RA: 30 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: LeafSpine: null LeafTor: null Host: null NTP: server: '"100.100.10.10"' timezone: '"Asia/Kolkata"' SYSLOG: server: '"100.100.10.10"' SNMP: trapserver: '"100.100.10.10"' Parameters: vlan: '"200-205"' anycast_gateway: '"100.10.0.0/23"' hosts_per_vlan: 10