Merge "Define PUBLIC_BRIDGE in the main Neutron lib"
This commit is contained in:
commit
a1774b5704
@ -168,6 +168,10 @@ NEUTRON_CREATE_INITIAL_NETWORKS=${NEUTRON_CREATE_INITIAL_NETWORKS:-True}
|
|||||||
## Provider Network Information
|
## Provider Network Information
|
||||||
PROVIDER_SUBNET_NAME=${PROVIDER_SUBNET_NAME:-"provider_net"}
|
PROVIDER_SUBNET_NAME=${PROVIDER_SUBNET_NAME:-"provider_net"}
|
||||||
|
|
||||||
|
# Define the public bridge that will transmit traffic from VMs to the
|
||||||
|
# physical network - used by both the OVS and Linux Bridge drivers.
|
||||||
|
PUBLIC_BRIDGE=${PUBLIC_BRIDGE:-br-ex}
|
||||||
|
|
||||||
# Use flat providernet for public network
|
# Use flat providernet for public network
|
||||||
#
|
#
|
||||||
# If Q_USE_PROVIDERNET_FOR_PUBLIC=True, use a flat provider network
|
# If Q_USE_PROVIDERNET_FOR_PUBLIC=True, use a flat provider network
|
||||||
|
@ -7,6 +7,10 @@
|
|||||||
PLUGIN_XTRACE=$(set +o | grep xtrace)
|
PLUGIN_XTRACE=$(set +o | grep xtrace)
|
||||||
set +o xtrace
|
set +o xtrace
|
||||||
|
|
||||||
|
function neutron_lb_cleanup {
|
||||||
|
sudo brctl delbr $PUBLIC_BRIDGE
|
||||||
|
}
|
||||||
|
|
||||||
function is_neutron_ovs_base_plugin {
|
function is_neutron_ovs_base_plugin {
|
||||||
# linuxbridge doesn't use OVS
|
# linuxbridge doesn't use OVS
|
||||||
return 1
|
return 1
|
||||||
@ -29,6 +33,7 @@ function neutron_plugin_configure_dhcp_agent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function neutron_plugin_configure_l3_agent {
|
function neutron_plugin_configure_l3_agent {
|
||||||
|
sudo brctl addbr $PUBLIC_BRIDGE
|
||||||
iniset $Q_L3_CONF_FILE DEFAULT external_network_bridge
|
iniset $Q_L3_CONF_FILE DEFAULT external_network_bridge
|
||||||
iniset $Q_L3_CONF_FILE DEFAULT l3_agent_manager neutron.agent.l3_agent.L3NATAgentWithStateReport
|
iniset $Q_L3_CONF_FILE DEFAULT l3_agent_manager neutron.agent.l3_agent.L3NATAgentWithStateReport
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,6 @@ OVSB_XTRACE=$(set +o | grep xtrace)
|
|||||||
set +o xtrace
|
set +o xtrace
|
||||||
|
|
||||||
OVS_BRIDGE=${OVS_BRIDGE:-br-int}
|
OVS_BRIDGE=${OVS_BRIDGE:-br-int}
|
||||||
PUBLIC_BRIDGE=${PUBLIC_BRIDGE:-br-ex}
|
|
||||||
OVS_DATAPATH_TYPE=${OVS_DATAPATH_TYPE:-""}
|
OVS_DATAPATH_TYPE=${OVS_DATAPATH_TYPE:-""}
|
||||||
|
|
||||||
function is_neutron_ovs_base_plugin {
|
function is_neutron_ovs_base_plugin {
|
||||||
|
Loading…
Reference in New Issue
Block a user