Documentation ¶
Index ¶
- Constants
- func AppendAdditionalMEs(srcSlice []byte, reportedMeHdr string, attributes string) ([]byte, error)
- func ComputeDownloadSectionsCount(pkt gopacket.Packet) uint32
- func CreateActivateSoftwareResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)
- func CreateCommitSoftwareResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)
- func CreateCreateResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, result me.Results) ([]byte, error)
- func CreateDeleteResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)
- func CreateDownloadSectionResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)
- func CreateEndSoftwareDownloadResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, status me.Results) ([]byte, error)
- func CreateGetAllAlarmsNextResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, ...) ([]byte, error)
- func CreateGetAllAlarmsResponse(omciMsg *omci.OMCI, onuAlarmDetails map[OnuAlarmInfoMapKey]OnuAlarmInfo) ([]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, mibDb *MibDb) ([]byte, error)
- func CreateMibUploadRequest(tid uint16) ([]byte, error)
- func CreateMibUploadResponse(omciMsg *omci.OMCI, mibDb *MibDb) ([]byte, error)
- func CreateRebootResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)
- func CreateSetRequest(managedEntity *me.ManagedEntity, tid uint16) ([]byte, error)
- func CreateSetResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI, result me.Results) ([]byte, error)
- func CreateStartSoftwareDownloadResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)
- func CreateSyncTimeResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error)
- func CreateTestResponse(omciPkt gopacket.Packet, omciMsg *omci.OMCI) ([]byte, error, me.ClassID, uint16, me.Results)
- func CreateTestResult(classID me.ClassID, instID uint16, tid uint16) ([]byte, error)
- func CreateUniStatusAlarm(raiseAlarm bool, entityId uint16, sequenceNo uint8) ([]byte, [28]byte)
- func HexDecode(pkt []byte) []byte
- func HexEncode(omciPkt []byte) ([]byte, error)
- func ParseActivateSoftwareRequest(omciPkt gopacket.Packet) (*omci.ActivateSoftwareRequest, error)
- func ParseCommitSoftwareRequest(omciPkt gopacket.Packet) (*omci.CommitSoftwareRequest, error)
- func ParseCreateRequest(omciPkt gopacket.Packet) (*omci.CreateRequest, error)
- func ParseDeleteRequest(omciPkt gopacket.Packet) (*omci.DeleteRequest, error)
- func ParseDownloadSectionRequest(omciPkt gopacket.Packet) (*omci.DownloadSectionRequest, error)
- func ParseEndSoftwareDownloadRequest(omciPkt gopacket.Packet) (*omci.EndSoftwareDownloadRequest, error)
- func ParseGetAllAlarmsNextRequest(omciPkt gopacket.Packet) (*omci.GetAllAlarmsNextRequest, 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 ParseOpticalLineSupervisionRequest(omciPkt gopacket.Packet) (*omci.OpticalLineSupervisionTestRequest, error)
- func ParseRebootRequest(omciPkt gopacket.Packet) (*omci.RebootRequest, error)
- func ParseSetRequest(omciPkt gopacket.Packet) (*omci.SetRequest, error)
- func ParseStartSoftwareDownloadRequest(omciPkt gopacket.Packet) (*omci.StartSoftwareDownloadRequest, error)
- func ParseSyncTimeRequest(omciPkt gopacket.Packet) (*omci.SynchronizeTimeRequest, error)
- func Serialize(msgType omci.MessageType, request gopacket.SerializableLayer, tid uint16) ([]byte, error)
- func SetTxIdInEncodedPacket(packet []byte, txId uint16) []byte
- func ToOctets(str string, size int) []byte
- type EntityID
- type MibDb
- type MibDbEntry
- type OnuAlarmInfo
- type OnuAlarmInfoMapKey
Constants ¶
const DeviceIdentifierPos = 3
Variables ¶
This section is empty.
Functions ¶
func AppendAdditionalMEs ¶ added in v1.12.8
func ComputeDownloadSectionsCount ¶ added in v1.5.2
func CreateActivateSoftwareResponse ¶ added in v1.5.2
func CreateCommitSoftwareResponse ¶ added in v1.5.2
func CreateCreateResponse ¶ added in v1.5.0
func CreateDeleteResponse ¶ added in v1.5.0
func CreateDownloadSectionResponse ¶ added in v1.5.2
func CreateEndSoftwareDownloadResponse ¶ added in v1.5.2
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(omciMsg *omci.OMCI, onuAlarmDetails map[OnuAlarmInfoMapKey]OnuAlarmInfo) ([]byte, error)
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 CreateSetRequest ¶ added in v1.8.0
func CreateSetRequest(managedEntity *me.ManagedEntity, tid uint16) ([]byte, error)
func CreateSetResponse ¶ added in v1.5.0
func CreateStartSoftwareDownloadResponse ¶ added in v1.5.2
func CreateSyncTimeResponse ¶ added in v1.5.1
func CreateTestResponse ¶ added in v1.6.1
func CreateTestResult ¶ added in v1.6.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 ParseActivateSoftwareRequest ¶ added in v1.5.2
func ParseCommitSoftwareRequest ¶ added in v1.5.2
func ParseCreateRequest ¶ added in v1.5.0
func ParseDeleteRequest ¶ added in v1.5.0
func ParseDownloadSectionRequest ¶ added in v1.5.2
func ParseEndSoftwareDownloadRequest ¶ added in v1.5.2
func ParseGetAllAlarmsNextRequest ¶ added in v1.5.2
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 ParseOpticalLineSupervisionRequest ¶ added in v1.6.1
func ParseRebootRequest ¶ added in v1.5.0
func ParseSetRequest ¶ added in v1.5.0
func ParseStartSoftwareDownloadRequest ¶ added in v1.5.2
func ParseSyncTimeRequest ¶ added in v1.5.1
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"
func SetTxIdInEncodedPacket ¶ added in v1.12.0
Types ¶
type EntityID ¶ added in v1.8.0
type EntityID []byte
func GenerateUniPortEntityId ¶ added in v1.8.0
func (EntityID) FromUint16 ¶ added in v1.8.0
type MibDb ¶ added in v1.8.0
type MibDb struct { NumberOfBaselineCommands uint16 NumberOfExtendedCommands uint16 // contains filtered or unexported fields }
func GenerateMibDatabase ¶ added in v1.8.0
func GenerateMibDatabase(ethUniPortCount int, potsUniPortCount int, technology common.PonTechnology) (*MibDb, error)
creates a MIB database for a ONU CircuitPack and CardHolder are static, everything else can be configured
type MibDbEntry ¶ added in v1.8.0
type MibDbEntry struct {
// contains filtered or unexported fields
}
MibDbEntry contains all the information needed to build a MibUploadNextResponse packet. if Packet has a value all the other fields are ignored and the packet is sent as is.