omci

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeDownloadSectionsCount added in v1.5.2

func ComputeDownloadSectionsCount(pkt gopacket.Packet) int

func CreateActivateSoftwareResponse added in v1.5.2

func CreateActivateSoftwareResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateCommitSoftwareResponse added in v1.5.2

func CreateCommitSoftwareResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateCreateResponse added in v1.5.0

func CreateCreateResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, result me.Results) ([]byte, error)

func CreateDeleteResponse added in v1.5.0

func CreateDeleteResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateDownloadSectionResponse added in v1.5.2

func CreateDownloadSectionResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateEndSoftwareDownloadResponse added in v1.5.2

func CreateEndSoftwareDownloadResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, status me.Results) ([]byte, error)

func CreateGetAllAlarmsNextResponse added in v1.5.2

func CreateGetAllAlarmsNextResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, onuAlarmDetails map[OnuAlarmInfoMapKey]OnuAlarmInfo) ([]byte, error)

func CreateGetAllAlarmsResponse added in v1.5.2

func CreateGetAllAlarmsResponse(tid uint16, onuAlarmDetails map[OnuAlarmInfoMapKey]OnuAlarmInfo) ([]byte, error)

func CreateGetResponse added in v1.5.0

func CreateGetResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, onuSn *openolt.SerialNumber, mds uint8, activeImageEntityId uint16, committedImageEntityId uint16, onuDown bool) ([]byte, error)

func CreateMibResetRequest

func CreateMibResetRequest(tid uint16) ([]byte, error)

func CreateMibResetResponse added in v1.5.0

func CreateMibResetResponse(tid uint16) ([]byte, error)

func CreateMibUploadNextRequest

func CreateMibUploadNextRequest(tid uint16, seqNumber uint16) ([]byte, error)

func CreateMibUploadNextResponse added in v1.5.0

func CreateMibUploadNextResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, mds uint8) ([]byte, error)

func CreateMibUploadRequest

func CreateMibUploadRequest(tid uint16) ([]byte, error)

func CreateMibUploadResponse added in v1.5.0

func CreateMibUploadResponse(tid uint16) ([]byte, error)

func CreateRebootResponse added in v1.5.0

func CreateRebootResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateSetResponse added in v1.5.0

func CreateSetResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, result me.Results) ([]byte, error)

func CreateStartSoftwareDownloadResponse added in v1.5.2

func CreateStartSoftwareDownloadResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateSyncTimeResponse added in v1.5.1

func CreateSyncTimeResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)

func CreateTestResponse added in v1.6.1

func CreateTestResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error, me.ClassID, uint16, me.Results)

func CreateTestResult added in v1.6.1

func CreateTestResult(classID me.ClassID, instID uint16, tid uint16) ([]byte, error)

func CreateUniStatusAlarm added in v1.5.0

func CreateUniStatusAlarm(raiseAlarm bool, entityId uint16, sequenceNo uint8) ([]byte, [28]byte)

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 HexDecode added in v1.5.2

func HexDecode(pkt []byte) []byte

HexDecode converts the hex encoding to binary

func HexEncode added in v1.5.1

func HexEncode(omciPkt []byte) ([]byte, error)

HexEncode convert binary to hex

func ParseActivateSoftwareRequest added in v1.5.2

func ParseActivateSoftwareRequest(omciPkt gopacket.Packet) (*omci.ActivateSoftwareRequest, error)

func ParseCommitSoftwareRequest added in v1.5.2

func ParseCommitSoftwareRequest(omciPkt gopacket.Packet) (*omci.CommitSoftwareRequest, error)

func ParseCreateRequest added in v1.5.0

func ParseCreateRequest(omciPkt gopacket.Packet) (*omci.CreateRequest, error)

func ParseDeleteRequest added in v1.5.0

func ParseDeleteRequest(omciPkt gopacket.Packet) (*omci.DeleteRequest, error)

func ParseDownloadSectionRequest added in v1.5.2

func ParseDownloadSectionRequest(omciPkt gopacket.Packet) (*omci.DownloadSectionRequest, error)

func ParseEndSoftwareDownloadRequest added in v1.5.2

func ParseEndSoftwareDownloadRequest(omciPkt gopacket.Packet) (*omci.EndSoftwareDownloadRequest, error)

func ParseGetAllAlarmsNextRequest added in v1.5.2

func ParseGetAllAlarmsNextRequest(omciPkt gopacket.Packet) (*omci.GetAllAlarmsNextRequest, error)

func ParseGetRequest added in v1.5.0

func ParseGetRequest(omciPkt gopacket.Packet) (*omci.GetRequest, error)

func ParseMibUploadNextRequest added in v1.5.0

func ParseMibUploadNextRequest(omciPkt gopacket.Packet) (*omci.MibUploadNextRequest, error)

func ParseOpenOltOmciPacket added in v1.5.0

func ParseOpenOltOmciPacket(pkt []byte) (gopacket.Packet, *omci.OMCI, error)

ParseOpenOltOmciPacket receive an OMCI packet in the openolt format and returns an OMCI Layer as per omci-lib-go

func ParseOpticalLineSupervisionRequest added in v1.6.1

func ParseOpticalLineSupervisionRequest(omciPkt gopacket.Packet) (*omci.OpticalLineSupervisionTestRequest, error)

func ParseRebootRequest added in v1.5.0

func ParseRebootRequest(omciPkt gopacket.Packet) (*omci.RebootRequest, error)

func ParseSetRequest added in v1.5.0

func ParseSetRequest(omciPkt gopacket.Packet) (*omci.SetRequest, error)

func ParseStartSoftwareDownloadRequest added in v1.5.2

func ParseStartSoftwareDownloadRequest(omciPkt gopacket.Packet) (*omci.StartSoftwareDownloadRequest, error)

func ParseSyncTimeRequest added in v1.5.1

func ParseSyncTimeRequest(omciPkt gopacket.Packet) (*omci.SynchronizeTimeRequest, error)

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

type OnuAlarmInfo added in v1.5.2

type OnuAlarmInfo struct {
	SequenceNo  uint8
	AlarmBitMap [28]byte
}

type OnuAlarmInfoMapKey added in v1.5.2

type OnuAlarmInfoMapKey struct {
	MeInstance uint16
	MeClassID  me.ClassID
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL