Adds support for BBF WT-385 xPON model:
VOL-151: Framework for OLT PON Configuration Parameters
VOL-152: Framework for ONU Configuration Parameters
VOL-220: Support configuration(Create/Read/Delete) of Channel-Group,
Channel-Partition, Channel-Pair & Channel-Termination Objects
for XGS-PON
Change-Id: I992a4e03e6e7b021d7aa9a49a5f8466876c8f07c
diff --git a/ponsim/ponsim.py b/ponsim/ponsim.py
index 3adcd4e..619beb1 100644
--- a/ponsim/ponsim.py
+++ b/ponsim/ponsim.py
@@ -471,3 +471,19 @@
if not isinstance(frame, Packet):
frame = Ether(frame)
self.devices[port].ingress(2, frame)
+
+class XPonSim(object):
+ def __init__(self):
+ self.log = structlog.get_logger()
+
+ def CreateInterface(self, request):
+ self.log.info("create-interface-request", interface_type = request.WhichOneof("interface_type"), data = request)
+ return
+
+ def UpdateInterface(self, request):
+ self.log.info("update-interface-request", interface_type = request.WhichOneof("interface_type"), data = request)
+ return
+
+ def RemoveInterface(self, request):
+ self.log.info("remove-interface-request", interface_type = request.WhichOneof("interface_type"), data = request)
+ return