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-29 12:03:29 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dcadc2b24c50c8288d8bf32235f0d5b892d39421
dcadc2b2
1 parent
ef5a8095
Added a command to upload onos topology JSON configuration.
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
tools/test/bin/onos-topo-cfg
tools/test/bin/onos-topo-cfg
0 → 100755
View file @
dcadc2b
#!/bin/bash
# -----------------------------------------------------------------------------
# ONOS topology configuration uploader.
# -----------------------------------------------------------------------------
[
! -d
"
$ONOS_ROOT
"
]
&&
echo
"ONOS_ROOT is not defined"
>&2
&&
exit
1
.
$ONOS_ROOT
/tools/build/envDefaults
node
=
"
${
1
:-
$OC1
}
"
file
=
"
${
2
:-
$ONOS_ROOT
/tools/test/topos/oe-linear-3.json
}
"
curl -sS --fail -L -X POST -H
'Content-Type:application/json'
\
http://
$node
:8181/onos/v1/config/topology -d@
$file
Please
register
or
login
to post a comment