...
Table of Contents | ||
---|---|---|
|
Warning | ||
---|---|---|
| ||
|
...
Code Block | ||||
---|---|---|---|---|
| ||||
ssh-keygen -t rsa # TBD on the targetmanagement machine. If an .ssh directory is not present under your user directory, generate new SSH keys. onos-push-keys $TARGET_MACHINE_IP # TBD on the management machine for each target machine |
...
- As a proof that everything works, from your management machine you should be able to login into any target machine doing ssh sdn@TARGET_MACHINE_IP and execute sudo echo hello (for example) with no passwords required
...
- Oracle Java (at least JRE) 1.8 installed. The ONOS installation section, under the Administration Guide, provides examples for Ubuntu about how to do that.
- curl installed
- make sure the following ports are open:
8181 for REST API and GUI
8101 to access the ONOS CLI
9876 for intra-cluster communication (communication between target machines)
6653 optional, for OpenFlow
6640 optional, for OVSDB
Mininet target machine
Additionally, the Mininet target machine should have
- Mininet install. This can be simple as typing sudo apt-get install mininet. Anyway, for more, and more detailed instructions, please refer directly to the Mininet website
Management/Development/build machine
Some test scenario, such as smoke, require external libraries. (e.g. requests) If you see errors like "ImportError: No module named requests" install them on the management machine.
Code Block | ||
---|---|---|
| ||
pip install requests |
Test Cells
Since a developer may want to test different scenarios against different sets of VMs or servers, ONOS provides the notion of test cells.
...
Code Block | ||||
---|---|---|---|---|
| ||||
$ cells beast # Bare metal cluster (7-node) beast-1 # Bare metal cluster (1-node) beast-3 # Bare metal cluster (3-node) beast-5 # Bare metal cluster (5-node) demo # LXC demo environment for oneping tutorial demo-eu # For demo with GEANT topology and three ONOS instances using vagrant devmachine demo-eu-single # For demo with GEANT topology and three ONOS instances using vagrant devmachine demo-eu-single-vpls * # For demo with GEANT topology and three ONOS instances using vagrant devmachine ec2 # EC2-based cluster (7-node) i2 # SDN-IP ProxMox cell i2-centos-single # SDN-IP ProxMox cell i2-single # SDN-IP ProxMox cell local # Local VirtualBox-based ONOS instances 1,2 & ONOS mininet box |
Cell definitions are loaded into the shell environment with the cell
utility. This utility takes the name of a cell definition file as the argument. If the command is invoked without parameters, it will just print out the cell in use.
...
Info | ||
---|---|---|
| ||
STC scripts can do really much more than this. If you're interested to know more check out this page! |
...
Putting everything together: using the test environment
...