forked from CiscoDevNet/ydk-go
/
pppoe_ea_oper.go
442 lines (357 loc) · 19.4 KB
/
pppoe_ea_oper.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
// This module contains a collection of YANG definitions
// for Cisco IOS-XR pppoe-ea package operational data.
//
// This module contains definitions
// for the following management objects:
// pppoe-ea: PPPoE Ea data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package pppoe_ea_oper
import (
"fmt"
"github.com/CiscoDevNet/ydk-go/ydk"
"github.com/CiscoDevNet/ydk-go/ydk/types"
"github.com/CiscoDevNet/ydk-go/ydk/types/yfilter"
"github.com/CiscoDevNet/ydk-go/ydk/models/cisco_ios_xr"
"reflect"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package pppoe_ea_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-pppoe-ea-oper pppoe-ea}", reflect.TypeOf(PppoeEa{}))
ydk.RegisterEntity("Cisco-IOS-XR-pppoe-ea-oper:pppoe-ea", reflect.TypeOf(PppoeEa{}))
}
// PppoeEa
// PPPoE Ea data
type PppoeEa struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// PPPOE_EA list of nodes.
Nodes PppoeEa_Nodes
}
func (pppoeEa *PppoeEa) GetEntityData() *types.CommonEntityData {
pppoeEa.EntityData.YFilter = pppoeEa.YFilter
pppoeEa.EntityData.YangName = "pppoe-ea"
pppoeEa.EntityData.BundleName = "cisco_ios_xr"
pppoeEa.EntityData.ParentYangName = "Cisco-IOS-XR-pppoe-ea-oper"
pppoeEa.EntityData.SegmentPath = "Cisco-IOS-XR-pppoe-ea-oper:pppoe-ea"
pppoeEa.EntityData.AbsolutePath = pppoeEa.EntityData.SegmentPath
pppoeEa.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
pppoeEa.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
pppoeEa.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
pppoeEa.EntityData.Children = types.NewOrderedMap()
pppoeEa.EntityData.Children.Append("nodes", types.YChild{"Nodes", &pppoeEa.Nodes})
pppoeEa.EntityData.Leafs = types.NewOrderedMap()
pppoeEa.EntityData.YListKeys = []string {}
return &(pppoeEa.EntityData)
}
// PppoeEa_Nodes
// PPPOE_EA list of nodes
type PppoeEa_Nodes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// PPPOE-EA operational data for a particular node. The type is slice of
// PppoeEa_Nodes_Node.
Node []*PppoeEa_Nodes_Node
}
func (nodes *PppoeEa_Nodes) GetEntityData() *types.CommonEntityData {
nodes.EntityData.YFilter = nodes.YFilter
nodes.EntityData.YangName = "nodes"
nodes.EntityData.BundleName = "cisco_ios_xr"
nodes.EntityData.ParentYangName = "pppoe-ea"
nodes.EntityData.SegmentPath = "nodes"
nodes.EntityData.AbsolutePath = "Cisco-IOS-XR-pppoe-ea-oper:pppoe-ea/" + nodes.EntityData.SegmentPath
nodes.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nodes.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nodes.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nodes.EntityData.Children = types.NewOrderedMap()
nodes.EntityData.Children.Append("node", types.YChild{"Node", nil})
for i := range nodes.Node {
nodes.EntityData.Children.Append(types.GetSegmentPath(nodes.Node[i]), types.YChild{"Node", nodes.Node[i]})
}
nodes.EntityData.Leafs = types.NewOrderedMap()
nodes.EntityData.YListKeys = []string {}
return &(nodes.EntityData)
}
// PppoeEa_Nodes_Node
// PPPOE-EA operational data for a particular node
type PppoeEa_Nodes_Node struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Node name. The type is string with pattern:
// ([a-zA-Z0-9_]*\d+/){1,2}([a-zA-Z0-9_]*\d+).
NodeName interface{}
// PPPoE parent interface info.
ParentInterfaceIds PppoeEa_Nodes_Node_ParentInterfaceIds
// PPPoE interface info.
InterfaceIds PppoeEa_Nodes_Node_InterfaceIds
}
func (node *PppoeEa_Nodes_Node) GetEntityData() *types.CommonEntityData {
node.EntityData.YFilter = node.YFilter
node.EntityData.YangName = "node"
node.EntityData.BundleName = "cisco_ios_xr"
node.EntityData.ParentYangName = "nodes"
node.EntityData.SegmentPath = "node" + types.AddKeyToken(node.NodeName, "node-name")
node.EntityData.AbsolutePath = "Cisco-IOS-XR-pppoe-ea-oper:pppoe-ea/nodes/" + node.EntityData.SegmentPath
node.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
node.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
node.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
node.EntityData.Children = types.NewOrderedMap()
node.EntityData.Children.Append("parent-interface-ids", types.YChild{"ParentInterfaceIds", &node.ParentInterfaceIds})
node.EntityData.Children.Append("interface-ids", types.YChild{"InterfaceIds", &node.InterfaceIds})
node.EntityData.Leafs = types.NewOrderedMap()
node.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", node.NodeName})
node.EntityData.YListKeys = []string {"NodeName"}
return &(node.EntityData)
}
// PppoeEa_Nodes_Node_ParentInterfaceIds
// PPPoE parent interface info
type PppoeEa_Nodes_Node_ParentInterfaceIds struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// PPPoE parent interface info. The type is slice of
// PppoeEa_Nodes_Node_ParentInterfaceIds_ParentInterfaceId.
ParentInterfaceId []*PppoeEa_Nodes_Node_ParentInterfaceIds_ParentInterfaceId
}
func (parentInterfaceIds *PppoeEa_Nodes_Node_ParentInterfaceIds) GetEntityData() *types.CommonEntityData {
parentInterfaceIds.EntityData.YFilter = parentInterfaceIds.YFilter
parentInterfaceIds.EntityData.YangName = "parent-interface-ids"
parentInterfaceIds.EntityData.BundleName = "cisco_ios_xr"
parentInterfaceIds.EntityData.ParentYangName = "node"
parentInterfaceIds.EntityData.SegmentPath = "parent-interface-ids"
parentInterfaceIds.EntityData.AbsolutePath = "Cisco-IOS-XR-pppoe-ea-oper:pppoe-ea/nodes/node/" + parentInterfaceIds.EntityData.SegmentPath
parentInterfaceIds.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
parentInterfaceIds.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
parentInterfaceIds.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
parentInterfaceIds.EntityData.Children = types.NewOrderedMap()
parentInterfaceIds.EntityData.Children.Append("parent-interface-id", types.YChild{"ParentInterfaceId", nil})
for i := range parentInterfaceIds.ParentInterfaceId {
parentInterfaceIds.EntityData.Children.Append(types.GetSegmentPath(parentInterfaceIds.ParentInterfaceId[i]), types.YChild{"ParentInterfaceId", parentInterfaceIds.ParentInterfaceId[i]})
}
parentInterfaceIds.EntityData.Leafs = types.NewOrderedMap()
parentInterfaceIds.EntityData.YListKeys = []string {}
return &(parentInterfaceIds.EntityData)
}
// PppoeEa_Nodes_Node_ParentInterfaceIds_ParentInterfaceId
// PPPoE parent interface info
type PppoeEa_Nodes_Node_ParentInterfaceIds_ParentInterfaceId struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Interface Name. The type is string with pattern:
// [a-zA-Z0-9._/-]+.
ParentInterfaceName interface{}
// Interface. The type is string with pattern: [a-zA-Z0-9._/-]+.
Interface interface{}
// Is in sync. The type is bool.
IsInSync interface{}
// SRG VMac-address.
SrgvMac PppoeEa_Nodes_Node_ParentInterfaceIds_ParentInterfaceId_SrgvMac
}
func (parentInterfaceId *PppoeEa_Nodes_Node_ParentInterfaceIds_ParentInterfaceId) GetEntityData() *types.CommonEntityData {
parentInterfaceId.EntityData.YFilter = parentInterfaceId.YFilter
parentInterfaceId.EntityData.YangName = "parent-interface-id"
parentInterfaceId.EntityData.BundleName = "cisco_ios_xr"
parentInterfaceId.EntityData.ParentYangName = "parent-interface-ids"
parentInterfaceId.EntityData.SegmentPath = "parent-interface-id" + types.AddKeyToken(parentInterfaceId.ParentInterfaceName, "parent-interface-name")
parentInterfaceId.EntityData.AbsolutePath = "Cisco-IOS-XR-pppoe-ea-oper:pppoe-ea/nodes/node/parent-interface-ids/" + parentInterfaceId.EntityData.SegmentPath
parentInterfaceId.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
parentInterfaceId.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
parentInterfaceId.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
parentInterfaceId.EntityData.Children = types.NewOrderedMap()
parentInterfaceId.EntityData.Children.Append("srgv-mac", types.YChild{"SrgvMac", &parentInterfaceId.SrgvMac})
parentInterfaceId.EntityData.Leafs = types.NewOrderedMap()
parentInterfaceId.EntityData.Leafs.Append("parent-interface-name", types.YLeaf{"ParentInterfaceName", parentInterfaceId.ParentInterfaceName})
parentInterfaceId.EntityData.Leafs.Append("interface", types.YLeaf{"Interface", parentInterfaceId.Interface})
parentInterfaceId.EntityData.Leafs.Append("is-in-sync", types.YLeaf{"IsInSync", parentInterfaceId.IsInSync})
parentInterfaceId.EntityData.YListKeys = []string {"ParentInterfaceName"}
return &(parentInterfaceId.EntityData)
}
// PppoeEa_Nodes_Node_ParentInterfaceIds_ParentInterfaceId_SrgvMac
// SRG VMac-address
type PppoeEa_Nodes_Node_ParentInterfaceIds_ParentInterfaceId_SrgvMac struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// macaddr. The type is string with pattern:
// ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?.
Macaddr interface{}
}
func (srgvMac *PppoeEa_Nodes_Node_ParentInterfaceIds_ParentInterfaceId_SrgvMac) GetEntityData() *types.CommonEntityData {
srgvMac.EntityData.YFilter = srgvMac.YFilter
srgvMac.EntityData.YangName = "srgv-mac"
srgvMac.EntityData.BundleName = "cisco_ios_xr"
srgvMac.EntityData.ParentYangName = "parent-interface-id"
srgvMac.EntityData.SegmentPath = "srgv-mac"
srgvMac.EntityData.AbsolutePath = "Cisco-IOS-XR-pppoe-ea-oper:pppoe-ea/nodes/node/parent-interface-ids/parent-interface-id/" + srgvMac.EntityData.SegmentPath
srgvMac.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
srgvMac.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
srgvMac.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
srgvMac.EntityData.Children = types.NewOrderedMap()
srgvMac.EntityData.Leafs = types.NewOrderedMap()
srgvMac.EntityData.Leafs.Append("macaddr", types.YLeaf{"Macaddr", srgvMac.Macaddr})
srgvMac.EntityData.YListKeys = []string {}
return &(srgvMac.EntityData)
}
// PppoeEa_Nodes_Node_InterfaceIds
// PPPoE interface info
type PppoeEa_Nodes_Node_InterfaceIds struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// PPPoE interface info. The type is slice of
// PppoeEa_Nodes_Node_InterfaceIds_InterfaceId.
InterfaceId []*PppoeEa_Nodes_Node_InterfaceIds_InterfaceId
}
func (interfaceIds *PppoeEa_Nodes_Node_InterfaceIds) GetEntityData() *types.CommonEntityData {
interfaceIds.EntityData.YFilter = interfaceIds.YFilter
interfaceIds.EntityData.YangName = "interface-ids"
interfaceIds.EntityData.BundleName = "cisco_ios_xr"
interfaceIds.EntityData.ParentYangName = "node"
interfaceIds.EntityData.SegmentPath = "interface-ids"
interfaceIds.EntityData.AbsolutePath = "Cisco-IOS-XR-pppoe-ea-oper:pppoe-ea/nodes/node/" + interfaceIds.EntityData.SegmentPath
interfaceIds.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
interfaceIds.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
interfaceIds.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
interfaceIds.EntityData.Children = types.NewOrderedMap()
interfaceIds.EntityData.Children.Append("interface-id", types.YChild{"InterfaceId", nil})
for i := range interfaceIds.InterfaceId {
interfaceIds.EntityData.Children.Append(types.GetSegmentPath(interfaceIds.InterfaceId[i]), types.YChild{"InterfaceId", interfaceIds.InterfaceId[i]})
}
interfaceIds.EntityData.Leafs = types.NewOrderedMap()
interfaceIds.EntityData.YListKeys = []string {}
return &(interfaceIds.EntityData)
}
// PppoeEa_Nodes_Node_InterfaceIds_InterfaceId
// PPPoE interface info
type PppoeEa_Nodes_Node_InterfaceIds_InterfaceId struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Interface Name. The type is string with pattern:
// [a-zA-Z0-9._/-]+.
InterfaceName interface{}
// Interface. The type is string with pattern: [a-zA-Z0-9._/-]+.
Interface interface{}
// Session ID. The type is interface{} with range: 0..65535.
SessionId interface{}
// Parent Interface. The type is string with pattern: [a-zA-Z0-9._/-]+.
ParentInterface interface{}
// Is Priority Set. The type is bool.
IsPrioritySet interface{}
// Priority. The type is interface{} with range: 0..255.
Priority interface{}
// Is in sync. The type is bool.
IsInSync interface{}
// Is Platform created. The type is bool.
IsPlatformCreated interface{}
// VLAN Ids. The type is slice of interface{} with range: 0..65535.
Vlanid []interface{}
// Peer Mac-address.
PeerMac PppoeEa_Nodes_Node_InterfaceIds_InterfaceId_PeerMac
// Local Mac-address.
LocalMac PppoeEa_Nodes_Node_InterfaceIds_InterfaceId_LocalMac
// SRG VMac-address.
SrgvMac PppoeEa_Nodes_Node_InterfaceIds_InterfaceId_SrgvMac
}
func (interfaceId *PppoeEa_Nodes_Node_InterfaceIds_InterfaceId) GetEntityData() *types.CommonEntityData {
interfaceId.EntityData.YFilter = interfaceId.YFilter
interfaceId.EntityData.YangName = "interface-id"
interfaceId.EntityData.BundleName = "cisco_ios_xr"
interfaceId.EntityData.ParentYangName = "interface-ids"
interfaceId.EntityData.SegmentPath = "interface-id" + types.AddKeyToken(interfaceId.InterfaceName, "interface-name")
interfaceId.EntityData.AbsolutePath = "Cisco-IOS-XR-pppoe-ea-oper:pppoe-ea/nodes/node/interface-ids/" + interfaceId.EntityData.SegmentPath
interfaceId.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
interfaceId.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
interfaceId.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
interfaceId.EntityData.Children = types.NewOrderedMap()
interfaceId.EntityData.Children.Append("peer-mac", types.YChild{"PeerMac", &interfaceId.PeerMac})
interfaceId.EntityData.Children.Append("local-mac", types.YChild{"LocalMac", &interfaceId.LocalMac})
interfaceId.EntityData.Children.Append("srgv-mac", types.YChild{"SrgvMac", &interfaceId.SrgvMac})
interfaceId.EntityData.Leafs = types.NewOrderedMap()
interfaceId.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", interfaceId.InterfaceName})
interfaceId.EntityData.Leafs.Append("interface", types.YLeaf{"Interface", interfaceId.Interface})
interfaceId.EntityData.Leafs.Append("session-id", types.YLeaf{"SessionId", interfaceId.SessionId})
interfaceId.EntityData.Leafs.Append("parent-interface", types.YLeaf{"ParentInterface", interfaceId.ParentInterface})
interfaceId.EntityData.Leafs.Append("is-priority-set", types.YLeaf{"IsPrioritySet", interfaceId.IsPrioritySet})
interfaceId.EntityData.Leafs.Append("priority", types.YLeaf{"Priority", interfaceId.Priority})
interfaceId.EntityData.Leafs.Append("is-in-sync", types.YLeaf{"IsInSync", interfaceId.IsInSync})
interfaceId.EntityData.Leafs.Append("is-platform-created", types.YLeaf{"IsPlatformCreated", interfaceId.IsPlatformCreated})
interfaceId.EntityData.Leafs.Append("vlanid", types.YLeaf{"Vlanid", interfaceId.Vlanid})
interfaceId.EntityData.YListKeys = []string {"InterfaceName"}
return &(interfaceId.EntityData)
}
// PppoeEa_Nodes_Node_InterfaceIds_InterfaceId_PeerMac
// Peer Mac-address
type PppoeEa_Nodes_Node_InterfaceIds_InterfaceId_PeerMac struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// macaddr. The type is string with pattern:
// ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?.
Macaddr interface{}
}
func (peerMac *PppoeEa_Nodes_Node_InterfaceIds_InterfaceId_PeerMac) GetEntityData() *types.CommonEntityData {
peerMac.EntityData.YFilter = peerMac.YFilter
peerMac.EntityData.YangName = "peer-mac"
peerMac.EntityData.BundleName = "cisco_ios_xr"
peerMac.EntityData.ParentYangName = "interface-id"
peerMac.EntityData.SegmentPath = "peer-mac"
peerMac.EntityData.AbsolutePath = "Cisco-IOS-XR-pppoe-ea-oper:pppoe-ea/nodes/node/interface-ids/interface-id/" + peerMac.EntityData.SegmentPath
peerMac.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
peerMac.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
peerMac.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
peerMac.EntityData.Children = types.NewOrderedMap()
peerMac.EntityData.Leafs = types.NewOrderedMap()
peerMac.EntityData.Leafs.Append("macaddr", types.YLeaf{"Macaddr", peerMac.Macaddr})
peerMac.EntityData.YListKeys = []string {}
return &(peerMac.EntityData)
}
// PppoeEa_Nodes_Node_InterfaceIds_InterfaceId_LocalMac
// Local Mac-address
type PppoeEa_Nodes_Node_InterfaceIds_InterfaceId_LocalMac struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// macaddr. The type is string with pattern:
// ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?.
Macaddr interface{}
}
func (localMac *PppoeEa_Nodes_Node_InterfaceIds_InterfaceId_LocalMac) GetEntityData() *types.CommonEntityData {
localMac.EntityData.YFilter = localMac.YFilter
localMac.EntityData.YangName = "local-mac"
localMac.EntityData.BundleName = "cisco_ios_xr"
localMac.EntityData.ParentYangName = "interface-id"
localMac.EntityData.SegmentPath = "local-mac"
localMac.EntityData.AbsolutePath = "Cisco-IOS-XR-pppoe-ea-oper:pppoe-ea/nodes/node/interface-ids/interface-id/" + localMac.EntityData.SegmentPath
localMac.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
localMac.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
localMac.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
localMac.EntityData.Children = types.NewOrderedMap()
localMac.EntityData.Leafs = types.NewOrderedMap()
localMac.EntityData.Leafs.Append("macaddr", types.YLeaf{"Macaddr", localMac.Macaddr})
localMac.EntityData.YListKeys = []string {}
return &(localMac.EntityData)
}
// PppoeEa_Nodes_Node_InterfaceIds_InterfaceId_SrgvMac
// SRG VMac-address
type PppoeEa_Nodes_Node_InterfaceIds_InterfaceId_SrgvMac struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// macaddr. The type is string with pattern:
// ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?.
Macaddr interface{}
}
func (srgvMac *PppoeEa_Nodes_Node_InterfaceIds_InterfaceId_SrgvMac) GetEntityData() *types.CommonEntityData {
srgvMac.EntityData.YFilter = srgvMac.YFilter
srgvMac.EntityData.YangName = "srgv-mac"
srgvMac.EntityData.BundleName = "cisco_ios_xr"
srgvMac.EntityData.ParentYangName = "interface-id"
srgvMac.EntityData.SegmentPath = "srgv-mac"
srgvMac.EntityData.AbsolutePath = "Cisco-IOS-XR-pppoe-ea-oper:pppoe-ea/nodes/node/interface-ids/interface-id/" + srgvMac.EntityData.SegmentPath
srgvMac.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
srgvMac.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
srgvMac.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
srgvMac.EntityData.Children = types.NewOrderedMap()
srgvMac.EntityData.Leafs = types.NewOrderedMap()
srgvMac.EntityData.Leafs.Append("macaddr", types.YLeaf{"Macaddr", srgvMac.Macaddr})
srgvMac.EntityData.YListKeys = []string {}
return &(srgvMac.EntityData)
}