Documentation ¶
Index ¶
- func BuildTestResult(payload []byte) ([]byte, error)
- func CreateCreateResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)
- func CreateDeleteResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)
- func CreateEnableUniRequest(tid uint16, uniId uint16, enabled bool, isPtp bool) ([]byte, error)
- func CreateGalEnetRequest(tid uint16) ([]byte, error)
- func CreateGemPortRequest(tid uint16) ([]byte, error)
- func CreateGetResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, onuSn *openolt.SerialNumber, ...) ([]byte, error)
- func CreateMibResetRequest(tid uint16) ([]byte, error)
- func CreateMibResetResponse(tid uint16) ([]byte, error)
- func CreateMibUploadNextRequest(tid uint16, seqNumber uint16) ([]byte, error)
- func CreateMibUploadNextResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, mds uint8) ([]byte, error)
- func CreateMibUploadRequest(tid uint16) ([]byte, error)
- func CreateMibUploadResponse(tid uint16) ([]byte, error)
- func CreateRebootResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)
- func CreateSetResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)
- func CreateSyncTimeResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)
- func CreateUniStatusAlarm(adminState uint8, entityId uint16) []byte
- func GeneratePriorityQueueMe(sequence uint16) (*me.ManagedEntity, me.OmciErrors)
- func HexEncode(omciPkt []byte) ([]byte, error)
- func IsTestRequest(payload []byte) (bool, error)
- func ParseCreateRequest(omciPkt gopacket.Packet) (*omci.CreateRequest, error)
- func ParseDeleteRequest(omciPkt gopacket.Packet) (*omci.DeleteRequest, error)
- func ParseGetRequest(omciPkt gopacket.Packet) (*omci.GetRequest, error)
- func ParseMibUploadNextRequest(omciPkt gopacket.Packet) (*omci.MibUploadNextRequest, error)
- func ParseOpenOltOmciPacket(pkt []byte) (gopacket.Packet, *omci.OMCI, error)
- func ParseRebootRequest(omciPkt gopacket.Packet) (*omci.RebootRequest, error)
- func ParseSetRequest(omciPkt gopacket.Packet) (*omci.SetRequest, error)
- func ParseSyncTimeRequest(omciPkt gopacket.Packet) (*omci.SynchronizeTimeRequest, error)
- func ParseTestRequest(omciPkt gopacket.Packet) (*omci.TestRequest, error)
- func Serialize(msgType omci.MessageType, request gopacket.SerializableLayer, tid uint16) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTestResult ¶ added in v0.0.19
func CreateCreateResponse ¶ added in v1.5.0
func CreateDeleteResponse ¶ added in v1.5.0
func CreateEnableUniRequest ¶
func CreateGalEnetRequest ¶
func CreateGemPortRequest ¶
func CreateGetResponse ¶ added in v1.5.0
func CreateMibResetRequest ¶
func CreateMibResetResponse ¶ added in v1.5.0
func CreateMibUploadNextResponse ¶ added in v1.5.0
func CreateMibUploadRequest ¶
func CreateMibUploadResponse ¶ added in v1.5.0
func CreateRebootResponse ¶ added in v1.5.0
func CreateSetResponse ¶ added in v1.5.0
func CreateSyncTimeResponse ¶ added in v1.5.1
func CreateUniStatusAlarm ¶ added in v1.5.0
CreateUniStatusAlarm will generate an Alarm packet to report that the Link is UP or DOWN as a consequence of a SetRequest on PhysicalPathTerminationPointEthernetUniClassID
func GeneratePriorityQueueMe ¶ added in v1.5.1
func GeneratePriorityQueueMe(sequence uint16) (*me.ManagedEntity, me.OmciErrors)
func IsTestRequest ¶ added in v0.0.19
Return true if msg is an Omci Test Request
func ParseCreateRequest ¶ added in v1.5.0
func ParseDeleteRequest ¶ added in v1.5.0
func ParseGetRequest ¶ added in v1.5.0
func ParseMibUploadNextRequest ¶ added in v1.5.0
func ParseOpenOltOmciPacket ¶ added in v1.5.0
ParseOpenOltOmciPacket receive an OMCI packet in the openolt format and returns an OMCI Layer as per omci-lib-go
func ParseRebootRequest ¶ added in v1.5.0
func ParseSetRequest ¶ added in v1.5.0
func ParseSyncTimeRequest ¶ added in v1.5.1
func ParseTestRequest ¶ added in v1.5.0
func Serialize ¶ added in v1.5.1
func Serialize(msgType omci.MessageType, request gopacket.SerializableLayer, tid uint16) ([]byte, error)
NOTE this is basically the same as https://github.com/opencord/voltha-openonu-adapter-go/blob/master/internal/pkg/onuadaptercore/omci_cc.go#L545-L564 we should probably move it in "omci-lib-go"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.