def skip_checks(cls): super(SriovBasicOpsTest, cls).skip_checks() if CONF.network.port_vnic_type not in ['direct']: msg = 'Test requires port_vnic_type "direct"' raise cls.skipException(msg) if Topology.has_default_switchdev_port_profile(): raise cls.skipException('Test requires switchdev offloading ' 'to be disabled')
class Ipv6OsMgdL2ConnectivityTest(Ipv4OsMgdL2ConnectivityTest): _ip_version = 6 _cidr1 = IPNetwork('cafe:babb::1/64') _cidr2 = IPNetwork('cafe:babc::1/64') @classmethod def skip_checks(cls): super(Ipv6OsMgdL2ConnectivityTest, cls).skip_checks() if not Topology.has_single_stack_v6_support(): msg = 'There is no single-stack v6 support in current release' raise cls.skipException(msg) @testtools.skipIf(Topology.has_default_switchdev_port_profile(), reason='VRS-35478') def test_icmp_connectivity_stateless_acl_os_managed_l2_neg(self): super(Ipv6OsMgdL2ConnectivityTest, self)\ .test_icmp_connectivity_stateless_acl_os_managed_l2_neg() @testtools.skipIf(Topology.has_default_switchdev_port_profile(), reason='VRS-36467') def test_icmp_connectivity_stateful_acl_os_managed_l2(self): super(Ipv6OsMgdL2ConnectivityTest, self)\ .test_icmp_connectivity_stateful_acl_os_managed_l2()
def skip_checks(cls): """Raise skip exception if needed""" super(BasicOffloadingTest, cls).skip_checks() if not Topology.has_default_switchdev_port_profile(): raise cls.skipException('Test requires the created ports to be ' 'offload-capable by default')