Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Thomas Vachuska
2014-10-21 09:50:04 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7772e1095c553533a66b06708ae7e4c92abf932d
7772e109
1 parent
4ccde78d
Added onos-batch command.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
tools/test/bin/onos-batch
tools/test/bin/onos-batch
0 → 100755
View file @
7772e10
#!/bin/bash
# -----------------------------------------------------------------------------
# Executes selected set of ONOS commands using the batch mode.
# -----------------------------------------------------------------------------
[
! -d
"
$ONOS_ROOT
"
]
&&
echo
"ONOS_ROOT is not defined"
>&2
&&
exit
1
.
$ONOS_ROOT
/tools/build/envDefaults
node
=
${
1
:-
$OCI
}
commands
=
"
${
2
:-
summary
,intents,flows,hosts
}
"
aux
=
/tmp/onos-batch.
$$
trap
"rm -f
$aux
"
EXIT
echo
"
$commands
"
| tr
','
'\n'
>
$aux
onos
$node
-b <
$aux
Please
register
or
login
to post a comment