[VOL-1469] Missing yield keyword
This commit fixes the issue with missing yield keywork in the
ponsim adapters.
Change-Id: Ie5344a561c63d038a8eb8fefcf1528ab7444825d
diff --git a/python/adapters/ponsim_olt/ponsim_olt.py b/python/adapters/ponsim_olt/ponsim_olt.py
index 06c1235..ff5ee00 100644
--- a/python/adapters/ponsim_olt/ponsim_olt.py
+++ b/python/adapters/ponsim_olt/ponsim_olt.py
@@ -265,7 +265,7 @@
self.pm_metrics = AdapterPmMetrics(device)
pm_config = self.pm_metrics.make_proto()
log.info("initial-pm-config", pm_config=pm_config)
- self.core_proxy.device_pm_config_update(pm_config, init=True)
+ yield self.core_proxy.device_pm_config_update(pm_config, init=True)
# Setup alarm handler
self.alarms = AdapterAlarms(self.adapter, device)
diff --git a/python/adapters/ponsim_onu/ponsim_onu.py b/python/adapters/ponsim_onu/ponsim_onu.py
index 22d9ca4..a10c235 100644
--- a/python/adapters/ponsim_onu/ponsim_onu.py
+++ b/python/adapters/ponsim_onu/ponsim_onu.py
@@ -207,7 +207,7 @@
self.pm_metrics = AdapterPmMetrics(device)
pm_config = self.pm_metrics.make_proto()
log.info("initial-pm-config", pm_config=pm_config)
- self.core_proxy.device_pm_config_update(pm_config, init=True)
+ yield self.core_proxy.device_pm_config_update(pm_config, init=True)
# register physical ports
self.uni_port = Port(
@@ -230,8 +230,8 @@
)
]
)
- self.core_proxy.port_created(device.id, self.uni_port)
- self.core_proxy.port_created(device.id, self.pon_port)
+ yield self.core_proxy.port_created(device.id, self.uni_port)
+ yield self.core_proxy.port_created(device.id, self.pon_port)
yield self.core_proxy.device_state_update(device.id,
connect_status=ConnectStatus.REACHABLE,