VOL-3370: Assertion failures during installation of Tech-Profile for TT workflow
- Pass Tcont reference to TP setup task even if TCONT was already installed before
Change-Id: Ie65d6a04b8a35e1b5fad5b3eb48162ced8fb5de4
diff --git a/python/adapters/brcm_openomci_onu/pon_port.py b/python/adapters/brcm_openomci_onu/pon_port.py
index 2ee3344..18d4914 100644
--- a/python/adapters/brcm_openomci_onu/pon_port.py
+++ b/python/adapters/brcm_openomci_onu/pon_port.py
@@ -181,6 +181,13 @@
self._tconts[tcont.alloc_id] = tcont
return True
+ def get_tcont(self, alloc_id):
+ try:
+ return self._tconts[alloc_id]
+ except Exception as e:
+ self.log.error("error-fetching-tcont", alloc_id=alloc_id, e=e)
+ return None
+
@inlineCallbacks
def remove_tcont(self, alloc_id, remove_from_hw=True):