Skip to content

Display real time topology using gRPC, IOS-XR Telemetry and a very small Mongo database

License

Notifications You must be signed in to change notification settings

CiscoSE/tviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Topology Viewer with gRPC and XR telemetry

Example of how to build a real time topology using gRPC, XR Telemetry and a very small Mongo database.

You can add devices directly from the web interface and they will be configured with the correct telemetry subscription.

Add Device

Then, you will see the devices coming up in the graph

Topology

It uses the ISIS adjacency and interface IP information to build the links between devices. In order to get real time information without querying all the time to the server javascript web-sockets are used. The rest of the actions (e.g. get devices, add devices) are done with traditional get/post actions using angular JS

The database address needs to be added as an env variable called TELEMETRY_DB

Usage

From your go path:

Get the code

  • go get sfloresk/tviewer

Start the database as a container

  • docker run --name tviewerdb -p 27017:27017 -d mongo

Set database env variable

  • export TELEMETRY_DB=localhost

Compile project

  • go install github.com/sfloresk/tviewer

Run

  • ./bin/tviewer

There is a docker file in the repo that you can use as example to build a container if you like

Current Limitations

  • Only ISIS support
  • Only IPv4 topologies

Contacts

About

Display real time topology using gRPC, IOS-XR Telemetry and a very small Mongo database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published