Skip to content

Commit

Permalink
Added SONiC node and image definitions (#53)
Browse files Browse the repository at this point in the history
* Added SONiC Community and Enterprise node definitions

* Update image file paths

* Update image file paths

* Update README.md

* Update image path

* Updated file paths

* Updated README.md

* Updated node definition
  • Loading branch information
alexanderdeca authored Nov 19, 2024
1 parent 02ce8eb commit 8a340d9
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 0 deletions.
14 changes: 14 additions & 0 deletions node-definitions/sonic/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
This directory contains the node definition for SONiC


# Notes

default username and password are admin/YourPaSsWoRd
mgmt interface defaults to dhcp

download community image here: https://sonic.software
documentation can be found here: https://github.com/sonic-net/sonic/wiki

![](/readme_images/sonic-boot.png)

![](/readme_images/sonic-ifconfig.png)
58 changes: 58 additions & 0 deletions node-definitions/sonic/SONiCv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
id: SONiCv
general:
nature: switch
read_only: false
device:
interfaces:
has_loopback_zero: true
physical:
- Eth0
- Ethernet0
- Ethernet4
- Ethernet8
- Ethernet12
- Ethernet16
- Ethernet20
- Ethernet24
- Ethernet28
serial_ports: 1
default_count: 9
loopback:
- Loopback0
ui:
visible: true
label_prefix: SONiCv-
icon: switch
label: SONiC Virtual Switch (VM)
sim:
linux_native:
libvirt_domain_driver: kvm
driver: server
disk_driver: virtio
ram: 4096
cpus: 2
cpu_limit: 100
nic_driver: e1000
efi_boot: false
boot:
completed:
- sonic login
timeout: 240
uses_regex: false
inherited:
image:
ram: true
cpus: true
cpu_limit: true
data_volume: true
boot_disk_size: true
node:
ram: true
cpus: true
cpu_limit: true
data_volume: true
boot_disk_size: true
configuration:
generator:
driver: null
schema_version: 0.0.1
Binary file added readme_images/sonic-boot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme_images/sonic-ifconfig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions virl-base-images/sonic/SONiCv-20240406-8.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
id: SONiCv-20240406-8
node_definition_id: SONiCv
description: ''
label: SONiC Virtual Switch (Build 20240406)
disk_image: sonic-vs-20240406-8.qcow2
read_only: false
disk_subfolder: SONiCv-20240406-8
schema_version: 0.0.1
8 changes: 8 additions & 0 deletions virl-base-images/sonic/SONiCv-Enterprise-4.2.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
id: SONiCv-Enterprise-4.2.0
node_definition_id: SONiCv
description: ''
label: SONiCv Enterprise 4.2.0 (Dell)
disk_image: Enterprise_SONiC_OS_4.2.0.qcow2
read_only: false
disk_subfolder: SONiCv-Enterprise-4.2.0
schema_version: 0.0.1

0 comments on commit 8a340d9

Please sign in to comment.