Code Monkey home page Code Monkey logo

sonic-snap's Introduction

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

sonic-snap's People

Contributors

evandandrea avatar lool avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sonic-snap's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.