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