blob: 2c82d487e4e2291e662c736f2d2e560c2ab34dd7 [file] [log] [blame]
Sean Daguee263c822014-12-05 14:25:28 -05001#!/bin/bash
2#
av-mido2c3428b2013-07-11 14:59:00 +09003# MidoNet
4# -------
5
6# This file implements functions required to configure MidoNet as the third-party
7# system used with devstack's Neutron. To include this file, specify the following
8# variables in localrc:
9#
10# * enable_service midonet
11#
12
13# MidoNet devstack destination dir
14MIDONET_DIR=${MIDONET_DIR:-$DEST/midonet}
15
16# MidoNet client repo
17MIDONET_CLIENT_REPO=${MIDONET_CLIENT_REPO:-https://github.com/midokura/python-midonetclient.git}
18MIDONET_CLIENT_BRANCH=${MIDONET_CLIENT_BRANCH:-master}
Ryu Ishimoto35f09662013-08-27 18:32:00 +090019MIDONET_CLIENT_DIR=${MIDONET_CLIENT_DIR:-$MIDONET_DIR/python-midonetclient}
av-mido2c3428b2013-07-11 14:59:00 +090020
av-mido2c3428b2013-07-11 14:59:00 +090021# Save trace setting
Dean Troyere3a91602014-03-28 12:40:56 -050022MN3_XTRACE=$(set +o | grep xtrace)
av-mido2c3428b2013-07-11 14:59:00 +090023set +o xtrace
24
Ian Wienandaee18c72014-02-21 15:35:08 +110025function configure_midonet {
av-mido2c3428b2013-07-11 14:59:00 +090026 :
27}
28
Ian Wienandaee18c72014-02-21 15:35:08 +110029function init_midonet {
Ryu Ishimoto18d5c832014-02-19 00:33:46 +090030 :
av-mido2c3428b2013-07-11 14:59:00 +090031}
32
Ian Wienandaee18c72014-02-21 15:35:08 +110033function install_midonet {
av-mido2c3428b2013-07-11 14:59:00 +090034 git_clone $MIDONET_CLIENT_REPO $MIDONET_CLIENT_DIR $MIDONET_CLIENT_BRANCH
Ryu Ishimoto18d5c832014-02-19 00:33:46 +090035 export PYTHONPATH=$MIDONET_CLIENT_DIR/src:$PYTHONPATH
av-mido2c3428b2013-07-11 14:59:00 +090036}
37
Ian Wienandaee18c72014-02-21 15:35:08 +110038function start_midonet {
av-mido2c3428b2013-07-11 14:59:00 +090039 :
40}
41
Ian Wienandaee18c72014-02-21 15:35:08 +110042function stop_midonet {
av-mido2c3428b2013-07-11 14:59:00 +090043 :
44}
45
Ian Wienandaee18c72014-02-21 15:35:08 +110046function check_midonet {
armando-migliaccioef1e0802014-01-02 16:33:53 -080047 :
48}
49
av-mido2c3428b2013-07-11 14:59:00 +090050# Restore xtrace
Dean Troyere3a91602014-03-28 12:40:56 -050051$MN3_XTRACE