Adding port id config message
Change-Id: If26380d611ecbbd4595d6b172f334f6f12253edd
diff --git a/voltha/adapters/microsemi_olt/PAS5211.py b/voltha/adapters/microsemi_olt/PAS5211.py
index 068a62c..ba2de8d 100644
--- a/voltha/adapters/microsemi_olt/PAS5211.py
+++ b/voltha/adapters/microsemi_olt/PAS5211.py
@@ -597,6 +597,26 @@
LEIntField("actual_max_distance", None)
]
+class PAS5211GetPortIdConfig(PAS5211Msg):
+ opcode = 19
+ name = "PAS5211GetPortIdConfig"
+ fields_desc = [
+ LEShortField("port_id", None),
+ LEShortField("reserved", None)
+ ]
+
+
+class PAS5211GetPortIdConfigResponse(PAS5211Msg):
+ opcode = 19
+ name = "PAS5211GetPortIdConfigResponse"
+ fields_desc = [
+ LEShortField("activate", None),
+ LEShortField("encryption_state", None),
+ LEShortField("alloc_id", None),
+ LEShortField("type", None),
+ LEShortField("destination", None),
+ LEShortField("reserved", None),
+ ]
class Frame(Packet):
@@ -767,6 +787,9 @@
bind_layers(PAS5211MsgHeader, PAS5211GetOnusRange, opcode=0x3000 | 116)
bind_layers(PAS5211MsgHeader, PAS5211GetOnusRangeResponse, opcode=0x2800 | 116)
+bind_layers(PAS5211MsgHeader, PAS5211GetPortIdConfig, opcode=0x3000 | 19)
+bind_layers(PAS5211MsgHeader, PAS5211GetPortIdConfigResponse, opcode=0x2800 | 19)
+
# bindings for events received
bind_layers(PAS5211MsgHeader, PAS5211EventOnuActivation, opcode=0x2800 | 12, event_type=1)
bind_layers(PAS5211MsgHeader, PAS5211EventFrameReceived, opcode=0x2800 | 12, event_type=10)