Merge "Fix UT BridgeLibTest when IPv6 is disabled"

This commit is contained in:
Zuul 2018-06-05 22:59:59 +00:00 committed by Gerrit Code Review
commit 39c03930b8
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ class BridgeLibTest(base.BaseTestCase):
def setUp(self):
super(BridgeLibTest, self).setUp()
mock.patch(
'neutron.common.ipv6_utils.is_enabled_and_bind_by_default',
return_value=True).start()
ip_wrapper = mock.patch('neutron.agent.linux.ip_lib.IPWrapper').start()
self.execute = ip_wrapper.return_value.netns.execute