Code Monkey home page Code Monkey logo

criteo-sonic-utilities's Introduction

Criteo SONiC utilities

This repository contains scripts and patches required to run our SONiC Saltstack modules.

We aim to merge thes patches / utilities with the official repositories at some point.

Supported versions

  • 201911
  • 202205

SONiC patches

Location: sonic-patches

It contains SONiC build image patches required to fully benefit from our Salt modules.

FRR mounted configuration

This patch has been merged upstream (see our commit here).

You only need to apply it manually if you are running a SONiC release which does not have the "split-unified" feature (SONiC < 202205).

This patch is about mounting FRR directory in the container, basically `-v /etc/frr/:/etc/sonic/frr/`.

This is required if you want to manage BGP configuration with our Salt modules.

Be careful, this patch changes the way the BGP configuration is provisioned. By default, SONiC computes the configuration from variables in the config_db.json and embedded template in the container. Meaning, any changes via VTYSH are not persistent.

There are two ways to apply it:

  • build and install your own SONiC image with our patch (recommended)
  • apply the patch in live on your devices:
    • ensure the docker is started with -v /etc/sonic/frr:/etc/frr:rw in /usr/bin/bgp.sh)
    • copy your FRR config on SONiC in /etc/sonic/frr
    • and restart the BGP container (be careful not to break your production!)

Utilities

Location: utilities

Important note: this script is inspired or derived from official SONiC scripts (SONiC utilities).

It contains some custom tools we use in our Salt modules. These are either patches of existing scripts (to add JSON support for instance), or custom scripts to get more info at once.

You just need to install them on the devices in /opt/salt/scripts/ directory. You can use a Salt state to do that (or a simple scp).

criteo-sonic-utilities's People

Contributors

arn-alt avatar kamaradclimber avatar kpetremann avatar

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.