diff --git a/neutron/tests/functional/agent/linux/base.py b/neutron/tests/functional/agent/linux/base.py index 43c5aaab893..25741b140fa 100644 --- a/neutron/tests/functional/agent/linux/base.py +++ b/neutron/tests/functional/agent/linux/base.py @@ -35,6 +35,9 @@ get_rand_name = tests_base.get_rand_name class BaseLinuxTestCase(functional_base.BaseSudoTestCase): + def _create_namespace(self, prefix=net_helpers.NS_PREFIX): + return self.useFixture(net_helpers.NamespaceFixture(prefix)).ip_wrapper + def create_veth(self): return self.useFixture(net_helpers.VethFixture()).ports