dc3fb1ce46
By default oslo CFG sets the default value as None. There is no need to specifically do this. The patch also moves the RYU_BGP_SPEAKER_DRIVER to the devstack settings file. TrivialFix Change-Id: Ic33871a0a42fa9a5e5af3158532ecdad9817e5ab
30 lines
887 B
Plaintext
30 lines
887 B
Plaintext
function configure_bgp_service_plugin {
|
|
_neutron_service_plugin_class_add "bgp"
|
|
}
|
|
|
|
function configure_bgp {
|
|
configure_bgp_service_plugin
|
|
}
|
|
|
|
function configure_bgp_dragent {
|
|
cp $NEUTRON_DIR/etc/bgp_dragent.ini.sample $Q_BGP_DRAGENT_CONF_FILE
|
|
|
|
iniset $Q_BGP_DRAGENT_CONF_FILE DEFAULT verbose True
|
|
iniset $Q_BGP_DRAGENT_CONF_FILE DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
|
|
if [ -n "$BGP_ROUTER_ID" ]; then
|
|
iniset $Q_BGP_DRAGENT_CONF_FILE BGP bgp_router_id $BGP_ROUTER_ID
|
|
fi
|
|
if [ -z "$BGP_SPEAKER_DRIVER" ]; then
|
|
BGP_SPEAKER_DRIVER=$RYU_BGP_SPEAKER_DRIVER
|
|
fi
|
|
iniset $Q_BGP_DRAGENT_CONF_FILE BGP bgp_speaker_driver $BGP_SPEAKER_DRIVER
|
|
}
|
|
|
|
function start_bgp_dragent {
|
|
run_process q-bgp-agt "$AGENT_BGP_BINARY --config-file $NEUTRON_CONF --config-file /$Q_BGP_DRAGENT_CONF_FILE"
|
|
}
|
|
|
|
function stop_bgp_dragent {
|
|
stop_process q-bgp-agt
|
|
}
|