Giter Site home page Giter Site logo

srlinux-scrapli's Introduction

SR Linux convenience functions for Scrapligo

This module contains convenience functions for working with Scrapligo and SR Linux.

AddSelfSignedServerTLSProfile

The AddSelfSignedServerTLSProfile function uses SR Linux CLI command to generate a self-signed certificate and key. It uses those two artifacts to create a server TLS profile for securing gNMI, HTTPS, etc.

This function intends to simplify TLS certificate provisioning in a lab setting, where self-signed certificates are a norm. This function is usually called the first thing after SR Linux boots to ensure that the gNMI service can be enabled.

This function takes the following arguments:

  • *network.Driver - an initialized network driver.
  • profileName - a name of the server profile that will be created for the generated key/cert. If empty, the default name self-signed-tls-profile will be used.
  • authClient - a boolean value indicating if the server TLS profile should have authenticate-client option set to true or false.

Note, that the network.Driver should already be opened before calling this function and with the PtyWidth sufficient to accommodate certificate/key size.

WaitSRLMgmtSrvReady

This function blocks until the SR Linux management server fully boots.

srlinux-scrapli's People

Contributors

carlmontanari avatar hellt avatar limehat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

carlmontanari

srlinux-scrapli'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.