Steve McIntyre | 31f3528 | 2014-12-12 22:12:33 +0000 | [diff] [blame] | 1 | VLANd - complex networks on demand |
| 2 | |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 3 | What is VLANd? |
| 4 | ============== |
| 5 | |
| 6 | VLANd is a simple (hah!) python program intended to make it easy to |
| 7 | manage port-based VLAN setups across multiple switches in a |
| 8 | network. It is designed to be vendor-agnostic, with a clean pluggable |
| 9 | driver API to allow for a wide range of different switches to be |
| 10 | controlled together. |
| 11 | |
| 12 | Various of the switch vendors have management applications available |
| 13 | which should be able to do a similar job, but they're typically not |
| 14 | scriptable, or locked to only control their own vendor's |
| 15 | equipment. VLANd is designed (and hoped!) to be better. We've found |
| 16 | that other network management programs also exist, but either they |
| 17 | don't manage VLANs in the way we want or they depend on large |
| 18 | frameworks like Openstack. |
| 19 | |
Steve McIntyre | cc52470 | 2015-07-31 16:55:54 +0100 | [diff] [blame^] | 20 | VLANd currently includes four drivers for different models of switch |
| 21 | from three different vendors: |
| 22 | |
| 23 | * CiscoCatalyst for the Cisco Catalyst 3750 (and compatible) |
| 24 | * CiscoSX300 for the Cisco SF300 and SG300 (and compatible) |
| 25 | * NetgearXSM for the Netgear XSM 7224S (and compatible) |
| 26 | * TPLinkTLSG2XXX for the TP-Link TL-SG2216 (and compatible) |
| 27 | |
| 28 | These cover a range of switches across a huge range of prices, from |
| 29 | 100M up to 10G ports. VLANd supports interoperable VLANs across all |
| 30 | these devices, verified using the Linaro test lab and our test suite. |
| 31 | |
| 32 | It is expected that more drivers will be included in future |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 33 | releases. Please feel free to propose more target devices, or (better) |
| 34 | send patches! |
| 35 | |
| 36 | Why VLANd? |
| 37 | ========== |
| 38 | |
| 39 | VLANd has been written to accompany Linaro's LAVA platform. |
| 40 | |
| 41 | LAVA is the Linaro Automated Validation Architecture - see |
| 42 | https://validation.linaro.org/ for more information. |
| 43 | |
| 44 | LAVA started off as a framework to help perform validation and testing |
| 45 | on simple single devices such as Android development boards. Since |
| 46 | then, the range of tests and devices has grown hugely. Some users have |
| 47 | added multi-node tests, i.e. tests that start up multiple devices that |
| 48 | run tests against each other (e.g. client-server testing). The next |
| 49 | step on from that is to test devices with multiple network interfaces, |
| 50 | where on top of the client-serer testing it is required that their |
| 51 | connectivity can be controlled and isolated (e.g. for network |
| 52 | performance testing). |
| 53 | |
| 54 | This can be done by simply changing physical network connections, of |
| 55 | course, but that doesn't scale for sequences of tests and it makes a |
| 56 | lie of the "Automated" bit in the LAVA definition. |
| 57 | |
| 58 | VLANd is the solution that we have implemented for this problem. It |
| 59 | provides a simple VLAN management abstraction for users. LAVA can use |
| 60 | VLANd to set up complex networks on demand as tests are initiated, and |
| 61 | can then tear them down again when tests are complete. |
| 62 | |
Steve McIntyre | 31f3528 | 2014-12-12 22:12:33 +0000 | [diff] [blame] | 63 | Dependencies |
| 64 | ============ |
| 65 | |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 66 | postgres server and psycopg2, for the back-end database. See |
Steve McIntyre | 9d89718 | 2014-12-22 17:51:08 +0000 | [diff] [blame] | 67 | db/setup_db.py for help in setting up the database for access. |
| 68 | |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 69 | How to use |
| 70 | ========== |
| 71 | |
| 72 | For now, things are easiest run as "vland" with appropriate |
Steve McIntyre | 9d89718 | 2014-12-22 17:51:08 +0000 | [diff] [blame] | 73 | permissions in the database for that user. |
| 74 | |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 75 | The core VLANd code is simple to configure - see vland.cfg for an |
| 76 | example config file. Once your copy of VLANd is running, use the |
| 77 | administration utility admin.py to control what it does. For now, this |
| 78 | is single-threaded and has *no* security. This *will* change in the |
| 79 | future, but for very early development has not been a priority. |
Steve McIntyre | 9d89718 | 2014-12-22 17:51:08 +0000 | [diff] [blame] | 80 | |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 81 | Future plans |
| 82 | ============ |
| 83 | |
| 84 | As a start... |
| 85 | |
| 86 | * More documentation |
| 87 | * More drivers to control more devices, both real and virtual |
| 88 | * Visualisation options |
| 89 | * Better (some!) security |
Steve McIntyre | 836deec | 2015-02-13 07:42:51 +0000 | [diff] [blame] | 90 | * Background sanity checking |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 91 | * Other filtering options - MAC-based rather than just port-based |
| 92 | (needed to support virtual machines, etc.) |
| 93 | |
| 94 | If you have other ideas, please talk to us! |
| 95 | |
| 96 | Contact |
| 97 | ======= |
Steve McIntyre | 9d89718 | 2014-12-22 17:51:08 +0000 | [diff] [blame] | 98 | |
| 99 | VLANd mailing list: vland-devel@linaro.org |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 100 | |
| 101 | Code |
| 102 | ==== |
| 103 | |
| 104 | https://git.linaro.org/lava/vland.git |
| 105 | |
Steve McIntyre | 72fb3a3 | 2015-02-13 08:14:32 +0000 | [diff] [blame] | 106 | License |
| 107 | ======= |
| 108 | |
| 109 | VLANd is Copyright 2014-2015 Linaro Limited, and is distributed under |
| 110 | the GNU General Public License, version 2 (or any later version). See |
| 111 | the accompanying COPYING file for more details. |
| 112 | |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 113 | -------------------------------------------------------------------------- |
Steve McIntyre | cc52470 | 2015-07-31 16:55:54 +0100 | [diff] [blame^] | 114 | README for VLANd 0.3, 31st July 2015 |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 115 | Steve McIntyre <steve.mcintyre@linaro.org> |