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
2015年03月26日 17:15:51 -05:00
committed by Thomas Morin
parent c15eac9ec6
commit adfdf8bf02

View 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

View 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
openstack/networking-bgpvpn
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.

The note is not visible to the blocked user.