blob: cd54b5b464a22d9c5b2d18486163c3ddcb2c156a [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// PhysicalPathTerminationPointVideoUniClassID is the 16-bit ID for the OMCI
26// Managed entity Physical path termination point video UNI
27const PhysicalPathTerminationPointVideoUniClassID ClassID = ClassID(82)
28
29var physicalpathterminationpointvideouniBME *ManagedEntityDefinition
30
31// PhysicalPathTerminationPointVideoUni (class ID #82)
32// This ME represents an RF video UNI in the ONU, where physical paths terminate and physical path
33// level functions are performed.
34//
35// The ONU automatically creates an instance of this ME per port:
36//
37// o when the ONU has RF video UNI ports built into its factory configuration;
38//
39// o when a cardholder is provisioned to expect a circuit pack of the video UNI type;
40//
41// o when a cardholder provisioned for plug-and-play is equipped with a circuit pack of the video
42// UNI type. Note that the installation of a plug-and-play card may indicate the presence of video
43// ports via equipment ID as well as its type, and indeed may cause the ONU to instantiate a port-
44// mapping package that specifies video ports.
45//
46// The ONU automatically deletes instances of this ME when a cardholder is neither provisioned to
47// expect a video circuit pack, nor is it equipped with a video circuit pack.
48//
49// Relationships
50// One or more instances of this ME are associated with an instance of a real or virtual circuit
51// pack classified as video type.
52//
53// Attributes
54// Managed Entity Id
55// Managed entity ID: This attribute uniquely identifies each instance of this ME. This 2-byte
56// number indicates the physical position of the UNI. The first byte is the slot ID (defined in
57// clause 9.1.5). The second byte is the port ID, with the range 1..255. (R) (mandatory) (2-bytes)
58//
59// Administrative State
60// Administrative state: This attribute locks (1) and unlocks (0) the functions performed by this
61// ME. Administrative state is further described in clause A.1.6. (R,-W) (mandatory) (1-byte)
62//
63// Operational State
64// Operational state: This attribute indicates whether the ME is capable of performing its
65// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1-byte)
66//
67// Arc
68// ARC: See clause A.1.4.3. (R,-W) (optional) (1-byte)
69//
70// Arc Interval
71// ARC interval: See clause A.1.4.3. (R,-W) (optional) (1-byte)
72//
73// Power Control
74// Power control: This attribute controls whether power is provided from the ONU to an external
75// equipment over the video PPTP. Value 1 enables power over coaxial cable. The default value 0
76// disables power feed. (R,-W) (optional) (1-byte)
77//
78type PhysicalPathTerminationPointVideoUni struct {
79 ManagedEntityDefinition
80 Attributes AttributeValueMap
81}
82
83func init() {
84 physicalpathterminationpointvideouniBME = &ManagedEntityDefinition{
85 Name: "PhysicalPathTerminationPointVideoUni",
86 ClassID: 82,
87 MessageTypes: mapset.NewSetWith(
88 Get,
89 Set,
90 ),
91 AllowedAttributeMask: 0xf800,
92 AttributeDefinitions: AttributeDefinitionMap{
93 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
94 1: ByteField("AdministrativeState", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
95 2: ByteField("OperationalState", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read), true, true, false, 2),
96 3: ByteField("Arc", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), true, true, false, 3),
97 4: ByteField("ArcInterval", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4),
98 5: ByteField("PowerControl", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, true, false, 5),
99 },
100 Access: CreatedByOnu,
101 Support: UnknownSupport,
102 }
103}
104
105// NewPhysicalPathTerminationPointVideoUni (class ID 82) creates the basic
106// Managed Entity definition that is used to validate an ME of this type that
107// is received from or transmitted to the OMCC.
108func NewPhysicalPathTerminationPointVideoUni(params ...ParamData) (*ManagedEntity, OmciErrors) {
109 return NewManagedEntity(*physicalpathterminationpointvideouniBME, params...)
110}