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.
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.
For your convenience, you can install prepared packages on Debian Jessie:
sudo apt-get install swss
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
For general questions, setup help, or troubleshooting:
For bug reports or feature requests, please open an Issue.
See the contributors guide for information about how to contribute.
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:
[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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。