blob: eaff4b3884452159f544f414eb2584b3eda66ae6 [file] [log] [blame]
tom6a9f2722014-09-13 17:00:02 -07001#!/bin/bash
2# ONOS developer BASH profile conveniences
tom5a18e802014-09-18 12:38:15 -07003# Simply include in your own .bash_aliases or .bash_profile
tom6a9f2722014-09-13 17:00:02 -07004
5# Root of the ONOS source tree
Thomas Vachuska045c01d2014-12-04 00:18:06 -08006export ONOS_ROOT=${ONOS_ROOT:-~/onos}
Thomas Vachuskabec79b92018-08-07 11:42:17 -07007
Ray Milkey8a0c7c72017-07-18 11:37:04 -07008# This is a hack to remove symlinks from the ONOS_ROOT path. To be removed when
9# the protobuf buck rules can handle symlinks
10ONOS_ROOT=$(pushd $ONOS_ROOT >/dev/null && pwd -P && popd >/dev/null)
tom6a9f2722014-09-13 17:00:02 -070011
Thomas Vachuska97642362019-03-21 11:59:01 -070012# Rely on developer preference for automatically ignited apps
13# Default to drivers and gui2
14export ONOS_APPS=${ONOS_APPS:-drivers,openflow,gui2}
15
Jian Li98dc9ad2016-01-06 14:05:47 -080016export MAVEN=${MAVEN:-~/Applications/apache-maven-3.3.9}
Thomas Vachuska7b652ad2014-10-30 14:10:51 -070017
Charles Chan9c938f82019-01-15 14:15:12 -080018# Clean up Karaf environment variables to avoid issues when switching from ONOS 1.x to 2.x
19unset KARAF_VERSION KARAF_ROOT KARAF_LOG
20
tom6a9f2722014-09-13 17:00:02 -070021# Setup a path
Thomas Vachuska4ccc7d32015-09-03 13:39:40 -070022export PATH="$PATH:$ONOS_ROOT/tools/dev/bin"
23export PATH="$PATH:$ONOS_ROOT/tools/test/bin:$ONOS_ROOT/tools/test/scenarios/bin"
Devin Lim0d944e22017-06-23 15:17:53 -070024export RUN_PACK_PATH=${RUN_PACK_PATH:-$ONOS_ROOT/tools/package/runtime/bin}
25export PATH="$RUN_PACK_PATH:$PATH"
tom1cd74ae2014-10-01 14:58:32 -070026export PATH="$PATH:$ONOS_ROOT/tools/build"
Thomas Vachuska369e3fb2019-01-02 16:38:37 -080027export PATH="$PATH:$MAVEN/bin"
tom6a9f2722014-09-13 17:00:02 -070028
Roan Huang0fa4bc42015-05-01 15:38:20 +080029# Setup cell enviroment
30export ONOS_CELL=${ONOS_CELL:-local}
31
Thomas Vachuskac3c969a2015-08-19 16:51:16 -070032# Setup default web user/password
33export ONOS_WEB_USER=onos
34export ONOS_WEB_PASS=rocks
Thomas Vachuskaaf0ee532015-08-19 14:17:36 -070035
36# Setup default location of test scenarios
Thomas Vachuskae76f6532015-07-08 09:40:53 -070037export ONOS_SCENARIOS=$ONOS_ROOT/tools/test/scenarios
38
Carmelo Casconeb7524272017-06-05 16:53:13 -040039# Setup path to Mininet custom scripts
40export ONOS_MN_PY=$ONOS_ROOT/tools/dev/mininet/onos.py
41export BMV2_MN_PY=$ONOS_ROOT/tools/dev/mininet/bmv2.py
42
tom6a9f2722014-09-13 17:00:02 -070043# Convenience utility to warp to various ONOS source projects
44# e.g. 'o api', 'o dev', 'o'
45function o {
Thomas Vachuskabec79b92018-08-07 11:42:17 -070046 cd $(find $ONOS_ROOT/ -type d -and \( -name 'bazel-*' -o -name 'buck-out' -o -name '.git' -o -name 'target' -o -name 'gen-src' -o -name 'src' \) -prune -o -type d | \
Thomas Vachuska49367a62017-08-29 09:18:19 -070047 egrep "${1:-$ONOS_ROOT}" | awk '{print length($1)"\t"$1}' | sort -n | cut -f2 | head -n 1)
tom6a9f2722014-09-13 17:00:02 -070048}
49
tom82d6bde2014-09-23 17:33:58 -070050# Short-hand for ONOS build, package and test.
Thomas Vachuskabec79b92018-08-07 11:42:17 -070051alias op="SHLVL=1 bazel build //:onos"
Ray Milkeya1f8e192019-01-23 14:34:25 -080052alias ot="bazel run //:buildifier_check && bazel query 'tests(//...)' | grep -v "coverage" | SHLVL=1 xargs bazel test --test_summary=terse --test_output=errors"
Thomas Vachuskabec79b92018-08-07 11:42:17 -070053alias ob="op && ot"
Carmelo Casconed72dc522019-06-28 14:20:34 -070054alias obd="SHLVL=1 bazel build //docs:external"
Thomas Vachuska6066dff2016-10-26 13:57:36 -070055
Thomas Vachuska97642362019-03-21 11:59:01 -070056alias ok="SHLVL=1 bazel run //:onos-local --"
Thomas Vachuskabec79b92018-08-07 11:42:17 -070057alias oh="onos localhost halt"
Thomas Vachuska6066dff2016-10-26 13:57:36 -070058
tom0511a522014-10-04 12:06:02 -070059alias ol='onos-log'
toma6897792014-10-08 22:21:05 -070060alias ow='onos-watch'
Thomas Vachuska3cd677d2015-05-20 11:25:49 -070061alias ocl='onos-check-logs'
Thomas Vachuska85314292014-11-14 17:52:12 -080062alias oi='setPrimaryInstance'
tom6a9f2722014-09-13 17:00:02 -070063
Thomas Vachuska152f9fd2015-04-02 16:28:13 -070064# Short-hand for tailing and searching the ONOS (karaf) log
tom1cd74ae2014-10-01 14:58:32 -070065alias tl='$ONOS_ROOT/tools/dev/bin/onos-local-log'
Thomas Vachuska152f9fd2015-04-02 16:28:13 -070066
Charles M.C. Chan870cc032015-04-24 04:57:42 +080067function filterLocalLog {
Thomas Vachuska152f9fd2015-04-02 16:28:13 -070068 tl | grep --colour=always -E -e "${1-org.onlab|org.onosproject}"
69}
Charles M.C. Chan870cc032015-04-24 04:57:42 +080070alias tlo='filterLocalLog'
Charles M.C. Chane39f3142015-05-22 18:35:24 +080071alias tle='tlo "ERROR|WARN|Exception|Error"'
Charles M.C. Chan870cc032015-04-24 04:57:42 +080072
73function filterLog {
74 ol | grep --colour=always -E -e "${1-org.onlab|org.onosproject}"
75}
76alias olo='filterLog'
Thomas Vachuska3cd677d2015-05-20 11:25:49 -070077alias ole='olo "ERROR|WARN|Exception|Error"'
tom6a9f2722014-09-13 17:00:02 -070078
79# Pretty-print JSON output
80alias pp='python -m json.tool'
81
Thomas Vachuskaaf0ee532015-08-19 14:17:36 -070082# Short-hand to launch Java API docs, REST API docs and ONOS GUI
Thomas Vachuska24c849c2014-10-27 09:53:05 -070083alias docs='open $ONOS_ROOT/docs/target/site/apidocs/index.html'
Thomas Vachuskaaf0ee532015-08-19 14:17:36 -070084alias rsdocs='onos-rsdocs'
tom1a2908c2014-09-23 16:37:39 -070085alias gui='onos-gui'
tom5c255702014-09-18 06:57:39 -070086
Thomas Vachuska6066dff2016-10-26 13:57:36 -070087# Short-hand for 'mvn clean install' for us lazy folk
88alias mci='mvn clean install'
Thomas Vachuska6066dff2016-10-26 13:57:36 -070089
90# Git annotated one-line log
91alias gil='git log --oneline --decorate=short'
tom5c255702014-09-18 06:57:39 -070092
tom5a18e802014-09-18 12:38:15 -070093# Test related conveniences
94
tom5a18e802014-09-18 12:38:15 -070095# SSH to a specified ONOS instance
tom0872a172014-09-23 11:24:26 -070096alias sshctl='onos-ssh'
97alias sshnet='onos-ssh $OCN'
tom5a18e802014-09-18 12:38:15 -070098
Thomas Vachuskae1125352016-11-09 14:06:51 -080099# Runs a sequence of STC scenarios until the first failure.
100function stcs {
Thomas Vachuska8cc53182016-11-14 13:06:54 -0800101 for s in "$@"; do
102 if [[ $s =~ ^[0-9]*$ ]]; then
103 printf "Waiting %d seconds...\n" $s
104 sleep $s
105 else
106 printf "Running scenario %s...\n" $s
107 stc $s || return 1
108 fi
109 done
Thomas Vachuskae1125352016-11-09 14:06:51 -0800110}
Thomas Vachuska785f5812015-03-19 01:11:00 -0700111
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -0700112# Applies the settings in the specified topology recipe file or lists current
113# topo recipe definition if no topo recipe file is given.
114function topo {
115 topo=${1:-""}
116 case "$topo" in
117 "")
118 env | egrep "ONOS_TOPO"
119 env | egrep "(OTD|OTL|OTH)="
120 ;;
121
122 *)
123 [ ! -f $ONOS_ROOT/tools/test/topos/$1.recipe ] && echo "No such topo recipe: $1" >&2 && return 1
124 unset ONOS_TOPO OTD OTL OTH ONOS_DEVICES ONOS_HOSTS
Ray Milkey2c6ffb82018-03-09 08:57:52 -0800125 ONOS_DEVICES=""
126 ONOS_HOSTS=""
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -0700127 unset $(env | sed -n 's:\(^OT[DLH][0-9]\{1,\}\)=.*:\1 :g p')
128 export ONOS_TOPO=$1
129 . $ONOS_ROOT/tools/test/topos/$1.recipe
130 let d=1; while [ $d -le $OTD ]; do
131 dev="$(printf 'of:%016x' $d)"
132 export OTD$d=$dev; export ONOS_DEVICES="$ONOS_DEVICES $dev"
133 let d=d+1;
134 done
135 let h=1; while [ $h -le $OTH ]; do
136 host="$(printf '00:00:00:00:00:%02x/-1' $h)"
137 export OTH$h=$host; export ONOS_HOSTS="$ONOS_HOSTS $host"
138 let h=h+1
139 done
140 topo
141 esac
142}
143
144# Lists available topo recipes
145function topos {
146 for topo in $(ls -1 $ONOS_ROOT/tools/test/topos/*.recipe); do
147 name=$(basename $topo .recipe)
148 printf "%-16s %s\n" \
149 "$([ $name = $ONOS_TOPO ] && echo $name '*' || echo $name)" \
150 "$(grep '^#' $topo | head -n 1)"
151 done
152}
153
Thomas Vachuska785f5812015-03-19 01:11:00 -0700154# Sets the primary instance to the specified instance number.
155function setPrimaryInstance {
Jon Hallee85e2f2016-06-07 10:36:33 -0700156 export ONOS_INSTANCES=$(env | grep 'OC[0-9]*=' | sort | cut -d= -f2)
Thomas Vachuskafd8cb682018-07-27 12:29:14 -0700157
Ray Milkeyacfb4102018-08-08 11:11:59 -0700158 if [ -z "${OCC1-}" ]; then
Thomas Vachuskafd8cb682018-07-27 12:29:14 -0700159 aux=/tmp/cell-$$.aux
160 let i=1
161 for n in $ONOS_INSTANCES; do
162 echo "export OCC$i=$n" >> $aux
163 let i=i+1
164 done
165 [ -f $aux ] && source $aux && rm $aux
166 fi
167
Thomas Vachuska2582fc22018-07-02 14:54:18 -0700168 export ONOS_CORES=$(env | grep 'OCC[0-9]*=' | sort | cut -d= -f2)
Thomas Vachuska785f5812015-03-19 01:11:00 -0700169 export OCI=$(env | egrep "OC[0-9]+" | sort | egrep OC${1:-1} | cut -d= -f2)
170 echo $OCI
171}
172
Jordan Halterman980a8c12017-09-22 18:01:19 -0700173# Sets minority (OCMI) and majority (OCMA) variables
174function setMinorityMajority {
175 nodes=($(env | grep 'OC[0-9]*=' | sort | cut -d= -f2))
Jordan Halterman980a8c12017-09-22 18:01:19 -0700176 min=1
177 maj=1
Ray Milkeyca840af2019-02-22 09:16:11 -0800178 node_count="${#nodes[@]}"
179 if [ $node_count -gt 1 ]; then
180 middle=$(expr "$node_count" / "2")
181 index=0
182 for node in "${nodes[@]}"; do
183 if [ "$index" -gt "$middle" ]; then
184 export OCMI${min}=${node}
185 min=$(expr $min + 1)
186 else
187 export OCMA${maj}=${node}
188 maj=$(expr $maj + 1)
189 fi
190 index=$(expr $index + 1)
191 done
192 fi
Jordan Halterman980a8c12017-09-22 18:01:19 -0700193}
194
Thomas Vachuskaa10137c2018-04-03 16:45:59 -0700195# Open Networking Foundation shared test cell warden address
Thomas Vachuska28d46572017-12-05 13:39:27 -0800196export CELL_WARDEN="10.192.19.72"
Thomas Vachuskaca40fe42018-01-29 16:13:26 -0800197export CELL_SLAVE_1=$CELL_WARDEN
198export CELL_SLAVE_2="10.192.19.71"
Thomas Vachuska24a06d22020-03-03 09:34:48 -0800199export CELL_SLAVES="$CELL_SLAVE_1 $CELL_SLAVE_2"
Thomas Vachuska1eff3a62016-05-03 01:07:24 -0700200
Thomas Vachuskafdeda922016-05-16 11:37:00 -0700201# Clears cell environment
202function clearCell {
Thomas Vachuska97642362019-03-21 11:59:01 -0700203 unset ONOS_CELL ONOS_IP ONOS_BOOT_FEATURES
Thomas Vachuska2582fc22018-07-02 14:54:18 -0700204 unset OCI OCN OCT ONOS_INSTANCES ONOS_CORES ONOS_FEATURES
Charles Chanc7a60ce2017-05-05 13:56:27 -0700205 unset ONOS_USER ONOS_GROUP ONOS_WEB_USER ONOS_WEB_PASS
Thomas Vachuskafdeda922016-05-16 11:37:00 -0700206 unset $(env | sed -n 's:\(^OC[0-9]\{1,\}\)=.*:\1 :g p')
Thomas Vachuska2582fc22018-07-02 14:54:18 -0700207 unset $(env | sed -n 's:\(^OCC[0-9]\{1,\}\)=.*:\1 :g p')
Jordan Halterman980a8c12017-09-22 18:01:19 -0700208 unset $(env | sed -n 's:\(^OCMI[0-9]\{1,\}\)=.*:\1 :g p')
209 unset $(env | sed -n 's:\(^OCMA[0-9]\{1,\}\)=.*:\1 :g p')
Thomas Vachuskafdeda922016-05-16 11:37:00 -0700210}
211
Thomas Vachuskaf07ec212016-05-10 12:17:40 -0700212# Applies the settings in the specified cell file or lists current cell definition
213# if no cell file is given.
214function cell {
Jon Hall7dc59d62016-05-10 14:30:16 -0700215 cell=${1:-""}
Thomas Vachuskaf07ec212016-05-10 12:17:40 -0700216 case "$cell" in
217 "borrow")
Thomas Vachuskafdeda922016-05-16 11:37:00 -0700218 clearCell
Thomas Vachuskaf07ec212016-05-10 12:17:40 -0700219 aux="/tmp/cell-$$"
Thomas Vachuskafdeda922016-05-16 11:37:00 -0700220 duration=${2:-0}
Thomas Vachuska8e676d92018-11-19 16:01:03 -0800221 spec=${3:-5+3+1}
Thomas Vachuska2582fc22018-07-02 14:54:18 -0700222 spec=${spec//+/%2B}
Thomas Vachuska5420ba32016-05-13 14:45:25 -0400223 user=${4:-$(id -un)}
Ray Milkey32e73d72018-03-09 09:52:29 -0800224 hint=${5:-""}
Thomas Vachuska05e47a32016-10-24 09:35:11 -0700225 query="duration=$duration&spec=$spec&user=$user&cellNameHint=$hint"
Thomas Vachuskafdeda922016-05-16 11:37:00 -0700226 curl -sS -X POST "http://$CELL_WARDEN:4321/?$query" -d "$(cat ~/.ssh/id_rsa.pub)" > $aux
Thomas Vachuskaf07ec212016-05-10 12:17:40 -0700227 . $aux
228 rm -f $aux
Thomas Vachuskaf07ec212016-05-10 12:17:40 -0700229 setPrimaryInstance 1 >/dev/null
Jordan Halterman980a8c12017-09-22 18:01:19 -0700230 setMinorityMajority >/dev/null
Thomas Vachuskaf07ec212016-05-10 12:17:40 -0700231 onos-verify-cell
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -0700232 topo default >/dev/null
Thomas Vachuskaf07ec212016-05-10 12:17:40 -0700233 ;;
234 "return")
235 curl -sS -X DELETE "http://$CELL_WARDEN:4321/?user=${2:-$(id -un)}"
Thomas Vachuskafdeda922016-05-16 11:37:00 -0700236 clearCell
Thomas Vachuskaf07ec212016-05-10 12:17:40 -0700237 ;;
238
239 "status")
240 curl -sS "http://$CELL_WARDEN:4321/" | sort
241 ;;
242
243 "")
Charles Chan9b152fc2016-11-21 12:06:49 -0800244 env | egrep "^ONOS_CELL"
Thomas Vachuska2582fc22018-07-02 14:54:18 -0700245 env | egrep "^OCC[0-9]+" | sort
Charles Chan9b152fc2016-11-21 12:06:49 -0800246 env | egrep "^OC[0-9]+" | sort
Thomas Vachuska2582fc22018-07-02 14:54:18 -0700247 env | egrep "^OC[INT]" | sort
248 env | egrep "^ONOS_" | egrep -v 'ONOS_ROOT|ONOS_CELL|ONOS_INSTANCES|ONOS_CORES|ONOS_DEVICES|ONOS_HOSTS' | sort
Thomas Vachuskaf07ec212016-05-10 12:17:40 -0700249 ;;
250
251 *)
Thomas Vachuskafdeda922016-05-16 11:37:00 -0700252 [ ! -f $ONOS_ROOT/tools/test/cells/$1 ] && echo "No such cell: $1" >&2 && return 1
253 clearCell
Charles Chanc7a60ce2017-05-05 13:56:27 -0700254 export ONOS_USER=sdn
255 export ONOS_GROUP=sdn
256 export ONOS_WEB_USER=onos
257 export ONOS_WEB_PASS=rocks
Thomas Vachuskaf07ec212016-05-10 12:17:40 -0700258 export ONOS_CELL=$1
259 . $ONOS_ROOT/tools/test/cells/$1
Thomas Vachuskaf07ec212016-05-10 12:17:40 -0700260 setPrimaryInstance 1 >/dev/null
261 cell
Thomas Vachuskacc0b7d62016-07-12 14:03:11 -0700262 topo default >/dev/null
Thomas Vachuskaf07ec212016-05-10 12:17:40 -0700263 esac
264}
tomecd0fbd2014-09-19 08:47:05 -0700265
tomecd0fbd2014-09-19 08:47:05 -0700266# Lists available cells
267function cells {
tom2482e6f2014-10-01 16:51:48 -0700268 for cell in $(ls -1 $ONOS_ROOT/tools/test/cells); do
Thomas Vachuska785f5812015-03-19 01:11:00 -0700269 printf "%-16s %s\n" \
Yi Tseng7f425d52017-02-02 13:33:59 -0800270 "$([ ! -z $ONOS_CELL ] && [ $cell = $ONOS_CELL ] && echo $cell '*' || echo $cell)" \
tom2482e6f2014-10-01 16:51:48 -0700271 "$(grep '^#' $ONOS_ROOT/tools/test/cells/$cell | head -n 1)"
272 done
tomecd0fbd2014-09-19 08:47:05 -0700273}
tom5a18e802014-09-18 12:38:15 -0700274
Thomas Vachuska9507d2a2015-12-01 20:45:57 -0800275# Find a process by regex
tom5c255702014-09-18 06:57:39 -0700276function spy {
277 ps -ef | egrep "$@" | grep -v egrep
278}
279
Thomas Vachuska9507d2a2015-12-01 20:45:57 -0800280# Kill a process by regex
tom5c255702014-09-18 06:57:39 -0700281function nuke {
tom85258ee2014-10-07 00:10:02 -0700282 spy "$@" | cut -c7-11 | xargs kill
tom5c255702014-09-18 06:57:39 -0700283}
Ayaka Koshibea9985132014-12-18 14:55:22 -0800284
Thomas Vachuskaea2d9fd2015-09-23 13:13:25 -0700285# Edit a cell file by providing a cell name; opens the cell file in $EDITOR.
286function vicell {
287 local apply=false
288 local create=false
Ayaka Koshibe77acdc72016-02-03 17:19:24 -0800289 local ${cdf:=$ONOS_CELL}
Thomas Vachuskaea2d9fd2015-09-23 13:13:25 -0700290 local cpath="${ONOS_ROOT}/tools/test/cells/"
Ayaka Koshibea9985132014-12-18 14:55:22 -0800291
Ayaka Koshibe77acdc72016-02-03 17:19:24 -0800292 if [ "$1" = "-h" ] ; then
Thomas Vachuskaea2d9fd2015-09-23 13:13:25 -0700293 printf "usage: vicell [file] [options]\n\noptions:\n"
Ayaka Koshibe77acdc72016-02-03 17:19:24 -0800294 printf "\t[file]: cell name (default: current cell)\n"
Thomas Vachuskaea2d9fd2015-09-23 13:13:25 -0700295 printf "\t-a: apply the cell after editing\n"
Ayaka Koshibe77acdc72016-02-03 17:19:24 -0800296 printf "\t-e: [editor] set EDITOR to [editor] (default: *vi*)\n"
Thomas Vachuskaea2d9fd2015-09-23 13:13:25 -0700297 printf "\t-c: create cell file if none exist\n\n"
298 return 1
299 fi
Ayaka Koshibea9985132014-12-18 14:55:22 -0800300
Thomas Vachuskaea2d9fd2015-09-23 13:13:25 -0700301 while [ $# -gt 0 ]; do
302 case "$1" in
303 -a) apply=true ;;
304 -e) EDITOR=$2; shift ;;
305 -c) create=true ;;
306 *) cdf="$1" ;;
307 esac
308 shift
309 done
Ayaka Koshibea9985132014-12-18 14:55:22 -0800310
Ayaka Koshibe77acdc72016-02-03 17:19:24 -0800311 if [ ! -e "${cpath}${cdf}" ] && ! ($create) ; then
Thomas Vachuskaea2d9fd2015-09-23 13:13:25 -0700312 printf "${cdf} : no such cell\n" && return 1
313 fi
Ayaka Koshibea9985132014-12-18 14:55:22 -0800314
Thomas Vachuskaea2d9fd2015-09-23 13:13:25 -0700315 if [ -z "${EDITOR}" ] || [ -x "$(which ${EDITOR})" ]; then
316 unset EDITOR && vi ${cpath}${cdf}
317 else
318 $EDITOR ${cpath}${cdf}
319 fi
320 ($apply) && cell ${cdf}
Ayaka Koshibea9985132014-12-18 14:55:22 -0800321}
Ayaka Koshibeaec629622015-01-05 20:33:29 -0800322
Thomas Vachuska9507d2a2015-12-01 20:45:57 -0800323# Autocomplete for certain utilities
Ayaka Koshibeaec629622015-01-05 20:33:29 -0800324. ${ONOS_ROOT}/tools/test/bin/ogroup-opts
Thomas Vachuska9507d2a2015-12-01 20:45:57 -0800325
326
327# Load AT&T MPLS topo GEO data
Ayaka Koshibe77acdc72016-02-03 17:19:24 -0800328alias atttopo='onos-netcfg $OCI $ONOS_ROOT/tools/test/topos/attmpls-cfg.json'
Simon Huntcf7e3b52016-02-29 23:26:16 -0800329
330# Load UK topo GEO data
331alias uktopo='onos-netcfg $OCI $ONOS_ROOT/tools/test/topos/uk-cfg.json'
Carmelo Cascone15693a22018-12-12 19:06:57 -0800332
333# Mininet command that uses BMv2 instead of OVS
Carmelo Casconeada7b5b2019-04-23 13:50:03 -0700334alias mn-bmv2='sudo -E mn --custom $BMV2_MN_PY --switch onosbmv2 --controller remote,ip=$OCI'
335alias mn-stratum='sudo -E mn --custom $BMV2_MN_PY --switch stratum --controller remote,ip=$OCI'