Coder Social home page Coder Social logo

app-net-interface / awi-grpc-catalyst-sdwan Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 0.0 119 KB

Cisco Catalyst SDWAN controller plugin for AWI.

License: Apache License 2.0

Dockerfile 1.11% Makefile 1.84% Go 97.05%
catalyst-sdwan catalyst-network catalyst-8k netdevops

awi-grpc-catalyst-sdwan's Introduction

awi-grpc-catalyst-sdwan

This is the AWI GRPC plugin for Cisco catalyst SDWAN. This plugin can run independently on your laptop or run within your Kubernetes cluster as part of AWI Operator.

Running

Check out the code and from your CLI pass Catalyst SDWAN auth parameters in command line, or as environment variables.

VMANAGE_USERNAME=<your_username> VMANAGE_PASSWORD=<your_password> make run

Use config.yaml in the root directory for configuration .

Configuration

Below is the sample configuration in YAML:

controllers:
  sdwan:
    controller_connection_retries: 200 # How many times to try before giving up
    name: cisco-sdwan.                 # Controller name
    retries_interval: 5s               # Retry frequency
    secure_connection: false           # Set it to false for self signed certificates.
    url: https://<<catalyst-sdwan-controller-host-name>>:<port>/ # SDWAN controller URL
    vendor: cisco
globals:
  #hostname: 127.0.0.1                 # if empty listen on all available IP addresses
  port: 50051                          # GRPC port number
  controller_connection_retries: 100
  db_name: awi.db                      # Local database port for storing state.
  #log_file: awi.log                   # Log file name
  log_level: DEBUG                     # Log level
  retries_interval: 2s
  secure_connection: false
  #kube_config_file: kubeconfig

Docker instructions

Building and pushing image

To build your image:

make docker-build IMG=<your-repo>/<name>

To push it to your repository:

make docker-push IMG=<your-repo>/<name>

ℹī¸ Info: You can also do both steps at once with make docker-build docker-push IMG=<your-repo>/<name>

Running docker image

The awi-grpc-catalyst-sdwan accepts following files:

  • /root/config/config.yaml - the configuration file
  • /root/.aws/credentials - the credentials for AWS
  • /app/gcp-key/gcp-key.json - the credentials for GCP
  • /root/.kube/config - configuration and credentials for k8s cluster

In order tp configure and gain access for different providers for awi-grpc-catalyst-sdwan one need to mount these files while starting container.

To configure VMANAGE Credentials, specify the following environment variables for the container:

  • VMANAGE_USERNAME
  • VMANAGE_PASSWORD

Contributing

Thank you for interest in contributing! Please refer to our contributing guide.

License

awi-grpc-catalyst-sdwan is released under the Apache 2.0 license. See LICENSE.

awi-grpc-catalyst-sdwan is also made possible thanks to third party open source projects.

awi-grpc-catalyst-sdwan's People

Contributors

saswatp avatar iosetek avatar

Stargazers

 avatar  avatar

Watchers

Lori Jakab avatar Alberto Rodriguez-Natal avatar  avatar  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.