blob: 75e6bde196077ca9a7b6c5e36369d8708fbd0ae0 [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 NetworkDialPlanTableClassId ClassID = ClassID(145)
25
26var networkdialplantableBME *ManagedEntityDefinition
27
28// NetworkDialPlanTable (class ID #145)
29// The network dial plan table ME is optional for ONUs providing VoIP services. This ME is used to
30// provision dial plans from the OLT. Instances of this ME are created and deleted by the OLT. If a
31// non-OMCI interface is used to manage SIP for VoIP, this ME is unnecessary.
32//
33// Relationships
34// An instance of this ME may be associated with one or more instances of the SIP user data ME.
35//
36// Attributes
37// Managed Entity Id
38// Managed entity ID: This attribute uniquely identifies each instance of this ME. (R, setbycreate)
39// (mandatory) (2 bytes)
40//
41// Dial Plan Number
42// Dial plan number: This attribute indicates the current number of dial plans in the dial plan
43// table. (R) (mandatory) (2 bytes)
44//
45// Dial Plan Table Max Size
46// Dial plan table max size: This attribute defines the maximum number of dial plans that can be
47// stored in the dial plan table. (R, setbycreate) (mandatory) (2 bytes)
48//
49// Critical Dial Timeout
50// Critical dial timeout: This attribute defines the critical dial timeout for digit map
51// processing, in milliseconds. The recommended default value is 4000 ms. (R, W, setbycreate)
52// (mandatory) (2 bytes)
53//
54// Partial Dial Timeout
55// Partial dial timeout: This attribute defines the partial dial timeout for digit map processing,
56// in milliseconds. The recommended default value is 16000 ms. (R, W, setbycreate) (mandatory)
57// (2 bytes)
58//
59// Dial Plan Format
60// (R, W, setbycreate) (mandatory) (1 byte)
61//
62// Dial Plan Table
63// (R, W) (mandatory) (30 * N bytes, where N is the number of dial plans)
64//
65type NetworkDialPlanTable struct {
66 ManagedEntityDefinition
67 Attributes AttributeValueMap
68}
69
70func init() {
71 networkdialplantableBME = &ManagedEntityDefinition{
72 Name: "NetworkDialPlanTable",
73 ClassID: 145,
74 MessageTypes: mapset.NewSetWith(
75 Create,
76 Delete,
77 Get,
78 GetNext,
79 Set,
80 ),
81 AllowedAttributeMask: 0XFC00,
82 AttributeDefinitions: AttributeDefinitionMap{
83 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
84 1: Uint16Field("DialPlanNumber", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
85 2: Uint16Field("DialPlanTableMaxSize", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 2),
86 3: Uint16Field("CriticalDialTimeout", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 3),
87 4: Uint16Field("PartialDialTimeout", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 4),
88 5: ByteField("DialPlanFormat", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 5),
89 6: TableField("DialPlanTable", TableInfo{0, 1}, mapset.NewSetWith(Read, Write), false, false, false, 6),
90 },
91 }
92}
93
94// NewNetworkDialPlanTable (class ID 145 creates the basic
95// Managed Entity definition that is used to validate an ME of this type that
96// is received from the wire, about to be sent on the wire.
97func NewNetworkDialPlanTable(params ...ParamData) (*ManagedEntity, OmciErrors) {
98 return NewManagedEntity(networkdialplantableBME, params...)
99}