blob: c3108afc48983747c3afc7e3807ebae012539136 [file] [log] [blame]
/*
* Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* NOTE: This file was generated, manual edits will be overwritten!
*
* Generated by 'goCodeGenerator.py':
* https://github.com/cboling/OMCI-parser/README.md
*/
package generated
import "github.com/deckarep/golang-set"
const BbfTr069ManagementServerClassId ClassID = ClassID(340)
var bbftr069managementserverBME *ManagedEntityDefinition
// BbfTr069ManagementServer (class ID #340)
// If functions within the ONU are managed by [BBF TR-069], this ME allows OMCI configuration of
// the autoconfiguration server (ACS) URL and related authentication information for an ACS
// connection initiated by the ONU. [BBF TR-069] supports other means to discover its ACS, so not
// all BBF TR069-compatible ONUs necessarily support this ME. Furthermore, even if the ONU does
// support this ME, some operators may choose not to use it.
//
// An ONU that supports OMCI configuration of ACS information automatically creates instances of
// this ME.
//
// Relationships
// An instance of the BBF TR-069 management server ME exists for each instance of a BBF TR-069
// management domain within the ONU.
//
// Attributes
// Managed Entity Id
// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
// identical ID, this ME is implicitly linked to an instance of a VEIP that links to the BBF TR-069
// management domain. (R) (mandatory) (2 bytes)
//
// Administrative State
// Administrative state: This attribute locks (1) and unlocks (0) the functions performed by this
// ME. When the administrative state is locked, the functions of this ME are disabled. BBF TR-069
// connectivity to an ACS may be possible through means that do not depend on this ME. The default
// value of this attribute is locked. (R,W) (mandatory) (1 byte)
//
// Acs Network Address
// ACS network address: This attribute points to an instance of a network address ME that contains
// URL and authentication information associated with the ACS URL. (R, W) (mandatory) (2 bytes)
//
// Associated Tag
// Associated tag: This attribute is a TCI value for BBF TR-069 management traffic passing through
// the VEIP. A TCI, comprising user priority, CFI and VID, is represented by 2 bytes. The value
// 0xFFFF specifies that BBF TR-069 management traffic passes through the VEIP with neither a VLAN
// nor a priority tag. (R, W) (mandatory) (2 bytes)
//
type BbfTr069ManagementServer struct {
ManagedEntityDefinition
Attributes AttributeValueMap
}
func init() {
bbftr069managementserverBME = &ManagedEntityDefinition{
Name: "BbfTr069ManagementServer",
ClassID: 340,
MessageTypes: mapset.NewSetWith(
Get,
Set,
),
AllowedAttributeMask: 0XE000,
AttributeDefinitions: AttributeDefinitionMap{
0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
1: ByteField("AdministrativeState", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1),
2: Uint16Field("AcsNetworkAddress", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 2),
3: Uint16Field("AssociatedTag", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 3),
},
}
}
// NewBbfTr069ManagementServer (class ID 340 creates the basic
// Managed Entity definition that is used to validate an ME of this type that
// is received from the wire, about to be sent on the wire.
func NewBbfTr069ManagementServer(params ...ParamData) (*ManagedEntity, OmciErrors) {
return NewManagedEntity(bbftr069managementserverBME, params...)
}