Giter Site home page Giter Site logo

cisco_sdwan_notifications's Introduction

Cisco SD-WAN Notifications

A Flask application to automatically send emails following an alert in SD-WAN.

Contacts

Solution Components

  • Cisco SD-WAN
  • Pythonanywhere
  • Python

Solution Overview

/IMAGES/image1.PNG

Installation/Configuration

Clone the repo :

$ git clone (link)

(Optional) Create Virtual Environment :

Initialize a virtual environment

virtualenv venv

Activate the virtual env

Windows venv\Scripts\activate

Linux source venv/bin/activate

Install the libraries :

$ pip install -r requirements.txt

Setup:

Webhook Reciver

  1. Webhooks allow vManage to send alerts to an external system in real-time in the event of an alarm. You need a web server that will receive the webhooks from vManage. Heroku, Pythonanywhere or ngrok (to run locally) are options that can be used.

Cisco SD-WAN

  1. Configure Webhooks on V-Manage. You can find the steps to configure Webhooks notifications here.

Notification-Email:

  1. Add the source email address and password which the email will be sent from to app.py. Additionally you will need to add the destination address.
source_address = " "
password = " "
destination_address = " "

(Note for Google Users: By default Google blocks sign-in attempts from apps which do not use modern security standards. You will need to turn on the less secure app access to allow the app to access and send emails. Here is the support page for the details.)

Notification-Cisco Webex:

  1. Create a Webex Chatbot from https://developer.webex.com/my-apps/new/bot.

  2. Add your Bot Token to app.py.

bot_token = " "
  1. Add the emails of Webex accounts to receive the notifications.
to = " "

Usage

Host your appliaction on a server. E.g: Heroku and pythonanywhere are options which you can use.

python app.py

LICENSE

Provided under Cisco Sample Code License, for details see LICENSE

CODE_OF_CONDUCT

Our code of conduct is available here

CONTRIBUTING

See our contributing guidelines here

DISCLAIMER:

Please note: This script is meant for demo purposes only. All tools/ scripts in this repo are released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use. You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.

cisco_sdwan_notifications's People

Watchers

 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.