vxlan default ml2 tenant network type
ovs vxlan become supported on most distribution and provides isolated `multi tenant` networking without special `vlan` aware switch. In single node deployment you will just see the br-tun ovs bridge created. In multi-node setup you might need to adjust the MTU settings. If your physical switch supports >=1550 MTU size probably you will not see any issue. If your guest image honors the MTU size offered via dhcp, you can adjust your dnsmask settings with the correct (likely 1450 byte) MTU size. cirros (udhcp) does not honors these setting, you might need to set lower MTU size on br-ex and/or adjust network_device_mtu option in your local.conf. The default changed, because it will be used with the multi-node neutron jobs. If you want the original behavior for whatever reason add these to your `local.conf`: ENABLE_TENANT_TUNNELS=False Q_ML2_TENANT_NETWORK_TYPE=local Change-Id: Id33ff0eca44905b3996618f1035ad984a6819b5b
This commit is contained in:
parent
5d21e0b777
commit
8feaf6c951
@ -166,10 +166,10 @@ fi
|
||||
# remote connectivity), and no physical resources will be
|
||||
# available for the allocation of provider networks.
|
||||
|
||||
# To use GRE tunnels for tenant networks, set to True in
|
||||
# ``localrc``. GRE tunnels are only supported by the openvswitch
|
||||
# plugin, and currently only on Ubuntu.
|
||||
ENABLE_TENANT_TUNNELS=${ENABLE_TENANT_TUNNELS:-False}
|
||||
# To disable tunnels (GRE or VXLAN) for tenant networks,
|
||||
# set to False in ``local.conf``.
|
||||
# GRE tunnels are only supported by the openvswitch.
|
||||
ENABLE_TENANT_TUNNELS=${ENABLE_TENANT_TUNNELS:-True}
|
||||
|
||||
# If using GRE tunnels for tenant networks, specify the range of
|
||||
# tunnel IDs from which tenant networks are allocated. Can be
|
||||
|
@ -7,9 +7,9 @@ set +o xtrace
|
||||
|
||||
# Enable this to simply and quickly enable tunneling with ML2.
|
||||
# Select either 'gre', 'vxlan', or '(gre vxlan)'
|
||||
Q_ML2_TENANT_NETWORK_TYPE=${Q_ML2_TENANT_NETWORK_TYPE:-}
|
||||
Q_ML2_TENANT_NETWORK_TYPE=${Q_ML2_TENANT_NETWORK_TYPE:-"vxlan"}
|
||||
# This has to be set here since the agent will set this in the config file
|
||||
if [[ "$Q_ML2_TENANT_NETWORK_TYPE" != "" ]]; then
|
||||
if [[ "$Q_ML2_TENANT_NETWORK_TYPE" != "local" ]]; then
|
||||
Q_AGENT_EXTRA_AGENT_OPTS+=(tunnel_types=$Q_ML2_TENANT_NETWORK_TYPE)
|
||||
elif [[ "$ENABLE_TENANT_TUNNELS" == "True" ]]; then
|
||||
Q_AGENT_EXTRA_AGENT_OPTS+=(tunnel_types=gre)
|
||||
@ -57,7 +57,7 @@ function neutron_plugin_configure_common {
|
||||
}
|
||||
|
||||
function neutron_plugin_configure_service {
|
||||
if [[ "$Q_ML2_TENANT_NETWORK_TYPE" != "" ]]; then
|
||||
if [[ "$Q_ML2_TENANT_NETWORK_TYPE" != "local" ]]; then
|
||||
Q_SRV_EXTRA_OPTS+=(tenant_network_types=$Q_ML2_TENANT_NETWORK_TYPE)
|
||||
elif [[ "$ENABLE_TENANT_TUNNELS" == "True" ]]; then
|
||||
# This assumes you want a simple configuration, and will overwrite
|
||||
|
Loading…
Reference in New Issue
Block a user