Vlink

From Sanet

(Difference between revisions)
Jump to: navigation, search
(Installation)
 
Line 9: Line 9:
===Differences with normal links===
===Differences with normal links===
-
A vlink has no restrictions about what couple of interfaces it links together.
+
A vlink has no restrictions about what pair of interfaces it links together.
-
* You can link the same couple of interfaces several times.
+
* You can link the same pair of interfaces several times.
* You can link an already-linked interface with any other interface.
* You can link an already-linked interface with any other interface.
Line 26: Line 26:
===Web Maps===
===Web Maps===
-
Inside web maps, vlinks are rendered as like as the real links. The state of the link (the color of the link)
+
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 linked interfaces' status.
+
depends on the status of the linked interface.
==Installation==
==Installation==
Line 50: Line 50:
===CLI commands===
===CLI commands===
-
To add a virtual link between two interfaces use the command
+
To add a virtual link between two interfaces go into configuration prompt and use the command:
  vlink <node1> <iface1> <node2> <iface2>
  vlink <node1> <iface1> <node2> <iface2>

Latest revision as of 16:00, 25 March 2011

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.

            +-----------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>
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox