blob: 8df24617425969aa108d08b49e9410c742165a4e [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// BbfTr069ManagementServerClassID is the 16-bit ID for the OMCI
26// Managed entity BBF TR-069 management server
27const BbfTr069ManagementServerClassID ClassID = ClassID(340)
28
29var bbftr069managementserverBME *ManagedEntityDefinition
30
31// BbfTr069ManagementServer (class ID #340)
32// If functions within the ONU are managed by [BBF TR-069], this ME allows OMCI configuration of
33// the autoconfiguration server (ACS) URL and related authentication information for an ACS
34// connection initiated by the ONU. [BBF TR-069] supports other means to discover its ACS, so not
35// all BBF-TR069-compatible ONUs necessarily support this ME. Furthermore, even if the ONU does
36// support this ME, some operators may choose not to use it.
37//
38// An ONU that supports OMCI configuration of ACS information automatically creates instances of
39// this ME.
40//
41// Relationships
42// An instance of the BBF TR-069 management server ME exists for each instance of a BBF TR-069
43// management domain within the ONU.
44//
45// Attributes
46// Managed Entity Id
47// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
48// identical ID, this ME is implicitly linked to an instance of a VEIP that links to the BBF TR-069
49// management domain. (R) (mandatory) (2-bytes)
50//
51// Administrative State
52// Administrative state: This attribute locks (1) and unlocks (0) the functions performed by this
53// ME. When the administrative state is locked, the functions of this ME are disabled. BBF TR-069
54// connectivity to an ACS may be possible through means that do not depend on this ME. The default
55// value of this attribute is locked. (R,W) (mandatory) (1-byte)
56//
57// Acs Network Address
58// ACS network address: This attribute points to an instance of a network address ME that contains
59// URL and authentication information associated with the ACS URL. (R, W) (mandatory) (2 bytes)
60//
61// Associated Tag
62// Associated tag: This attribute is a TCI value for BBF TR-069 management traffic passing through
63// the VEIP. A TCI, comprising user priority, CFI and VID, is represented by 2-bytes. The value
64// 0xFFFF specifies that BBF TR-069 management traffic passes through the VEIP with neither a VLAN
65// nor a priority tag. (R, W) (mandatory) (2-bytes)
66//
67type BbfTr069ManagementServer struct {
68 ManagedEntityDefinition
69 Attributes AttributeValueMap
70}
71
72func init() {
73 bbftr069managementserverBME = &ManagedEntityDefinition{
74 Name: "BbfTr069ManagementServer",
75 ClassID: 340,
76 MessageTypes: mapset.NewSetWith(
77 Get,
78 Set,
79 ),
80 AllowedAttributeMask: 0xe000,
81 AttributeDefinitions: AttributeDefinitionMap{
82 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read), false, false, false, 0),
83 1: ByteField("AdministrativeState", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, Write), false, false, false, 1),
84 2: Uint16Field("AcsNetworkAddress", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, Write), false, false, false, 2),
85 3: Uint16Field("AssociatedTag", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, false, false, 3),
86 },
87 Access: CreatedByOnu,
88 Support: UnknownSupport,
89 }
90}
91
92// NewBbfTr069ManagementServer (class ID 340) creates the basic
93// Managed Entity definition that is used to validate an ME of this type that
94// is received from or transmitted to the OMCC.
95func NewBbfTr069ManagementServer(params ...ParamData) (*ManagedEntity, OmciErrors) {
96 return NewManagedEntity(*bbftr069managementserverBME, params...)
97}