Add tunnel_bridge configuration for openvswitch agent

Change-Id: I0235aa05cf86b3ed9d9620dda3f16b69ced077e3
This commit is contained in:
Hirofumi Ichihara 2015-07-04 22:58:44 +09:00
parent 018c50c2e2
commit d48d672a8d
2 changed files with 2 additions and 0 deletions

1
lib/neutron_plugins/openvswitch_agent Normal file → Executable file
View File

@ -50,6 +50,7 @@ function neutron_plugin_configure_plugin_agent {
die $LINENO "You are running OVS version $OVS_VERSION. OVS 1.4+ is required for tunneling between multiple hosts." die $LINENO "You are running OVS version $OVS_VERSION. OVS 1.4+ is required for tunneling between multiple hosts."
fi fi
iniset /$Q_PLUGIN_CONF_FILE ovs local_ip $TUNNEL_ENDPOINT_IP iniset /$Q_PLUGIN_CONF_FILE ovs local_ip $TUNNEL_ENDPOINT_IP
iniset /$Q_PLUGIN_CONF_FILE ovs tunnel_bridge $OVS_TUNNEL_BRIDGE
fi fi
# Setup physical network bridge mappings. Override # Setup physical network bridge mappings. Override

1
lib/neutron_plugins/ovs_base Normal file → Executable file
View File

@ -9,6 +9,7 @@ set +o xtrace
OVS_BRIDGE=${OVS_BRIDGE:-br-int} OVS_BRIDGE=${OVS_BRIDGE:-br-int}
OVS_DATAPATH_TYPE=${OVS_DATAPATH_TYPE:-""} OVS_DATAPATH_TYPE=${OVS_DATAPATH_TYPE:-""}
OVS_TUNNEL_BRIDGE=${OVS_TUNNEL_BRIDGE:-br-tun}
function is_neutron_ovs_base_plugin { function is_neutron_ovs_base_plugin {
# Yes, we use OVS. # Yes, we use OVS.