blob: d35d4cfe289a26de3266c4cdce6e6cd3cac54719 [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// MulticastGemInterworkingTerminationPointClassID is the 16-bit ID for the OMCI
26// Managed entity Multicast GEM interworking termination point
27const MulticastGemInterworkingTerminationPointClassID ClassID = ClassID(281)
28
29var multicastgeminterworkingterminationpointBME *ManagedEntityDefinition
30
31// MulticastGemInterworkingTerminationPoint (class ID #281)
32// An instance of this ME represents a point in a G-PON ONU where a multicast service interworks
33// with the GEM layer. At this point, a multicast bit stream is reconstructed from GEM packets.
34//
35// Instances of this ME are created and deleted by the OLT.
36//
37// Multicast interworking GEM modes of operation
38//
39// The default multicast operation of the PON is where all the multicast content streams are
40// carried in one PON layer connection (GEM port). This connection is then specified in the first
41// entry of the IPv4 or IPv6 multicast address table, as the case may be. This single entry also
42// specifies an all-inclusive IP multicast destination address (DA) range (e.g., 224.0.0.0 to
43// 239.255.255.255 in the case of IPv4). The ONU then filters the traffic based on either Ethernet
44// MAC addresses or IP addresses. The associated GEM port network CTP ME specifies the GEM port-ID
45// that supports all multicast connections.
46//
47// In the default multicast operation, all multicast content streams are placed in one PON layer
48// connection (GEM port). The OLT sets up a completely conventional model, a pointer from the
49// multicast GEM IW termination to a GEM port network CTP. The OLT configures the GEM port-ID of
50// the GEM port network CTP into the appropriate multicast address table attribute(s), along with
51// the other table fields that specify the range of IP multicast DAs. The ONU accepts the entire
52// multicast stream through the designated GEM port, then filters the traffic based on either the
53// Ethernet MAC address or IP DA.
54//
55// An optional multicast configuration supports separate multicast streams carried over separate
56// PON layer connections, i.e., on separate GEM ports. This permits the ONU to filter multicast
57// streams at the GEM level, which is efficient in hardware, while ignoring other multicast streams
58// that may be of interest to other ONUs on the PON.
59//
60// After configuring the explicit model for the first multicast GEM port, the OLT supports multiple
61// multicast GEM ports by then configuring additional entries into the multicast address table(s),
62// entries with different GEM port-IDs. The OMCI model is defined such that these ports are
63// implicitly grouped together and served by the single explicit GEM port network CTP. No
64// additional GEM network CTPs need be created or linked for the additional GEM ports.
65//
66// Several multicast GEM IW TPs can exist, each linked to separate bridge ports or mappers to serve
67// different communities of interest in a complex ONU.
68//
69// Discovery of multicast support
70//
71// The OLT uses the multicast GEM IW TP entity as the means to discover the ONU's multicast
72// capability. This entity is mandatory if multicast is supported by the ONU. If the OLT attempts
73// to create this entity on an ONU that does not support multicast, the create command fails. The
74// create or set command also fails if the OLT attempts to exploit optional features that the ONU
75// does not support, e.g., in attempting to write a multicast address table with more than a single
76// entry or to create multiple multicast GEM IW TPs.
77//
78// This ME is defined by a similarity to the unicast GEM IW TP, and a number of its attributes are
79// not meaningful in a multicast context. These attributes are set to 0 and not used, as indicated
80// in the following.
81//
82// Relationships
83// An instance of this ME exists for each occurrence of transformation of GEM packets into a
84// multicast data stream.
85//
86// Attributes
87// Managed Entity Id
88// Managed entity ID: This attribute uniquely identifies each instance of this ME. The value 0xFFFF
89// is reserved. (R, setbycreate) (mandatory) (2-bytes)
90//
91// Gem Port Network Ctp Connectivity Pointer
92// GEM port network CTP connectivity pointer: This attribute points to an instance of the GEM port
93// network CTP that is associated with this multicast GEM IW TP. (R,-W, setbycreate) (mandatory)
94// (2-bytes)
95//
96// Interworking Option
97// (R,-W, setbycreate) (mandatory) (1-byte)
98//
99// Service Profile Pointer
100// Service profile pointer: This attribute is set to 0 and not used. For backward compatibility, it
101// may also be set to point to a MAC bridge service profile or IEEE 802.1p mapper service profile.
102// (R,-W, setbycreate) (mandatory) (2-bytes)
103//
104// Not Used 1
105// Not used 1: This attribute is set to 0 and not used. (R,-W, setbycreate) (mandatory) (2-bytes)
106//
107// Pptp Counter
108// PPTP counter: This attribute represents the number of instances of PPTP MEs associated with this
109// instance of the multicast GEM IW TP. This attribute conveys no information that is not available
110// elsewhere; it may be set to 0xFF and not used. (R) (optional) (1-byte)
111//
112// Operational State
113// Operational state: This attribute indicates whether the ME is capable of performing its
114// function. Valid values are enabled (0) and disabled (1). (R) (optional) (1-byte)
115//
116// Gal Profile Pointer
117// GAL profile pointer: This attribute is set to 0 and not used. For backward compatibility, it may
118// also be set to point to a GAL Ethernet profile. (R,-W, setbycreate) (mandatory) (2-bytes)
119//
120// Not Used 2
121// Not used 2: This attribute is set to 0 and not used. (R,-W, setbycreate) (mandatory) (1-byte)
122//
123// Ipv4 Multicast Address Table
124// IPv4 multicast address table: This attribute maps IP multicast addresses to PON layer addresses.
125// Each entry contains the following.
126//
127// Ipv6 Multicast Address Table
128// (R,-W) (optional) (24N bytes, where N is the number of entries in the list.)
129//
130type MulticastGemInterworkingTerminationPoint struct {
131 ManagedEntityDefinition
132 Attributes AttributeValueMap
133}
134
135func init() {
136 multicastgeminterworkingterminationpointBME = &ManagedEntityDefinition{
137 Name: "MulticastGemInterworkingTerminationPoint",
138 ClassID: 281,
139 MessageTypes: mapset.NewSetWith(
140 Create,
141 Delete,
142 Get,
143 GetNext,
144 Set,
145 ),
146 AllowedAttributeMask: 0xffc0,
147 AttributeDefinitions: AttributeDefinitionMap{
148 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
149 1: Uint16Field("GemPortNetworkCtpConnectivityPointer", PointerAttributeType, 0x8000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 1),
150 2: ByteField("InterworkingOption", EnumerationAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
151 3: Uint16Field("ServiceProfilePointer", PointerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 3),
152 4: Uint16Field("NotUsed1", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 4),
153 5: ByteField("PptpCounter", UnsignedIntegerAttributeType, 0x0800, 255, mapset.NewSetWith(Read), false, true, false, 5),
154 6: ByteField("OperationalState", EnumerationAttributeType, 0x0400, 0, mapset.NewSetWith(Read), true, true, false, 6),
155 7: Uint16Field("GalProfilePointer", PointerAttributeType, 0x0200, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 7),
156 8: ByteField("NotUsed2", UnsignedIntegerAttributeType, 0x0100, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 8),
157 9: TableField("Ipv4MulticastAddressTable", TableAttributeType, 0x0080, TableInfo{nil, 12}, mapset.NewSetWith(Read, Write), false, false, false, 9),
158 10: TableField("Ipv6MulticastAddressTable", TableAttributeType, 0x0040, TableInfo{nil, 24}, mapset.NewSetWith(Read, Write), false, true, false, 10),
159 },
160 Access: CreatedByOlt,
161 Support: UnknownSupport,
162 }
163}
164
165// NewMulticastGemInterworkingTerminationPoint (class ID 281) creates the basic
166// Managed Entity definition that is used to validate an ME of this type that
167// is received from or transmitted to the OMCC.
168func NewMulticastGemInterworkingTerminationPoint(params ...ParamData) (*ManagedEntity, OmciErrors) {
169 return NewManagedEntity(*multicastgeminterworkingterminationpointBME, params...)
170}