Skip to main content

A BGP looking glass based on the Django web framework

Project description

[![Build Status](](

# DjangoLG
A BGP looking glass based on the Django web framework

## Features
* User interface
* Polished web UI based on jQuery and Bootstrap
* Ajax/JSON query processing
* Customisable Django templates
* Supported query types
* BGP paths/bestpath/longer paths by prefix
* BGP paths by AS_PATH regexp
* ICMP Ping
* Traceroute
* Framework for adding new query types easily
* Supported NOS command dialects
* Cisco IOS-XE/Classic
* "Dialect" framework for defining new syntax mappings
* Security
* SSH2-only command execution
* Pubkey authentication (coming soon)
* Multi-layered parameter verification
* Session and command authorisation framework:
* Google reCaptcha support
* Source IP address enforcement per session
* Max queries enforcement per session
* Max time enforcement per session

## Quick Start
1. Install from PyPI (possibly in a virtenv):
pip install djangolg

2. Add `djangolg.apps.DjangolgConfig` to your project `INSTALLED_APPS`.
3. Add an include (e.g. `url(r'^', include('djangolg.urls')),`) to your project `urlpatterns`.
4. Copy example settings in the `djangolg` package directory and edit the defaults:

5. Create your database tables using ``:
python makemigrations djangolg
python migrate

6. Create a set of SSH credentials, a location and some routers:
python lg add credentials --name default_credentials --type 0 --username test_user --password test_password
python lg add locations --name Some Place --sitecode ABC-123
python lg add routers --hostname --dialect cisco_ios-xe --credentials 1 --location 1
python lg add routers --hostname --dialect cisco_ios-xe --credentials 1 --location 1

7. Run the development server, open a browser, and check that everything is working:
python runserver

## Feedback
DjangoLG is maintained by [Workonline Communications (Pty) Ltd](

Get in touch with us at or [raise an issue](

## License
DjangoLG is released under the [Apache License version 2.0](

© 2016 Workonline Communications (Pty) Ltd

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for djangolg, version 0.1.5
Filename, size File type Python version Upload date Hashes
Filename, size (73.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page