From: YAMAMOTO Takashi Date: Tue, 21 Apr 2015 05:07:08 +0000 (+0900) Subject: Revive BaseLinuxTestCase._create_namespace X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=0cde6752f86d84541c8c10a39bb1c8b0d65e5482;p=openstack-build%2Fneutron-build.git Revive BaseLinuxTestCase._create_namespace It was removed by commit 7f7343b1afc0b1b953e5c36a753397a6d37316cb but still have a few users. Closes-Bug: #1446465 Change-Id: I2914700f17ae38a775735906931f0f616c13c602 --- diff --git a/neutron/tests/functional/agent/linux/base.py b/neutron/tests/functional/agent/linux/base.py index 43c5aaab8..25741b140 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