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