SONiC Switch State Service (SwSS)
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github [github]: Update pull request template comments Sep 20, 2017
cfgmgr [teammgrd] Fix inconsistent port admin status (#755) Jan 30, 2019
config autotools: Initial version Mar 6, 2016
debian [swssconfig]: Remove deprecated qos buffer configurations (#726) Dec 23, 2018
doc Move warm_restart enable/disable config to stateDB WARM_RESTART_ENABL… Feb 13, 2019
fpmsyncd
m4 autotools: Initial version Mar 6, 2016
neighsyncd [neighsyncd] increase neighbor syncd restore timeout to 110 seconds (#… Feb 7, 2019
orchagent Fix incorrect ACL CRM increment, resulting orchagent crash (#800) Feb 23, 2019
portsyncd If available, read port settings from Config DB first (#723) Jan 23, 2019
swssconfig [swssconfig]: Remove deprecated qos buffer configurations (#726) Dec 23, 2018
teamsyncd [WR]: Add reconciliation logic for teamsyncd (#725) Dec 23, 2018
tests [fdborch] Store vlan id of FDB entry instead of port pvid into stateD… ( Feb 20, 2019
warmrestart Improve comments for neighbor warmrestart related functions and warmR… Jan 2, 2019
.gitignore [intfmgrd]: Merge intfsyncd into intfmgrd (#635) Dec 27, 2018
LICENSE doc: Adding documentations Mar 15, 2016
MAINTAINERS doc: Adding documentations Mar 15, 2016
Makefile.am [intfmgrd]: Merge intfsyncd into intfmgrd (#635) Dec 27, 2018
README.md [doc] Fix the build checker links (#531) Jul 2, 2018
ThirdPartyLicenses.txt fpmsyncd: Adding fpm.h file into repo (#16) Apr 20, 2016
autogen.sh automake: Setting strictness to foreign for Automake May 9, 2016
configure.ac [intfmgrd]: Merge intfsyncd into intfmgrd (#635) Dec 27, 2018
package.cfg packaging: Adding debian packaging (debian/*) Mar 8, 2016

README.md

BroadcomBroadcom CaviumCavium MellanoxMellanox P4P4

SONiC - SWitch State Service - SWSS

Description

The SWitch State Service (SWSS) is a collection of software that provides a database interface for communication with and state representation of network applications and network switch hardware.

Getting Started

Install

Before installing, add key and package sources:

sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
echo 'deb http://apt-mo.trafficmanager.net/repos/sonic/ trusty main' | sudo tee -a /etc/apt/sources.list.d/sonic.list
sudo apt-get update

Install dependencies:

sudo apt-get install redis-server -t trusty
sudo apt-get install libhiredis0.13 -t trusty

Install building dependencies:

sudo apt-get install libtool
sudo apt-get install autoconf automake
sudo apt-get install dh-exec

There are a few different ways you can install SONiC-SWSS.

Install from Debian Repo

For your convenience, you can install prepared packages on Debian Jessie:

sudo apt-get install swss

Install from Source

Checkout the source: git clone https://github.com/Azure/sonic-swss.git and install it yourself.

Get SAI header files into /usr/include/sai. Put the SAI header files that you use to compile libsairedis into /usr/include/sai

Install prerequisite packages:

sudo apt-get install libswsscommon libswsscommon-dev libsairedis libsairedis-dev

You can compile and install from source using:

./autogen.sh
./configure
make && sudo make install

You can also build a debian package using:

./autogen.sh
fakeroot debian/rules binary

Need Help?

For general questions, setup help, or troubleshooting:

For bug reports or feature requests, please open an Issue.

Contribution guide

See the contributors guide for information about how to contribute.

GitHub Workflow

We're following basic GitHub Flow. If you have no idea what we're talking about, check out GitHub's official guide. Note that merge is only performed by the repository maintainer.

Guide for performing commits:

  • Isolate each commit to one component/bugfix/issue/feature
  • Use a standard commit message format:
[component/folder touched]: Description intent of your changes

[List of changes]

Signed-off-by: Your Name your@email.com

For example:

swss-common: Stabilize the ConsumerTable

* Fixing autoreconf
* Fixing unit-tests by adding checkers and initialize the DB before start
* Adding the ability to select from multiple channels
* Health-Monitor - The idea of the patch is that if something went wrong with the notification channel,
  we will have the option to know about it (Query the LLEN table length).

  Signed-off-by: user@dev.null
  • Each developer should fork this repository and add the team as a Contributor
  • Push your changes to your private fork and do "pull-request" to this repository
  • Use a pull request to do code review
  • Use issues to keep track of what is going on