small fixes to microsemi adapter.
Change-Id: I5b08ff2dc781543ce063c013edad5aa37d47731e
diff --git a/voltha/adapters/microsemi/DeviceManager.py b/voltha/adapters/microsemi/DeviceManager.py
index 960d13c..24ecaff 100644
--- a/voltha/adapters/microsemi/DeviceManager.py
+++ b/voltha/adapters/microsemi/DeviceManager.py
@@ -58,7 +58,6 @@
# that will correspond to the NNI port
logical_device_id = uuid4().hex[:12]
ld = LogicalDevice(
- id=logical_device_id,
datapath_id=int('0x' + logical_device_id[:8], 16), # from id
desc=ofp_desc(
mfr_desc=self.device.vendor,
@@ -79,8 +78,8 @@
),
root_device_id=self.device.id
)
- self.adapter_agent.create_logical_device(ld)
- self.logical_device = ld
+
+ self.logical_device = self.adapter_agent.create_logical_device(ld)
def add_port(self, port):
self.adapter_agent.add_port(self.device.id, port)
diff --git a/voltha/adapters/microsemi/microsemi.py b/voltha/adapters/microsemi/microsemi.py
index 8f9454e..bd87ea7 100644
--- a/voltha/adapters/microsemi/microsemi.py
+++ b/voltha/adapters/microsemi/microsemi.py
@@ -98,7 +98,7 @@
target=target, device=device_manager)
activation = ActivationWatcher(iface=self.interface, comm=comm,
target=target, device=device_manager)
- reactor.callLater(0, self.__init_olt, olt, activation)
+ reactor.callLater(0, self._init_olt, olt, activation)
log.info('adopted-device', device=device)
# TODO store olt elements
@@ -129,7 +129,7 @@
##
# Private methods
##
- def __init_olt(self, olt, activation_watch):
+ def _init_olt(self, olt, activation_watch):
olt.runbg()
activation_watch.runbg()