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 | |
| 20 | For *now*, VLANd includes two drivers for different families of Cisco |
| 21 | switches. That's not great as a cross-platform selling point, but |
| 22 | they're all we have available at the moment. Initial work is underway |
| 23 | to support some TP-Link switches too, using the same driver API, and |
| 24 | it is expected that more drivers will be included in future |
| 25 | releases. Please feel free to propose more target devices, or (better) |
| 26 | send patches! |
| 27 | |
| 28 | Why VLANd? |
| 29 | ========== |
| 30 | |
| 31 | VLANd has been written to accompany Linaro's LAVA platform. |
| 32 | |
| 33 | LAVA is the Linaro Automated Validation Architecture - see |
| 34 | https://validation.linaro.org/ for more information. |
| 35 | |
| 36 | LAVA started off as a framework to help perform validation and testing |
| 37 | on simple single devices such as Android development boards. Since |
| 38 | then, the range of tests and devices has grown hugely. Some users have |
| 39 | added multi-node tests, i.e. tests that start up multiple devices that |
| 40 | run tests against each other (e.g. client-server testing). The next |
| 41 | step on from that is to test devices with multiple network interfaces, |
| 42 | where on top of the client-serer testing it is required that their |
| 43 | connectivity can be controlled and isolated (e.g. for network |
| 44 | performance testing). |
| 45 | |
| 46 | This can be done by simply changing physical network connections, of |
| 47 | course, but that doesn't scale for sequences of tests and it makes a |
| 48 | lie of the "Automated" bit in the LAVA definition. |
| 49 | |
| 50 | VLANd is the solution that we have implemented for this problem. It |
| 51 | provides a simple VLAN management abstraction for users. LAVA can use |
| 52 | VLANd to set up complex networks on demand as tests are initiated, and |
| 53 | can then tear them down again when tests are complete. |
| 54 | |
Steve McIntyre | 31f3528 | 2014-12-12 22:12:33 +0000 | [diff] [blame] | 55 | Dependencies |
| 56 | ============ |
| 57 | |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 58 | postgres server and psycopg2, for the back-end database. See |
Steve McIntyre | 9d89718 | 2014-12-22 17:51:08 +0000 | [diff] [blame] | 59 | db/setup_db.py for help in setting up the database for access. |
| 60 | |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 61 | How to use |
| 62 | ========== |
| 63 | |
| 64 | For now, things are easiest run as "vland" with appropriate |
Steve McIntyre | 9d89718 | 2014-12-22 17:51:08 +0000 | [diff] [blame] | 65 | permissions in the database for that user. |
| 66 | |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 67 | The core VLANd code is simple to configure - see vland.cfg for an |
| 68 | example config file. Once your copy of VLANd is running, use the |
| 69 | administration utility admin.py to control what it does. For now, this |
| 70 | is single-threaded and has *no* security. This *will* change in the |
| 71 | future, but for very early development has not been a priority. |
Steve McIntyre | 9d89718 | 2014-12-22 17:51:08 +0000 | [diff] [blame] | 72 | |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 73 | Future plans |
| 74 | ============ |
| 75 | |
| 76 | As a start... |
| 77 | |
| 78 | * More documentation |
| 79 | * More drivers to control more devices, both real and virtual |
| 80 | * Visualisation options |
| 81 | * Better (some!) security |
Steve McIntyre | 836deec | 2015-02-13 07:42:51 +0000 | [diff] [blame] | 82 | * Background sanity checking |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 83 | * Other filtering options - MAC-based rather than just port-based |
| 84 | (needed to support virtual machines, etc.) |
| 85 | |
| 86 | If you have other ideas, please talk to us! |
| 87 | |
| 88 | Contact |
| 89 | ======= |
Steve McIntyre | 9d89718 | 2014-12-22 17:51:08 +0000 | [diff] [blame] | 90 | |
| 91 | VLANd mailing list: vland-devel@linaro.org |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 92 | |
| 93 | Code |
| 94 | ==== |
| 95 | |
| 96 | https://git.linaro.org/lava/vland.git |
| 97 | |
Steve McIntyre | 72fb3a3 | 2015-02-13 08:14:32 +0000 | [diff] [blame^] | 98 | License |
| 99 | ======= |
| 100 | |
| 101 | VLANd is Copyright 2014-2015 Linaro Limited, and is distributed under |
| 102 | the GNU General Public License, version 2 (or any later version). See |
| 103 | the accompanying COPYING file for more details. |
| 104 | |
Steve McIntyre | 98de3e9 | 2015-02-13 07:35:19 +0000 | [diff] [blame] | 105 | -------------------------------------------------------------------------- |
| 106 | README for VLANd 0.2, 13th February 2015 |
| 107 | Steve McIntyre <steve.mcintyre@linaro.org> |