GithubHelp home page GithubHelp logo

route_aggregator's Introduction

Name: Route Aggregator

Author: Colin McIntosh

Current Version: 0.1

Version Date: 08/28/2014

License: MIT

Description

This tool takes an input file of static routes, combines routes into a
shorter prefix lenth, if possible, and creates an output file with the
resulting static routes.

Usage Guidelines

The tool will aggregate contiguous static routes have the same next-hop
and combine to form a supernet.
The tool will read any lines in the input file that follow the format of:
	"ip route x.x.x.x/y z.z.z.z"
	OR
	"ip route x.x.x.x/y.y.y.y z.z.z.z"
	OR
	"ip route x.x.x.x y.y.y.y z.z.z.z"
This means that the input file can be only a line-delimited listing of
static routes or a running-config. The output file will only contain the
resulting static routes.
The tool will ONLY aggregate IPv4 routes.
The tool will NOT aggregate routes with an interface destination.
The tool will NOT preserve remarks.

Command Line Usage

> python route_aggregator.py [input_file] [output_file]
 
input_file - (Optional) This is the path of the file that contains the
						static routes to be aggregated. [Default = in.txt]
						
output_file - (Optional) This is the path of the file that will contain the
						 resulting static routes. [Default = out.txt]

Changelog

v0.1 - Initial build. Contains only basic functionality.

To-do

-IPv6 support
-Preserve in-line remarks
-Support routes with destination interface
-Full command-line support
-Juniper static route support

route_aggregator's People

Watchers

Colin McIntosh 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.