Vlink

From Sanet

Revision as of 11:09, 25 March 2011 by Dbilli (Talk | contribs)
Jump to: navigation, search

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 couple of interfaces it links together.

            +-----------vlink-----------+
            |                           |
    host1--eth0---------link-----------eth0--host2
            | |
            | +---------vlink----------eth1--host3
            |
            +-----------vlink----------eth0--host4

Web Maps

Inside web maps, vlinks are rendered as like as the real links. The state of the link (the color of the link) depends on linked interfaces' status.

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 use the command

vlink <node1> <iface1> <node2> <iface2>

To remove a vlink:

no vlink <node1> <iface1> <node2> <iface2>
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox