but with several differences:
* Default ONOS_ROOT value is $HOME/onos instead of $HOME/onos-next
* Convenience utility functions and aliases are not included
* $MAVEN/bin is not included in the executable path
* The 'cell' funcion from BASH is renamed to 'onos-setup-cell'
Also, 'onos-setup-cell' always requires an argument: the cell name
Displaying the current cell setup can be done by the
'onos-show-cell' script
- add a mechanism to print the usage.
- If the target is "--cell", the service command is executed on each
node in the current ONOS cell.
Usage: onos-service <TARGET> [COMMAND]
onos-service [-h | --help]
Options:
TARGET The target of the command
COMMAND The command to execute. Default value is 'status'
[-h | --help] Print this help
TARGET: <hostname | --cell>
hostname Execute on the specified host name
--cell Execute on the current ONOS cell
COMMAND: [start|stop|restart|status]
* Update to envDefaults: if environmental varialbe ONOS_CELL is set,
the load it, so its variables can be used by other scripts
* Modifications inside tools/dev/bash_profile:
- Update the setting of JAVA_HOME so it works for Ubuntu with
OpenJDK-1.7
- Removed "." from being added to the PATH, because it is a security hole
* Add ONOS-specific directories to the executable PATH in the envDefaults file
* Fix a typo inside "onos-show-cell": don't show OC0, because it is not used
* Each cell-specific variable is explicitly listed
in the cell config file:
ONOS_CELL, ONOS_NIC, OC1-OC9, OCN, OCI, ONOS_FEATURES
* Cleanup and bug fixes inside bash_profile:
- Don't export explicitly OCI and ONOS_CELL, because those
are now exported in the cell config file
- unset ONOS_CELL, ONOS_NIC, ONOS_FEATURES (the last two weren't
unset before)
- The built-in "cell" function shows OC1 to OC9 instead of OC0-OC9;
OC0 is never used/setup anywhere else
* Added two new shell commands:
- tools/test/bin/onos-lsit-cells : lists existing ONOS cell configurations
It is the equivalent of the "cells" built-in bash command
- tools/test/bin/onos-show-cell : shows the configuration of an ONOS cell
It is the equivalent of the "cell" built-in bash command, but
it can show also the configuration of any ONOS cell (not only
the default one).