Merge "ml2 ovs: Deprecate unused [agent] veth_mtu"

This commit is contained in:
Zuul 2022-01-13 12:11:51 +00:00 committed by Gerrit Code Review
commit d225c9fdc4
4 changed files with 10 additions and 4 deletions

View File

@ -188,6 +188,10 @@ agent_opts = [
cfg.PortOpt('vxlan_udp_port', default=n_const.VXLAN_UDP_PORT,
help=_("The UDP port to use for VXLAN tunnels.")),
cfg.IntOpt('veth_mtu', default=9000,
deprecated_for_removal=True,
deprecated_since="Yoga",
deprecated_reason="This parameter has had no effect since "
"the Wallaby release.",
help=_("MTU size of veth interfaces")),
cfg.BoolOpt('l2_population', default=False,
help=_("Use ML2 l2population mechanism driver to learn "

View File

@ -169,7 +169,6 @@ class OVSNeutronAgent(l2population_rpc.L2populationRpcCallBackTunnelMixin,
datapath_type=ovs_conf.datapath_type)
for b in ('br_int', 'br_phys', 'br_tun'))
self.veth_mtu = agent_conf.veth_mtu
self.available_local_vlans = set(range(n_const.MIN_VLAN_TAG,
n_const.MAX_VLAN_TAG + 1))
self.tunnel_types = agent_conf.tunnel_types or []

View File

@ -66,8 +66,6 @@ class DummyVlanBinding(object):
class TunnelTest(object):
VETH_MTU = None
def setUp(self):
super(TunnelTest, self).setUp()
self.useFixture(test_vlanmanager.LocalVlanManagerFixture())
@ -313,7 +311,6 @@ class TunnelTest(object):
cfg.CONF.set_override('bridge_mappings', self.NET_MAPPING, 'OVS')
cfg.CONF.set_override('polling_interval', 2, 'AGENT')
cfg.CONF.set_override('tunnel_types', ['gre'], 'AGENT')
cfg.CONF.set_override('veth_mtu', self.VETH_MTU, 'AGENT')
cfg.CONF.set_override('minimize_polling', False, 'AGENT')
cfg.CONF.set_override('enable_ipv6', False, 'DHCP')

View File

@ -0,0 +1,6 @@
---
deprecations:
- |
The ``[agent] veth_mtu`` parameter of ML2 OVS mechanism driver
configuration has been deprecated. This parameter has had no effect since
the Wallaby release.