Git Product home page Git Product logo

simple-network-template's Introduction

Simple Network Templating

sample variables.csv and template.txt located in sample

  1. Suggested folder structure:

    $HOME/simple-network-templates/
    └── project-name/
        ├── configs/
        ├── template.txt
        └── variables.csv
    
  2. Create a template.txt config file, (file extension does not matter, as long as it is a plaintext file)

    a. Encapsulate the data you want to replace in double curly braces, {{LIKE SO}}

    ! example template
    
    config t
    
    hostname {{HOSTNAME}}
    int vlan 1
    ip add {{VLAN1IP}} {{VLAN1MASK}}
  3. Create a variables.csv file in the same folder as your template file.

    It must be called variables.csv

    The A1 entry must be VARIABLES

    ex. variables.csv

    VARIABLES DEVICE1 DEVICE2
    HOSTNAME router1 router2
    VLAN1IP 192.168.0.1 192.168.1.1
    VLAN1MASK 255.255.255.0 255.255.255.0
  4. Clone this repo, and run the gui

    git clone https://github.com/Noxsios/Simple-Network-Template.git
    
    cd Simple-Network-Template
    
    & .\gui.ps1
  5. Drag and drop your template text file into the empty window, then click START.

  6. Your template will be applied to the devices listed in the variables file. The files ending in _config located in the configs folder are the generated config files.

  7. To overwrite your changes, simply rerun with different values in your variables.csv.


Credits

Drag n Drop GUI derived from : this

Testing

Invoke-Pester -Output Detailed .\cli.Tests.ps1

simple-network-template's People

Contributors

noxsios avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jamsgrove

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.