blob: 98be4254fc05b8c28521b487da43911295d54deb [file] [log] [blame]
av-mido2c3428b2013-07-11 14:59:00 +09001# MidoNet
2# -------
3
4# This file implements functions required to configure MidoNet as the third-party
5# system used with devstack's Neutron. To include this file, specify the following
6# variables in localrc:
7#
8# * enable_service midonet
9#
10
11# MidoNet devstack destination dir
12MIDONET_DIR=${MIDONET_DIR:-$DEST/midonet}
13
14# MidoNet client repo
15MIDONET_CLIENT_REPO=${MIDONET_CLIENT_REPO:-https://github.com/midokura/python-midonetclient.git}
16MIDONET_CLIENT_BRANCH=${MIDONET_CLIENT_BRANCH:-master}
Ryu Ishimoto35f09662013-08-27 18:32:00 +090017MIDONET_CLIENT_DIR=${MIDONET_CLIENT_DIR:-$MIDONET_DIR/python-midonetclient}
av-mido2c3428b2013-07-11 14:59:00 +090018
av-mido2c3428b2013-07-11 14:59:00 +090019# Save trace setting
20MY_XTRACE=$(set +o | grep xtrace)
21set +o xtrace
22
23function configure_midonet() {
24 :
25}
26
27function init_midonet() {
Ryu Ishimoto18d5c832014-02-19 00:33:46 +090028 :
av-mido2c3428b2013-07-11 14:59:00 +090029}
30
31function install_midonet() {
32 git_clone $MIDONET_CLIENT_REPO $MIDONET_CLIENT_DIR $MIDONET_CLIENT_BRANCH
Ryu Ishimoto18d5c832014-02-19 00:33:46 +090033 export PYTHONPATH=$MIDONET_CLIENT_DIR/src:$PYTHONPATH
av-mido2c3428b2013-07-11 14:59:00 +090034}
35
36function start_midonet() {
37 :
38}
39
40function stop_midonet() {
41 :
42}
43
armando-migliaccioef1e0802014-01-02 16:33:53 -080044function check_midonet() {
45 :
46}
47
av-mido2c3428b2013-07-11 14:59:00 +090048# Restore xtrace
49$MY_XTRACE