Skip NetworkWritableMtuTest when driver is ML2/OVN
East/west icmp fragmentation is not supported with ML2/OVN since
there is no production use case, as mentioned in [1].
With this change NetworkWritableMtuTest will be skipped
automatically when ML2/OVN agents found and thus ci jobs
configs can be simplified by removing exclude list.
[1] https://docs.openstack.org/neutron/latest/ovn/gaps.html
Change-Id: I7f690b1a260ff70e12bcfac82f63e36ddca7cfbc
diff --git a/neutron_tempest_plugin/scenario/test_mtu.py b/neutron_tempest_plugin/scenario/test_mtu.py
index ea62fcf..99c5130 100644
--- a/neutron_tempest_plugin/scenario/test_mtu.py
+++ b/neutron_tempest_plugin/scenario/test_mtu.py
@@ -170,18 +170,12 @@
networks = []
@classmethod
- def skip_checks(cls):
- super(NetworkWritableMtuTest, cls).skip_checks()
- supported_type_drivers = ['vxlan', 'geneve']
- if not any(type_driver in supported_type_drivers for type_driver in
- config.CONF.neutron_plugin_options.available_type_drivers):
- raise cls.skipException(
- "Neither VXLAN nor GENEVE type_driver is enabled")
-
- @classmethod
@utils.requires_ext(extension="net-mtu-writable", service="network")
def resource_setup(cls):
super(NetworkWritableMtuTest, cls).resource_setup()
+ if cls.is_driver_ovn:
+ raise cls.skipException("East/west icmp fragmentation is not "
+ "supported with ML2/OVN")
def _create_setup(self):
self.admin_client = self.os_admin.network_client