diff --git a/neutron/tests/fullstack/test_securitygroup.py b/neutron/tests/fullstack/test_securitygroup.py index e89346ac836..c7e03cb6104 100644 --- a/neutron/tests/fullstack/test_securitygroup.py +++ b/neutron/tests/fullstack/test_securitygroup.py @@ -43,10 +43,6 @@ class BaseSecurityGroupsSameNetworkTest(base.BaseFullStackTestCase): ovsdb_interface = None def setUp(self): - if (self.firewall_driver == 'openvswitch' and - not OVSVersionChecker.supports_ovsfirewall()): - self.skipTest("Open vSwitch firewall_driver doesn't work " - "with this version of ovs.") host_descriptions = [ environment.HostDescription( of_interface=self.of_interface, @@ -60,6 +56,11 @@ class BaseSecurityGroupsSameNetworkTest(base.BaseFullStackTestCase): host_descriptions) super(BaseSecurityGroupsSameNetworkTest, self).setUp(env) + if (self.firewall_driver == 'openvswitch' and + not OVSVersionChecker.supports_ovsfirewall()): + self.skipTest("Open vSwitch firewall_driver doesn't work " + "with this version of ovs.") + def assert_connection(self, *args, **kwargs): netcat = net_helpers.NetcatTester(*args, **kwargs) try: