[VOL-3837] Checking that OnuId, AllocId and GemPorts are unique per PON
Validate that received flow carry valid GemPortId and AllocIds
Change-Id: I1b8928c7a9e580c9711f61320595a449df7c30f5
diff --git a/internal/common/omci/set.go b/internal/common/omci/set.go
index 64f048f..73e17df 100644
--- a/internal/common/omci/set.go
+++ b/internal/common/omci/set.go
@@ -40,7 +40,7 @@
return msgObj, nil
}
-func CreateSetResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error) {
+func CreateSetResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, result me.Results) ([]byte, error) {
msgObj, err := ParseSetRequest(omciPkt)
@@ -59,7 +59,7 @@
EntityClass: msgObj.EntityClass,
EntityInstance: msgObj.EntityInstance,
},
- Result: me.Success,
+ Result: result,
}
pkt, err := Serialize(omci.SetResponseType, response, omciMsg.TransactionID)