blob: e3e05f67f4b5bdff928c30e787b78541e3103fcc [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License.
13 */
14/*
15 * NOTE: This file was generated, manual edits will be overwritten!
16 *
17 * Generated by 'goCodeGenerator.py':
18 * https://github.com/cboling/OMCI-parser/README.md
19 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const IpHostPerformanceMonitoringHistoryDataClassId ClassID = ClassID(135)
25
26var iphostperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// IpHostPerformanceMonitoringHistoryData (class ID #135)
29// This ME collects PM data related to an IP host. Instances of this ME are created and deleted by
30// the OLT.
31//
32// For a complete discussion of generic PM architecture, refer to clause I.4.
33//
34// Relationships
35// An instance of this ME is associated with an instance of the IP host config data or IPv6 host
36// config data ME.
37//
38// Attributes
39// Managed Entity Id
40// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
41// identical ID, this ME is implicitly linked to an instance of the IP host configuration data or
42// IPv6 host configuration data ME. (R, set-by-create) (mandatory) (2 bytes)
43//
44// Interval End Time
45// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
46// (mandatory) (1 byte)
47//
48// Threshold Data 1_2 Id
49// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
50// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
51// data 2 ME is optional. (R, W, set-by-create) (mandatory) (2 bytes)
52//
53// Icmp Errors
54// ICMP errors: This attribute counts ICMP errors received. (R) (mandatory) (4 bytes)
55//
56// Dns Errors
57// DNS errors: This attribute counts DNS errors received. (R) (mandatory) (4 bytes)
58//
59// Dhcp Timeouts
60// DHCP timeouts: This attribute counts DHCP timeouts. (R) (optional) (2 bytes)
61//
62// Ip Address Conflict
63// IP address conflict: This attribute is incremented whenever the ONU detects a conflicting IP
64// address on the network. A conflicting IP address is one that has the same value as the one
65// currently assigned to the ONU. (R) (optional) (2 bytes)
66//
67// Out Of Memory
68// Out of memory: This attribute is incremented whenever the ONU encounters an out of memory
69// condition in the IP stack. (R) (optional) (2 bytes)
70//
71// Internal Error
72// Internal error: This attribute is incremented whenever the ONU encounters an internal error
73// condition such as a driver interface failure in the IP stack. (R) (optional) (2 bytes)
74//
75type IpHostPerformanceMonitoringHistoryData struct {
76 ManagedEntityDefinition
77 Attributes AttributeValueMap
78}
79
80func init() {
81 iphostperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
82 Name: "IpHostPerformanceMonitoringHistoryData",
83 ClassID: 135,
84 MessageTypes: mapset.NewSetWith(
85 Create,
86 Delete,
87 Get,
88 Set,
89 ),
90 AllowedAttributeMask: 0XFF00,
91 AttributeDefinitions: AttributeDefinitionMap{
92 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
93 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
94 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
95 3: Uint32Field("IcmpErrors", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
96 4: Uint32Field("DnsErrors", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
97 5: Uint16Field("DhcpTimeouts", 0, mapset.NewSetWith(Read), false, false, true, false, 5),
98 6: Uint16Field("IpAddressConflict", 0, mapset.NewSetWith(Read), false, false, true, false, 6),
99 7: Uint16Field("OutOfMemory", 0, mapset.NewSetWith(Read), false, false, true, false, 7),
100 8: Uint16Field("InternalError", 0, mapset.NewSetWith(Read), false, false, true, false, 8),
101 },
102 }
103}
104
105// NewIpHostPerformanceMonitoringHistoryData (class ID 135 creates the basic
106// Managed Entity definition that is used to validate an ME of this type that
107// is received from the wire, about to be sent on the wire.
108func NewIpHostPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
109 return NewManagedEntity(iphostperformancemonitoringhistorydataBME, params...)
110}