Skip to content

lool/sonic-snap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snap Status

Installation

On an Ubuntu 16.04 or later system with all updates, check you have snapd installed and run a test snap:

snap version
sudo snap install hello-world
hello-world

To install SONiC:

sudo snap install --devmode --edge sonic-lool

HWSKU

The switch model and port layout aren't automatically detected; to set the SONiC "HWSKU", use snap set and restart the services:

sudo snap set sonic-lool hwsku=wedge100-32x100G
sudo systemctl restart snap.sonic-lool.swss

These are the profiles currently available and their support status:

Switch SONiC HWSKUs Origin and Snap status
Arista 7050X arista_a7050_qx32 upstream; unstested
Dell S6000 dell_s6000 upstream; unstested
Dell S6100 dell_s6100 upstream; unstested
Dell S6100 dell_s6100 upstream; unstested
Mellanox SN2700 mlnx_2700 upstream; unstested
Wedge 100-32X wedge100 Guohan; segfaults
Wedge 100-32X wedge100-128x25G Wally; syncd stuck?
Wedge 100-32X wedge100-32x100G Wally; works!
Wedge 100-32X wedge100-32x40G Wally; syncd stuck?
Wedge-16X (Wedge 40) wedge40 Guohan; works!
Wedge-16X (Wedge 40) wedge40-16x40G Wally; fails
Wedge-16X (Wedge 40) wedge40-64x10G Wally; untested

MAC address

The default MAC address is the one of the management interface; to override it:

sudo snap set sonic-lool mac-address=xx:yy:zz:aa:bb:cc

Operations and debugging

SWSS output

To see the output of the various daemons, run:

sudo journalctl -u snap.sonic-lool.swss  -f

Redis access

The included redis-cli wrapper sets up the proper socket connection; note that SONiC uses DB 1:

sudo sonic-lool.redis-cli PING
sudo sonic-lool.redis-cli -n 1 HLEN HIDDEN

Clean restart

To clear all of SONiC's state and start afresh:

sudo systemctl stop snap.sonic-lool.swss
sudo sonic-lool.redis-cli FLUSHALL
sudo systemctl start snap.sonic-lool.swss

Experimental P4 backend

This snap includes two backends, broadcom and p4, which allow selecting which set of binaries to run. To chose the p4 backend and restart the services:

sudo snap set sonic-lool backend=p4
sudo systemctl restart snap.sonic-lool.swss

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages