...
Info |
---|
As ONOS is a multi-module project, it may appear as many (about 50 at the time of this writing) projects beginning with "onos-". This is normal for some IDEs such as Eclipse. For a listing of the software modules that comprise ONOS, please refer to the [Javadocs], or [Appendix C] of this Guide. |
Code Formatting
...
Code Block | ||
---|---|---|
| ||
$ cell local ONOS_CELL=local OCI=192.168.56.101 OC1=192.168.56.101 OC2=192.168.56.102 OCN=192.168.56.103 ONOS_FEATURES=webconsole,onos-api,onos-core,onos-cli,onos-openflow,onos-gui,onos-rest,onos-app-fwd,onos-app-proxyarp,onos-app-tvue ONOS_NIC=192.168.56.* |
cell
echoes back with the key environment variables understood by the ONOS scripts:
- OCI : the default target node IP. This is an alias for OC1.
- OC[1-3] : IP addresses of the VMs hosting ONOS instances. More OC instances may be set, if necessary.
- OCN : IP address of the VM with Mininet
- ONOS_FEATURES : a comma-separated list of bundle names, loaded at startup by an ONOS instance within this cell
- ONOS_NIC : The address block used amongst ONOS instances for inter-controller (clustering) and OpenFlow communication
...
A cell definition file defines values for a set of the aforementioned environment variables understood by the ONOS scripts. A cell definition file may look like the following:
...
To streamline the code review process, it is highly recommended that contributors set up git-review
, which integrates code submission with git. Refer to this link for instructions for setting up git-review
.
Java and Maven
Build failures may occur if multiple Java versions are installed, and Maven is pointed to the incorrect version. If not set automatically during the Java 8 installation process, The JAVA_HOME environment variable should be set to the JRE installation location for Java 8. The process for verifying/setting the proper version varies with platform.
On OS X
...
Code Block |
---|
$ /usr/libexec/java_home
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home |
To set the version, either run or add the following to the shell profile:
Code Block |
---|
$ export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) |
On Ubuntu
Code Block |
---|
$ sudo update-alternatives --config java There are 2 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1072 auto mode 1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode * 2 /usr/lib/jvm/java-8-oracle/jre/bin/java 1072 manual mode Press enter to keep the current choice[*], or type selection number: |