Vlink
From Sanet
Contents |
Vlink
Introduction
Vlinks is a Sanet's subapplication that makes it possible to create "virtual" links between any pair of interfaces.
This subapplication requires additional database data and it's not enabled by default.
Differences with normal links
A vlink has no restrictions about what pair of interfaces it links together.
- You can link the same pair of interfaces several times.
- You can link an already-linked interface with any other interface.
+-----------vlink-----------+ | | host1--eth0---------link-----------eth0--host2 | | | +---------vlink----------eth1--host3 | +-----------vlink----------eth0--host4
Web Maps
Inside web maps, vlinks are rendered in the same way as real links. The state of the link (the color of the end of the link) depends on the status of the linked interface.
Installation
Add the application "vlink" the the list of INSTALLED_APPS.
Example: add the following lines to your $SANET_HOME/settings.py
if not 'vlink' in INSTALLED_APPS: INSTALLED_APPS.append('vlink')
And update the database schema:
python manage.py syncdb
Configuration
CLI commands
To add a virtual link between two interfaces go into configuration prompt and use the command:
vlink <node1> <iface1> <node2> <iface2>
To remove a vlink:
no vlink <node1> <iface1> <node2> <iface2>