VOL-3398:
- Re-org TP State managment logic
- Mark TP as deleted only after last PON resource referencing
the TP is deleted
Change-Id: If12a164bb6bc7f3b3c0fd7f5220d71a48a859e84
diff --git a/python/adapters/brcm_openomci_onu/pon_port.py b/python/adapters/brcm_openomci_onu/pon_port.py
index 18d4914..111f1f5 100644
--- a/python/adapters/brcm_openomci_onu/pon_port.py
+++ b/python/adapters/brcm_openomci_onu/pon_port.py
@@ -123,6 +123,13 @@
def gem_ports(self):
return self._gem_ports
+ def get_gem_port(self, gem_port_id, direction="downstream"):
+ try:
+ return self._gem_ports[(gem_port_id, direction)]
+ except Exception as e:
+ self.log.error("error-fetching-gem-port", gem_port_id=gem_port_id, e=e)
+ return None
+
def get_port(self):
"""
Get the VOLTHA PORT object for this port