예제 #1
0
 def setUp(self, **kwargs):
     super().setUp(**kwargs)
     self.chassis = self.add_fake_chassis('ovs-host1',
                                          enable_chassis_as_gw=True)
     self.l3_plugin = directory.get_plugin(plugin_constants.L3)
     ext_mgr = test_l3.L3TestExtensionManager()
     self.ext_api = test_extensions.setup_extensions_middleware(ext_mgr)
     self.handler = event.RowEventHandler()
     self.sb_api.idl.notify = self.handler.notify
예제 #2
0
 def test_lookup_with_timeout_and_notify_handler(self):
     notify_handler = event.RowEventHandler()
     self.api.idl.notify = notify_handler.notify
     t_create = threading.Thread(target=self._create_ls, args=())
     t_create.start()
     ret = self.api.lookup('Logical_Switch',
                           self.lsp_name,
                           timeout=3,
                           notify_handler=notify_handler)
     self.assertEqual(self.lsp_name, ret.name)
     t_create.join()
예제 #3
0
 def __init__(self, remote, schema):
     self.notify_handler = row_event.RowEventHandler()
     super(BaseOvnIdl, self).__init__(remote, schema)
예제 #4
0
 def test_lookup_without_timeout(self):
     self._test_lookup_exception(0, event.RowEventHandler())
예제 #5
0
 def setUp(self):
     super(OvnSouthboundTest, self).setUp()
     self.api = impl_idl.OvnSbApiIdlImpl(self.connection['OVN_Southbound'])
     self.nbapi = nbidl.OvnNbApiIdlImpl(self.connection['OVN_Northbound'])
     self.handler = ovsdb_event.RowEventHandler()
     self.api.idl.notify = self.handler.notify