blob: 361293a2fb3f0d14c3dd4557046d529bf6d53379 [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 Dot1XConfigurationProfileClassId ClassID = ClassID(291)
25
26var dot1xconfigurationprofileBME *ManagedEntityDefinition
27
28// Dot1XConfigurationProfile (class ID #291)
29// An instance of this ME represents a set of attributes that control an ONU's 802.1X operation
30// with regard to IEEE 802 services. An instance of this ME is created by the ONU if it is capable
31// of supporting [IEEE 802.1X] authentication of CPE.
32//
33// Relationships
34// One instance of this ME governs the ONU's 802.1X CPE authentication behaviour.
35//
36// Attributes
37// Managed Entity Id
38// Managed entity ID: This attribute provides a unique number for each instance of this ME. There
39// is at most one instance, number 0. (R) (mandatory) (2 bytes)
40//
41// Circuit Id Prefix
42// Circuit ID prefix: This attribute is a pointer to a large string ME whose content appears as the
43// prefix of the NAS port ID in radius access-request messages. The remainder of the NAS port ID
44// field is local information (for example, slot-port, appended by the ONU itself). The default
45// value of this attribute is the null pointer 0. (R, W) (mandatory) (2 bytes)
46//
47// Fallback Policy
48// Fallback policy: When set to 1 (deny), this attribute causes IEEE 802.1X conversations to fail
49// when no external authentication server is accessible, such that no Ethernet service is provided.
50// The default value 0 causes IEEE 802.1X conversations to succeed when no external authentication
51// server is accessible. (R, W) (mandatory) (1 byte)
52//
53// Auth Server 1
54// Auth server 1: This attribute is a pointer to a large string ME that contains the URI of the
55// first choice radius authentication server. The value 0 indicates that no radius authentication
56// server is specified. (R, W) (mandatory) (2 bytes)
57//
58// Shared Secret Auth1
59// Shared secret auth1: This attribute is the shared secret for the first radius authentication
60// server. It is a null-terminated character string. (R, W) (mandatory) (25 bytes)
61//
62// Auth Server 2
63// Auth server 2: (R, W) (optional) (2 bytes)
64//
65// Shared Secret Auth2
66// Shared secret auth2: (R, W) (optional) (25 bytes)
67//
68// Auth Server 3
69// Auth server 3: (R, W) (optional) (2 bytes)
70//
71// Shared Secret Auth3
72// Shared secret auth3: (R, W) (optional) (25 bytes)
73//
74// Olt Proxy Address
75// OLT proxy address: This attribute indicates the IP address of a possible proxy at the OLT for
76// IEEE 802.1X radius messages. The default value 0.0.0.0 indicates that no proxy is required.
77// (R, W) (optional) (4 bytes)
78//
79// Calling Station Id Format
80// Other values are reserved.
81//
82type Dot1XConfigurationProfile struct {
83 ManagedEntityDefinition
84 Attributes AttributeValueMap
85}
86
87func init() {
88 dot1xconfigurationprofileBME = &ManagedEntityDefinition{
89 Name: "Dot1XConfigurationProfile",
90 ClassID: 291,
91 MessageTypes: mapset.NewSetWith(
92 Get,
93 Set,
94 ),
95 AllowedAttributeMask: 0XFFC0,
96 AttributeDefinitions: AttributeDefinitionMap{
97 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read), false, false, false, false, 0),
98 1: Uint16Field("CircuitIdPrefix", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 1),
99 2: ByteField("FallbackPolicy", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 2),
100 3: Uint16Field("AuthServer1", 0, mapset.NewSetWith(Read, Write), false, false, false, false, 3),
101 4: MultiByteField("SharedSecretAuth1", 25, nil, mapset.NewSetWith(Read, Write), false, false, false, false, 4),
102 5: Uint16Field("AuthServer2", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 5),
103 6: MultiByteField("SharedSecretAuth2", 25, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 6),
104 7: Uint16Field("AuthServer3", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 7),
105 8: MultiByteField("SharedSecretAuth3", 25, nil, mapset.NewSetWith(Read, Write), false, false, true, false, 8),
106 9: Uint32Field("OltProxyAddress", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 9),
107 10: Uint16Field("CallingStationIdFormat", 0, mapset.NewSetWith(Read, Write), false, false, true, false, 10),
108 },
109 }
110}
111
112// NewDot1XConfigurationProfile (class ID 291 creates the basic
113// Managed Entity definition that is used to validate an ME of this type that
114// is received from the wire, about to be sent on the wire.
115func NewDot1XConfigurationProfile(params ...ParamData) (*ManagedEntity, OmciErrors) {
116 return NewManagedEntity(dot1xconfigurationprofileBME, params...)
117}