add bagpipe driver and agent
including: - add a README-bagpipe.rst for the bagpipe driver - add setup.cf entry points - extend devstack plugin so that the modified agent can be enabled with Q_AGENT=bagpipe-openvswitch Change-Id: I6cd18eca77e5f2b43b0b15d141637cef6db044e4
This commit is contained in:
Thomas Morin
committed by
Thomas Morin
parent
c15eac9ec6
commit
adfdf8bf02
9 changed files with 569 additions and 0 deletions
26
devstack/bagpipe/ovs-agent
Normal file
26
devstack/bagpipe/ovs-agent
Normal file
@@ -0,0 +1,26 @@
#!/bin/bash
#
# Neutron BaGPipe agent
# -----------------------------
# Save trace setting
OVSA_XTRACE=$(set +o | grep xtrace)
set +o xtrace
# We inherit nearly everything from the openvswitch agent
source $TOP_DIR/lib/neutron_plugins/openvswitch_agent
# A bit of shell magic to override the neutron_plugin_configure_plugin_agent
# shell function from $TOP_DIR/lib/neutron_plugins/openvswitch_agent so that
# it sets AGENT_BINARY to the value we want
temp=`tempfile -p bagpipe_agent_override`
shopt -s extdebug
(type -a neutron_plugin_configure_plugin_agent | \
tail -n +2 | head -n -1 ; echo ' AGENT_BINARY="$NEUTRON_BIN_DIR/neutron-bagpipe-openvswitch-agent"'; echo '}') > $temp
shopt -u extdebug
source $temp
# Restore xtrace
$OVSA_XTRACE
3
devstack/override-defaults
Normal file
3
devstack/override-defaults
Normal file
@@ -0,0 +1,3 @@
NETWORKING_BGPVPN_DIR=$DEST/networking-bgpvpn
ln -sf $NETWORKING_BGPVPN_DIR/devstack/bagpipe/ovs-agent $TOP_DIR/lib/neutron_plugins/bagpipe-openvswitch_agent
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.