Skip to content

Configuration management examples for SONiC

License

Notifications You must be signed in to change notification settings

vincent201881/sonic-mgmt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Software for Open Networking in the Cloud - SONiC

Management

Description

Tools for managing, configuring and monitoring SONiC

CII Best Practices

CII Best Practices

Docker Container Setup

Use the setup-container.sh script to automatically create and configure your sonic-mgmt Docker container. This script should be run directly from the root of the sonic-mgmt repo. You should also run this script as the user that will be using the created container.

Usage ./setup-container.sh [options]
Options with (*) are required
-h -?                 : get this help
-n <container name>   : (*) set the name of the Docker container 
-i <image ID>         : (*) specify Docker image to use
-d <directory>        : specify directory inside container to bind mount to sonic-mgmt root (default "/var/src/")

After running the script, you should be able to enter the container using the -u option and your username:

docker exec -u <user> -it <container name> bash

Contribution guide

All contributors must sign a contribution license agreement before contributions can be accepted.
How to become a contributer

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

About

Configuration management examples for SONiC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.4%
  • Shell 1.6%