Fix linuxbridge agent tests

Agent tests failing missing parameter in setUp

Change-Id: I7c7e029fbf88e0fd62aba821e81a55d3aca02190
This commit is contained in:
Gary Kotton 2012-07-25 09:35:16 -04:00
parent 50c770ef01
commit 261fdaad9b

View File

@ -411,6 +411,7 @@ class LinuxBridgeAgentTest(unittest.TestCase):
self.br_name_prefix = "brq" self.br_name_prefix = "brq"
self.gw_name_prefix = "gw-" self.gw_name_prefix = "gw-"
self.tap_name_prefix = "tap" self.tap_name_prefix = "tap"
self.v2 = True
self._linuxbridge_plugin = LinuxBridgePlugin.LinuxBridgePlugin() self._linuxbridge_plugin = LinuxBridgePlugin.LinuxBridgePlugin()
try: try:
fh = open(self.config_file) fh = open(self.config_file)
@ -434,7 +435,8 @@ class LinuxBridgeAgentTest(unittest.TestCase):
self.physical_interface, self.physical_interface,
self.polling_interval, self.polling_interval,
self.reconnect_interval, self.reconnect_interval,
self.root_helper) self.root_helper,
self.v2)
def run_cmd(self, args): def run_cmd(self, args):
cmd = shlex.split(self.root_helper) + args cmd = shlex.split(self.root_helper) + args