[VOL-1499] Use precreated topic
This commit migrate from dynamically created kafka topic to
pre-created topic. The changes are made in the rw_core, simulated
onu and olt adapters, and ponsim olt and onu adapters.
TODO: move the python shared library changes into the pyvoltha
repo.
Change-Id: Ia92287ec74009872e694aa22eb896d8a6487d231
diff --git a/python/adapters/ponsim_onu/main.py b/python/adapters/ponsim_onu/main.py
index c4c12db..79320c2 100755
--- a/python/adapters/ponsim_onu/main.py
+++ b/python/adapters/ponsim_onu/main.py
@@ -358,7 +358,7 @@
self.core_proxy = CoreProxy(
kafka_proxy=None,
- core_topic=self.core_topic,
+ default_core_topic=self.core_topic,
my_listening_topic=self.listening_topic)
self.adapter_proxy = AdapterProxy(
@@ -370,7 +370,7 @@
core_proxy=self.core_proxy, adapter_proxy=self.adapter_proxy,
config=config)
ponsim_request_handler = AdapterRequestFacade(
- adapter=self.adapter)
+ adapter=self.adapter, core_proxy=self.core_proxy)
yield registry.register(
'kafka_adapter_proxy',