...
If you wish to build from source, download the SPRING-OPEN version of the ONOS controller source code. We are assuming you are running in an Ubuntu linux environment.
Code Block | ||
---|---|---|
| ||
sudo apt-get install openjdk-7-jdk openjdk-7-doc openjdk-7-jre-lib
git clone https://gerrit.onosproject.org/spring-open |
...
Note that ONOS needs to be configured to run a segment routed network. See Configuring ONOS (spring-open) for more details.
To stop the controller
...
Code Block | ||
---|---|---|
| ||
sudo apt-get install unzip python-dev python-virtualenv \
git openjdk-7-jdk ant build-essential |
Download the source code
...
Code Block | ||
---|---|---|
| ||
cd spring-open-cli
./setup.sh
make |
To run the CLI, make sure you have the latest code. From the spring-open-cli folder
Code Block |
---|
$ git pull $ source ./workspace/ve/bin/activate (ve)$ sudo make start-sdncon (ve)$ cd cli/ (ve)$ ./cli.py version200 default controller: 127.0.0.1:8000, SDN OS 1.0 - custom version > enable # |
By default the CLI tries to connect to the controller on localhost and expects the controller to be listening on port 8080 (127.0.0.1:8080). To make the CLI connect to a controller on a different host, use use
Code Block |
---|
./cli.py --controller <ip-addr-of-controller-host>:<port> |
To see what you can do with the CLI, consider the Using the CLI section of the User Guide. You could also watch the Prototype demo videos which make heavy use of the CLI.
...