Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

ONOS utility scripts are spread across different ONOS root sub-directories.

If you use these scripts frequently, it may be helpful to be able to be able to run them from any directory on your development machine.

If you use bash, you can add two lines at the end of your .bashrc, .bash_aliases or .profile file:

Code Block
languagebash
titleSourcing ONOS scripts
export ONOS_ROOT=~/onos
source $ONOS_ROOT/tools/dev/bash_profile
Tip
titleOn Mac and other systems

If you're using a Mac, the file is called bash_profile. On other systems it might be different.

In general, you can put these instructions in any script that is executed every time at startup.

From now on, you should be able to use the ONOS command utilities directly using their name only, without specifying their path.

Warning

For simplicity, some subsequent sections of this development guide will assume you have completed this step.