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