Skip to content

Latest commit

History

51 Commits

Folders and files

NameName
Last commit message
Last commit date

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:

SwitchSONiC HWSKUsOrigin and Snap status
Arista 7050Xarista_a7050_qx32upstream; unstested
Dell S6000dell_s6000upstream; unstested
Dell S6100dell_s6100upstream; unstested
Dell S6100dell_s6100upstream; unstested
Mellanox SN2700mlnx_2700upstream; unstested
Wedge 100-32Xwedge100Guohan; segfaults
Wedge 100-32Xwedge100-128x25GWally; syncd stuck?
Wedge 100-32Xwedge100-32x100GWally; works!
Wedge 100-32Xwedge100-32x40GWally; syncd stuck?
Wedge-16X (Wedge 40)wedge40Guohan; works!
Wedge-16X (Wedge 40)wedge40-16x40GWally; fails
Wedge-16X (Wedge 40)wedge40-64x10GWally; 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

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages