Skip to content

Commit a0afcb1

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Remove Neutron Linux Bridge agent code"
2 parents db5e05a + 12abc72 commit a0afcb1

7 files changed

Lines changed: 3 additions & 176 deletions

File tree

doc/source/guides/neutron.rst

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -451,44 +451,6 @@ by default. If you want to remove all the extension drivers (even
451451
'port_security'), set ``Q_ML2_PLUGIN_EXT_DRIVERS`` to blank.
452452

453453

454-
Using Linux Bridge instead of Open vSwitch
455-
------------------------------------------
456-
457-
The configuration for using the Linux Bridge ML2 driver is fairly
458-
straight forward. The Linux Bridge configuration for DevStack is similar
459-
to the :ref:`Open vSwitch based single interface <single-interface-ovs>`
460-
setup, with small modifications for the interface mappings.
461-
462-
463-
::
464-
465-
[[local|localrc]]
466-
HOST_IP=172.18.161.6
467-
SERVICE_HOST=172.18.161.6
468-
MYSQL_HOST=172.18.161.6
469-
RABBIT_HOST=172.18.161.6
470-
GLANCE_HOSTPORT=172.18.161.6:9292
471-
ADMIN_PASSWORD=secret
472-
DATABASE_PASSWORD=secret
473-
RABBIT_PASSWORD=secret
474-
SERVICE_PASSWORD=secret
475-
476-
## Neutron options
477-
Q_USE_SECGROUP=True
478-
FLOATING_RANGE="172.18.161.0/24"
479-
IPV4_ADDRS_SAFE_TO_USE="10.0.0.0/24"
480-
Q_FLOATING_ALLOCATION_POOL=start=172.18.161.250,end=172.18.161.254
481-
PUBLIC_NETWORK_GATEWAY="172.18.161.1"
482-
PUBLIC_INTERFACE=eth0
483-
484-
Q_USE_PROVIDERNET_FOR_PUBLIC=True
485-
486-
# Linuxbridge Settings
487-
Q_AGENT=linuxbridge
488-
LB_PHYSICAL_INTERFACE=eth0
489-
PUBLIC_PHYSICAL_NETWORK=default
490-
LB_INTERFACE_MAPPINGS=default:eth0
491-
492454
Using MacVTap instead of Open vSwitch
493455
------------------------------------------
494456

@@ -556,7 +518,7 @@ the MacVTap mechanism driver:
556518

557519
[[local|localrc]]
558520
...
559-
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge,macvtap
521+
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,macvtap
560522
...
561523

562524
For the MacVTap compute node, use this local.conf:

doc/source/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ OpenStack Network
5656
-----------------
5757

5858
- Neutron: A basic configuration approximating the original FlatDHCP
59-
mode using linuxbridge or OpenVSwitch.
59+
mode using OpenVSwitch.
6060

6161
Services
6262
--------

lib/neutron

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,7 @@ TENANT_VLAN_RANGE=${TENANT_VLAN_RANGE:-}
241241
# If using VLANs for tenant networks, or if using flat or VLAN
242242
# provider networks, set in ``localrc`` to the name of the physical
243243
# network, and also configure ``OVS_PHYSICAL_BRIDGE`` for the
244-
# openvswitch agent or ``LB_PHYSICAL_INTERFACE`` for the linuxbridge
245-
# agent, as described below.
244+
# openvswitch agent, as described below.
246245
#
247246
# Example: ``PHYSICAL_NETWORK=default``
248247
PHYSICAL_NETWORK=${PHYSICAL_NETWORK:-public}
@@ -257,18 +256,6 @@ PHYSICAL_NETWORK=${PHYSICAL_NETWORK:-public}
257256
# Example: ``OVS_PHYSICAL_BRIDGE=br-eth1``
258257
OVS_PHYSICAL_BRIDGE=${OVS_PHYSICAL_BRIDGE:-br-ex}
259258

260-
# With the linuxbridge agent, if using VLANs for tenant networks,
261-
# or if using flat or VLAN provider networks, set in ``localrc`` to
262-
# the name of the network interface to use for the physical
263-
# network.
264-
#
265-
# Example: ``LB_PHYSICAL_INTERFACE=eth1``
266-
if [[ $Q_AGENT == "linuxbridge" && -z ${LB_PHYSICAL_INTERFACE} ]]; then
267-
default_route_dev=$( (ip route; ip -6 route) | grep ^default | head -n 1 | awk '{print $5}')
268-
die_if_not_set $LINENO default_route_dev "Failure retrieving default route device"
269-
LB_PHYSICAL_INTERFACE=$default_route_dev
270-
fi
271-
272259
# With the openvswitch plugin, set to True in ``localrc`` to enable
273260
# provider GRE tunnels when ``ENABLE_TENANT_TUNNELS`` is False.
274261
#
@@ -889,10 +876,6 @@ function cleanup_neutron {
889876
neutron_ovs_base_cleanup
890877
fi
891878

892-
if [[ $Q_AGENT == "linuxbridge" ]]; then
893-
neutron_lb_cleanup
894-
fi
895-
896879
# delete all namespaces created by neutron
897880
for ns in $(sudo ip netns list | grep -o -E '(qdhcp|qrouter|fip|snat)-[0-9a-f-]*'); do
898881
sudo ip netns delete ${ns}

lib/neutron_plugins/linuxbridge_agent

Lines changed: 0 additions & 104 deletions
This file was deleted.

lib/neutron_plugins/ml2

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ function neutron_plugin_configure_service {
114114
populate_ml2_config /$Q_PLUGIN_CONF_FILE securitygroup enable_security_group=$Q_USE_SECGROUP
115115

116116
populate_ml2_config /$Q_PLUGIN_CONF_FILE ml2 mechanism_drivers=$Q_ML2_PLUGIN_MECHANISM_DRIVERS
117-
if [[ "$Q_ML2_PLUGIN_MECHANISM_DRIVERS" == *"linuxbridge"* ]]; then
118-
iniset $NEUTRON_CONF experimental linuxbridge True
119-
fi
120117
populate_ml2_config /$Q_PLUGIN_CONF_FILE ml2 overlay_ip_version=$TUNNEL_IP_VERSION
121118

122119
if [[ -n "$Q_ML2_PLUGIN_TYPE_DRIVERS" ]]; then

lib/neutron_plugins/services/l3

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -334,16 +334,6 @@ function _neutron_configure_router_v4 {
334334
local ext_gw_interface="none"
335335
if is_neutron_ovs_base_plugin; then
336336
ext_gw_interface=$(_neutron_get_ext_gw_interface)
337-
elif [[ "$Q_AGENT" = "linuxbridge" ]]; then
338-
# Get the device the neutron router and network for $FIXED_RANGE
339-
# will be using.
340-
if [ "$Q_USE_PROVIDERNET_FOR_PUBLIC" = "True" ]; then
341-
# in provider nets a bridge mapping uses the public bridge directly
342-
ext_gw_interface=$PUBLIC_BRIDGE
343-
else
344-
# e.x. brq3592e767-da for NET_ID 3592e767-da66-4bcb-9bec-cdb03cd96102
345-
ext_gw_interface=brq${EXT_NET_ID:0:11}
346-
fi
347337
fi
348338
if [[ "$ext_gw_interface" != "none" ]]; then
349339
local cidr_len=${FLOATING_RANGE#*/}

tools/worlddump.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
'nova-compute',
3232
'neutron-dhcp-agent',
3333
'neutron-l3-agent',
34-
'neutron-linuxbridge-agent',
3534
'neutron-metadata-agent',
3635
'neutron-openvswitch-agent',
3736
'cinder-volume',

0 commit comments

Comments
 (0)