blob: 099a66eb2df58504c83d47df22c55fcfbbc5eec2 [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
Dean Troyere3a91602014-03-28 12:40:56 -050020MN3_XTRACE=$(set +o | grep xtrace)
av-mido2c3428b2013-07-11 14:59:00 +090021set +o xtrace
22
Ian Wienandaee18c72014-02-21 15:35:08 +110023function configure_midonet {
av-mido2c3428b2013-07-11 14:59:00 +090024 :
25}
26
Ian Wienandaee18c72014-02-21 15:35:08 +110027function init_midonet {
Ryu Ishimoto18d5c832014-02-19 00:33:46 +090028 :
av-mido2c3428b2013-07-11 14:59:00 +090029}
30
Ian Wienandaee18c72014-02-21 15:35:08 +110031function install_midonet {
av-mido2c3428b2013-07-11 14:59:00 +090032 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
Ian Wienandaee18c72014-02-21 15:35:08 +110036function start_midonet {
av-mido2c3428b2013-07-11 14:59:00 +090037 :
38}
39
Ian Wienandaee18c72014-02-21 15:35:08 +110040function stop_midonet {
av-mido2c3428b2013-07-11 14:59:00 +090041 :
42}
43
Ian Wienandaee18c72014-02-21 15:35:08 +110044function check_midonet {
armando-migliaccioef1e0802014-01-02 16:33:53 -080045 :
46}
47
av-mido2c3428b2013-07-11 14:59:00 +090048# Restore xtrace
Dean Troyere3a91602014-03-28 12:40:56 -050049$MN3_XTRACE