Code Review
/
alto.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Implement simple-ird
[alto.git]
/
test
/
scripts
/
simpleird
/
get_context_id
1
#!/bin/bash
2
3
COMMAND="curl -4 -X GET -u admin:admin http://localhost:8080/restconf/operational/alto-simple-ird:information"
4
5
if [ $1 ]; then
6
$COMMAND | python -m json.tool
7
fi
8
9
$COMMAND | python -m json.tool | sed -n '/.*context-id.*/p' | sed 's/^.*:.*\"\(.*\)\".*/\1/g'