Code Monkey home page Code Monkey logo

junos-py-demo's Introduction

junos-py-demo

Demo Scripts to demonstrate ability to automate Junos with Python

About

This repository provides some scripts to demonstrate how to automate Junos with Python, So There is 3 different sections:

  • Build
  • Run
  • Audit

All scripts are located under script directory of this repository

Setup environment:

Setup Python for windows

Download latest version of Python 2.7 available on Python.org website: https://www.python.org/downloads/windows/

Some details are available at the following page to correctly setup environment and check all dependencies are installed.

Create LAB description

All scripts will use the same dictionnary file to list devices involved in this LAB / POC. This file is located under script directory and named scripts/lab-poc.yml. Below is an example of the content and should be changed according your setup:

--- 
   - 172.30.108.228
   - 172.30.108.229
   - 172.30.108.230
   - 172.30.108.232
   - 172.30.108.233
   - 172.30.108.234
   - 172.30.108.236

An example is available at the following page

Script usage

All scripts are using an option to let you change this name (check option -l for each script)

All scripts use parameters to ensure they can match your environment. They have at least following options:

  • --username | -u: set username used for opening connection on devices
  • --password | -p: set password used for opening connection on devices

To list all options available for each script, you can use --help or -h trigger to display help.

Scripts will work at 3 different steps of network life:

  • Build: details of these scripts are available here
  • Run: details of these scripts are available here
  • Audit: details of these scripts are available here

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

Author

  • Thomas Grimonet / Juniper Networks / Twitter
  • Khelil Sator / Juniper Networks

junos-py-demo's People

Contributors

titom73 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

junos-py-demo'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.