b2631211ab
Ryu plugin was marked deprecated in Juno and will be removed for Kilo. We (Ryu team) recommend users to migrate to ofagent, on which we aim to concentrate our development resources by this deprecation. Partial-Bug: #1391714 Change-Id: I1ef28818e9400664ae3d83758dc2dcf71c02f185
27 lines
645 B
Plaintext
27 lines
645 B
Plaintext
# Ryu SDN Framework
|
|
# -----------------
|
|
|
|
# Used by ofagent.
|
|
# TODO(yamamoto): Switch to pip_install once the development was settled
|
|
|
|
# Save trace setting
|
|
RYU3_XTRACE=$(set +o | grep xtrace)
|
|
set +o xtrace
|
|
|
|
RYU_DIR=$DEST/ryu
|
|
|
|
# Make this function idempotent and avoid cloning same repo many times
|
|
# with RECLONE=yes
|
|
_RYU_INSTALLED=${_RYU_INSTALLED:-False}
|
|
function install_ryu {
|
|
if [[ "$_RYU_INSTALLED" == "False" ]]; then
|
|
git_clone $RYU_REPO $RYU_DIR $RYU_BRANCH
|
|
export PYTHONPATH=$RYU_DIR:$PYTHONPATH
|
|
pip_install $(cat $RYU_DIR/tools/pip-requires)
|
|
_RYU_INSTALLED=True
|
|
fi
|
|
}
|
|
|
|
# Restore xtrace
|
|
$RYU3_XTRACE
|