forked from CiscoDevNet/ydk-go
/
pbr_oper.go
573 lines (464 loc) · 26.2 KB
/
pbr_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
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
// This module contains a collection of YANG definitions
// for Cisco IOS-XR pbr package operational data.
//
// This module contains definitions
// for the following management objects:
// pbr: PBR operational data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package pbr_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 pbr_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-pbr-oper pbr}", reflect.TypeOf(Pbr{}))
ydk.RegisterEntity("Cisco-IOS-XR-pbr-oper:pbr", reflect.TypeOf(Pbr{}))
}
// PolicyState represents Different Interface states
type PolicyState string
const (
// active
PolicyState_active PolicyState = "active"
// suspended
PolicyState_suspended PolicyState = "suspended"
)
// Pbr
// PBR operational data
type Pbr struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Node-specific PBR operational data.
Nodes Pbr_Nodes
}
func (pbr *Pbr) GetEntityData() *types.CommonEntityData {
pbr.EntityData.YFilter = pbr.YFilter
pbr.EntityData.YangName = "pbr"
pbr.EntityData.BundleName = "cisco_ios_xr"
pbr.EntityData.ParentYangName = "Cisco-IOS-XR-pbr-oper"
pbr.EntityData.SegmentPath = "Cisco-IOS-XR-pbr-oper:pbr"
pbr.EntityData.AbsolutePath = pbr.EntityData.SegmentPath
pbr.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
pbr.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
pbr.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
pbr.EntityData.Children = types.NewOrderedMap()
pbr.EntityData.Children.Append("nodes", types.YChild{"Nodes", &pbr.Nodes})
pbr.EntityData.Leafs = types.NewOrderedMap()
pbr.EntityData.YListKeys = []string {}
return &(pbr.EntityData)
}
// Pbr_Nodes
// Node-specific PBR operational data
type Pbr_Nodes struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// PBR operational data for a particular node. The type is slice of
// Pbr_Nodes_Node.
Node []*Pbr_Nodes_Node
}
func (nodes *Pbr_Nodes) GetEntityData() *types.CommonEntityData {
nodes.EntityData.YFilter = nodes.YFilter
nodes.EntityData.YangName = "nodes"
nodes.EntityData.BundleName = "cisco_ios_xr"
nodes.EntityData.ParentYangName = "pbr"
nodes.EntityData.SegmentPath = "nodes"
nodes.EntityData.AbsolutePath = "Cisco-IOS-XR-pbr-oper:pbr/" + 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)
}
// Pbr_Nodes_Node
// PBR operational data for a particular node
type Pbr_Nodes_Node struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The node. The type is string with pattern:
// ([a-zA-Z0-9_]*\d+/){1,2}([a-zA-Z0-9_]*\d+).
NodeName interface{}
// Operational data for policymaps.
PolicyMap Pbr_Nodes_Node_PolicyMap
}
func (node *Pbr_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-pbr-oper:pbr/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("policy-map", types.YChild{"PolicyMap", &node.PolicyMap})
node.EntityData.Leafs = types.NewOrderedMap()
node.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", node.NodeName})
node.EntityData.YListKeys = []string {"NodeName"}
return &(node.EntityData)
}
// Pbr_Nodes_Node_PolicyMap
// Operational data for policymaps
type Pbr_Nodes_Node_PolicyMap struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Operational data for all interfaces.
Interfaces Pbr_Nodes_Node_PolicyMap_Interfaces
}
func (policyMap *Pbr_Nodes_Node_PolicyMap) GetEntityData() *types.CommonEntityData {
policyMap.EntityData.YFilter = policyMap.YFilter
policyMap.EntityData.YangName = "policy-map"
policyMap.EntityData.BundleName = "cisco_ios_xr"
policyMap.EntityData.ParentYangName = "node"
policyMap.EntityData.SegmentPath = "policy-map"
policyMap.EntityData.AbsolutePath = "Cisco-IOS-XR-pbr-oper:pbr/nodes/node/" + policyMap.EntityData.SegmentPath
policyMap.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
policyMap.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
policyMap.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
policyMap.EntityData.Children = types.NewOrderedMap()
policyMap.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &policyMap.Interfaces})
policyMap.EntityData.Leafs = types.NewOrderedMap()
policyMap.EntityData.YListKeys = []string {}
return &(policyMap.EntityData)
}
// Pbr_Nodes_Node_PolicyMap_Interfaces
// Operational data for all interfaces
type Pbr_Nodes_Node_PolicyMap_Interfaces struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// PBR action data for a particular interface. The type is slice of
// Pbr_Nodes_Node_PolicyMap_Interfaces_Interface.
Interface []*Pbr_Nodes_Node_PolicyMap_Interfaces_Interface
}
func (interfaces *Pbr_Nodes_Node_PolicyMap_Interfaces) GetEntityData() *types.CommonEntityData {
interfaces.EntityData.YFilter = interfaces.YFilter
interfaces.EntityData.YangName = "interfaces"
interfaces.EntityData.BundleName = "cisco_ios_xr"
interfaces.EntityData.ParentYangName = "policy-map"
interfaces.EntityData.SegmentPath = "interfaces"
interfaces.EntityData.AbsolutePath = "Cisco-IOS-XR-pbr-oper:pbr/nodes/node/policy-map/" + interfaces.EntityData.SegmentPath
interfaces.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
interfaces.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
interfaces.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
interfaces.EntityData.Children = types.NewOrderedMap()
interfaces.EntityData.Children.Append("interface", types.YChild{"Interface", nil})
for i := range interfaces.Interface {
interfaces.EntityData.Children.Append(types.GetSegmentPath(interfaces.Interface[i]), types.YChild{"Interface", interfaces.Interface[i]})
}
interfaces.EntityData.Leafs = types.NewOrderedMap()
interfaces.EntityData.YListKeys = []string {}
return &(interfaces.EntityData)
}
// Pbr_Nodes_Node_PolicyMap_Interfaces_Interface
// PBR action data for a particular interface
type Pbr_Nodes_Node_PolicyMap_Interfaces_Interface struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Name of the interface. The type is string with
// pattern: [a-zA-Z0-9._/-]+.
InterfaceName interface{}
// PBR direction.
Direction Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction
}
func (self *Pbr_Nodes_Node_PolicyMap_Interfaces_Interface) GetEntityData() *types.CommonEntityData {
self.EntityData.YFilter = self.YFilter
self.EntityData.YangName = "interface"
self.EntityData.BundleName = "cisco_ios_xr"
self.EntityData.ParentYangName = "interfaces"
self.EntityData.SegmentPath = "interface" + types.AddKeyToken(self.InterfaceName, "interface-name")
self.EntityData.AbsolutePath = "Cisco-IOS-XR-pbr-oper:pbr/nodes/node/policy-map/interfaces/" + self.EntityData.SegmentPath
self.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
self.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
self.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
self.EntityData.Children = types.NewOrderedMap()
self.EntityData.Children.Append("direction", types.YChild{"Direction", &self.Direction})
self.EntityData.Leafs = types.NewOrderedMap()
self.EntityData.Leafs.Append("interface-name", types.YLeaf{"InterfaceName", self.InterfaceName})
self.EntityData.YListKeys = []string {"InterfaceName"}
return &(self.EntityData)
}
// Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction
// PBR direction
type Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// PBR policy statistics.
Input Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input
}
func (direction *Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction) GetEntityData() *types.CommonEntityData {
direction.EntityData.YFilter = direction.YFilter
direction.EntityData.YangName = "direction"
direction.EntityData.BundleName = "cisco_ios_xr"
direction.EntityData.ParentYangName = "interface"
direction.EntityData.SegmentPath = "direction"
direction.EntityData.AbsolutePath = "Cisco-IOS-XR-pbr-oper:pbr/nodes/node/policy-map/interfaces/interface/" + direction.EntityData.SegmentPath
direction.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
direction.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
direction.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
direction.EntityData.Children = types.NewOrderedMap()
direction.EntityData.Children.Append("input", types.YChild{"Input", &direction.Input})
direction.EntityData.Leafs = types.NewOrderedMap()
direction.EntityData.YListKeys = []string {}
return &(direction.EntityData)
}
// Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input
// PBR policy statistics
type Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// NodeName. The type is string with length: 0..42.
NodeName interface{}
// PolicyName. The type is string with length: 0..65.
PolicyName interface{}
// State. The type is PolicyState.
State interface{}
// StateDescription. The type is string with length: 0..128.
StateDescription interface{}
// Array of classes contained in policy. The type is slice of
// Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat.
ClassStat []*Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat
}
func (input *Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input) GetEntityData() *types.CommonEntityData {
input.EntityData.YFilter = input.YFilter
input.EntityData.YangName = "input"
input.EntityData.BundleName = "cisco_ios_xr"
input.EntityData.ParentYangName = "direction"
input.EntityData.SegmentPath = "input"
input.EntityData.AbsolutePath = "Cisco-IOS-XR-pbr-oper:pbr/nodes/node/policy-map/interfaces/interface/direction/" + input.EntityData.SegmentPath
input.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
input.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
input.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
input.EntityData.Children = types.NewOrderedMap()
input.EntityData.Children.Append("class-stat", types.YChild{"ClassStat", nil})
for i := range input.ClassStat {
types.SetYListKey(input.ClassStat[i], i)
input.EntityData.Children.Append(types.GetSegmentPath(input.ClassStat[i]), types.YChild{"ClassStat", input.ClassStat[i]})
}
input.EntityData.Leafs = types.NewOrderedMap()
input.EntityData.Leafs.Append("node-name", types.YLeaf{"NodeName", input.NodeName})
input.EntityData.Leafs.Append("policy-name", types.YLeaf{"PolicyName", input.PolicyName})
input.EntityData.Leafs.Append("state", types.YLeaf{"State", input.State})
input.EntityData.Leafs.Append("state-description", types.YLeaf{"StateDescription", input.StateDescription})
input.EntityData.YListKeys = []string {}
return &(input.EntityData)
}
// Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat
// Array of classes contained in policy
type Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Bitmask to indicate which counter or counters are undetermined. Counters
// will be marked undetermined when one or more classes share queues with
// class-default because in such cases the value of counters for each class is
// invalid. Based on the flag(s) set, the following counters will be marked
// undetermined. For example, if value of this object returned is 0x00000101,
// counters TransmitPackets/TransmitBytes/TotalTransmitRate and
// DropPackets/DropBytes are undetermined .0x00000001 - Transmit
// (TransmitPackets/TransmitBytes/TotalTransmitRate ), 0x00000002 - Drop
// (TotalDropPackets/TotalDropBytes/TotalDropRate), 0x00000004 - Httpr
// (HttprTransmitPackets/HttprTransmitBytes), 0x00000020 - HttpErich
// (HttpErichTransmitPackets /HttpEnrichTransmitBytes), . The type is
// interface{} with range: 0..18446744073709551615. Units are byte.
CounterValidityBitmask interface{}
// ClassName. The type is string with length: 0..65.
ClassName interface{}
// ClassId. The type is interface{} with range: 0..4294967295.
ClassId interface{}
// general stats.
GeneralStats Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat_GeneralStats
// HTTPR stats.
HttprStats Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat_HttprStats
// HTTP Enrichment stats.
HttpEnrichStats Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat_HttpEnrichStats
}
func (classStat *Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat) GetEntityData() *types.CommonEntityData {
classStat.EntityData.YFilter = classStat.YFilter
classStat.EntityData.YangName = "class-stat"
classStat.EntityData.BundleName = "cisco_ios_xr"
classStat.EntityData.ParentYangName = "input"
classStat.EntityData.SegmentPath = "class-stat" + types.AddNoKeyToken(classStat)
classStat.EntityData.AbsolutePath = "Cisco-IOS-XR-pbr-oper:pbr/nodes/node/policy-map/interfaces/interface/direction/input/" + classStat.EntityData.SegmentPath
classStat.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
classStat.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
classStat.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
classStat.EntityData.Children = types.NewOrderedMap()
classStat.EntityData.Children.Append("general-stats", types.YChild{"GeneralStats", &classStat.GeneralStats})
classStat.EntityData.Children.Append("httpr-stats", types.YChild{"HttprStats", &classStat.HttprStats})
classStat.EntityData.Children.Append("http-enrich-stats", types.YChild{"HttpEnrichStats", &classStat.HttpEnrichStats})
classStat.EntityData.Leafs = types.NewOrderedMap()
classStat.EntityData.Leafs.Append("counter-validity-bitmask", types.YLeaf{"CounterValidityBitmask", classStat.CounterValidityBitmask})
classStat.EntityData.Leafs.Append("class-name", types.YLeaf{"ClassName", classStat.ClassName})
classStat.EntityData.Leafs.Append("class-id", types.YLeaf{"ClassId", classStat.ClassId})
classStat.EntityData.YListKeys = []string {}
return &(classStat.EntityData)
}
// Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat_GeneralStats
// general stats
type Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat_GeneralStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Transmitted packets (packets/bytes). The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
TransmitPackets interface{}
// Transmitted bytes (packets/bytes). The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
TransmitBytes interface{}
// Dropped packets (packets/bytes). The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
TotalDropPackets interface{}
// Dropped bytes (packets/bytes). The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
TotalDropBytes interface{}
// Total drop rate (packets/bytes). The type is interface{} with range:
// 0..4294967295. Units are byte.
TotalDropRate interface{}
// Incoming matched data rate in kbps. The type is interface{} with range:
// 0..4294967295. Units are kbit/s.
MatchDataRate interface{}
// Total transmit rate in kbps. The type is interface{} with range:
// 0..4294967295. Units are kbit/s.
TotalTransmitRate interface{}
// Matched pkts before applying policy. The type is interface{} with range:
// 0..18446744073709551615.
PrePolicyMatchedPackets interface{}
// Matched bytes before applying policy. The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
PrePolicyMatchedBytes interface{}
}
func (generalStats *Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat_GeneralStats) GetEntityData() *types.CommonEntityData {
generalStats.EntityData.YFilter = generalStats.YFilter
generalStats.EntityData.YangName = "general-stats"
generalStats.EntityData.BundleName = "cisco_ios_xr"
generalStats.EntityData.ParentYangName = "class-stat"
generalStats.EntityData.SegmentPath = "general-stats"
generalStats.EntityData.AbsolutePath = "Cisco-IOS-XR-pbr-oper:pbr/nodes/node/policy-map/interfaces/interface/direction/input/class-stat/" + generalStats.EntityData.SegmentPath
generalStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
generalStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
generalStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
generalStats.EntityData.Children = types.NewOrderedMap()
generalStats.EntityData.Leafs = types.NewOrderedMap()
generalStats.EntityData.Leafs.Append("transmit-packets", types.YLeaf{"TransmitPackets", generalStats.TransmitPackets})
generalStats.EntityData.Leafs.Append("transmit-bytes", types.YLeaf{"TransmitBytes", generalStats.TransmitBytes})
generalStats.EntityData.Leafs.Append("total-drop-packets", types.YLeaf{"TotalDropPackets", generalStats.TotalDropPackets})
generalStats.EntityData.Leafs.Append("total-drop-bytes", types.YLeaf{"TotalDropBytes", generalStats.TotalDropBytes})
generalStats.EntityData.Leafs.Append("total-drop-rate", types.YLeaf{"TotalDropRate", generalStats.TotalDropRate})
generalStats.EntityData.Leafs.Append("match-data-rate", types.YLeaf{"MatchDataRate", generalStats.MatchDataRate})
generalStats.EntityData.Leafs.Append("total-transmit-rate", types.YLeaf{"TotalTransmitRate", generalStats.TotalTransmitRate})
generalStats.EntityData.Leafs.Append("pre-policy-matched-packets", types.YLeaf{"PrePolicyMatchedPackets", generalStats.PrePolicyMatchedPackets})
generalStats.EntityData.Leafs.Append("pre-policy-matched-bytes", types.YLeaf{"PrePolicyMatchedBytes", generalStats.PrePolicyMatchedBytes})
generalStats.EntityData.YListKeys = []string {}
return &(generalStats.EntityData)
}
// Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat_HttprStats
// HTTPR stats
type Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat_HttprStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// TotalNum of pkts HTTP request received. The type is interface{} with range:
// 0..18446744073709551615.
RqstRcvdPackets interface{}
// TotalNum of Bytes HTTP request received. The type is interface{} with
// range: 0..18446744073709551615. Units are byte.
RqstRcvdBytes interface{}
// Dropped packets. The type is interface{} with range:
// 0..18446744073709551615.
DropPackets interface{}
// Dropped bytes. The type is interface{} with range: 0..18446744073709551615.
// Units are byte.
DropBytes interface{}
// TotalNum of pkts HTTPR response sent. The type is interface{} with range:
// 0..18446744073709551615.
RespSentPackets interface{}
// TotalNum of Bytes HTTPR response sent. The type is interface{} with range:
// 0..18446744073709551615. Units are byte.
RespSentBytes interface{}
}
func (httprStats *Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat_HttprStats) GetEntityData() *types.CommonEntityData {
httprStats.EntityData.YFilter = httprStats.YFilter
httprStats.EntityData.YangName = "httpr-stats"
httprStats.EntityData.BundleName = "cisco_ios_xr"
httprStats.EntityData.ParentYangName = "class-stat"
httprStats.EntityData.SegmentPath = "httpr-stats"
httprStats.EntityData.AbsolutePath = "Cisco-IOS-XR-pbr-oper:pbr/nodes/node/policy-map/interfaces/interface/direction/input/class-stat/" + httprStats.EntityData.SegmentPath
httprStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
httprStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
httprStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
httprStats.EntityData.Children = types.NewOrderedMap()
httprStats.EntityData.Leafs = types.NewOrderedMap()
httprStats.EntityData.Leafs.Append("rqst-rcvd-packets", types.YLeaf{"RqstRcvdPackets", httprStats.RqstRcvdPackets})
httprStats.EntityData.Leafs.Append("rqst-rcvd-bytes", types.YLeaf{"RqstRcvdBytes", httprStats.RqstRcvdBytes})
httprStats.EntityData.Leafs.Append("drop-packets", types.YLeaf{"DropPackets", httprStats.DropPackets})
httprStats.EntityData.Leafs.Append("drop-bytes", types.YLeaf{"DropBytes", httprStats.DropBytes})
httprStats.EntityData.Leafs.Append("resp-sent-packets", types.YLeaf{"RespSentPackets", httprStats.RespSentPackets})
httprStats.EntityData.Leafs.Append("resp-sent-bytes", types.YLeaf{"RespSentBytes", httprStats.RespSentBytes})
httprStats.EntityData.YListKeys = []string {}
return &(httprStats.EntityData)
}
// Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat_HttpEnrichStats
// HTTP Enrichment stats
type Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat_HttpEnrichStats struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// TotalNum of pkts HTTP request received. The type is interface{} with range:
// 0..18446744073709551615.
RqstRcvdPackets interface{}
// TotalNum of Bytes HTTP request received. The type is interface{} with
// range: 0..18446744073709551615. Units are byte.
RqstRcvdBytes interface{}
// Dropped packets. The type is interface{} with range:
// 0..18446744073709551615.
DropPackets interface{}
// Dropped bytes. The type is interface{} with range: 0..18446744073709551615.
// Units are byte.
DropBytes interface{}
// TotalNum of pkts HTTP Enrichment response sent. The type is interface{}
// with range: 0..18446744073709551615.
RespSentPackets interface{}
// TotalNum of Bytes HTTP Enrichment response sent. The type is interface{}
// with range: 0..18446744073709551615. Units are byte.
RespSentBytes interface{}
// TotalNum of pkts HTTP Enrichment request sent. The type is interface{} with
// range: 0..18446744073709551615.
ReqSentPackets interface{}
// TotalNum of pkts HTTP Enrichment TCP packet sent. The type is interface{}
// with range: 0..18446744073709551615.
TcpSentPackets interface{}
}
func (httpEnrichStats *Pbr_Nodes_Node_PolicyMap_Interfaces_Interface_Direction_Input_ClassStat_HttpEnrichStats) GetEntityData() *types.CommonEntityData {
httpEnrichStats.EntityData.YFilter = httpEnrichStats.YFilter
httpEnrichStats.EntityData.YangName = "http-enrich-stats"
httpEnrichStats.EntityData.BundleName = "cisco_ios_xr"
httpEnrichStats.EntityData.ParentYangName = "class-stat"
httpEnrichStats.EntityData.SegmentPath = "http-enrich-stats"
httpEnrichStats.EntityData.AbsolutePath = "Cisco-IOS-XR-pbr-oper:pbr/nodes/node/policy-map/interfaces/interface/direction/input/class-stat/" + httpEnrichStats.EntityData.SegmentPath
httpEnrichStats.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
httpEnrichStats.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
httpEnrichStats.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
httpEnrichStats.EntityData.Children = types.NewOrderedMap()
httpEnrichStats.EntityData.Leafs = types.NewOrderedMap()
httpEnrichStats.EntityData.Leafs.Append("rqst-rcvd-packets", types.YLeaf{"RqstRcvdPackets", httpEnrichStats.RqstRcvdPackets})
httpEnrichStats.EntityData.Leafs.Append("rqst-rcvd-bytes", types.YLeaf{"RqstRcvdBytes", httpEnrichStats.RqstRcvdBytes})
httpEnrichStats.EntityData.Leafs.Append("drop-packets", types.YLeaf{"DropPackets", httpEnrichStats.DropPackets})
httpEnrichStats.EntityData.Leafs.Append("drop-bytes", types.YLeaf{"DropBytes", httpEnrichStats.DropBytes})
httpEnrichStats.EntityData.Leafs.Append("resp-sent-packets", types.YLeaf{"RespSentPackets", httpEnrichStats.RespSentPackets})
httpEnrichStats.EntityData.Leafs.Append("resp-sent-bytes", types.YLeaf{"RespSentBytes", httpEnrichStats.RespSentBytes})
httpEnrichStats.EntityData.Leafs.Append("req-sent-packets", types.YLeaf{"ReqSentPackets", httpEnrichStats.ReqSentPackets})
httpEnrichStats.EntityData.Leafs.Append("tcp-sent-packets", types.YLeaf{"TcpSentPackets", httpEnrichStats.TcpSentPackets})
httpEnrichStats.EntityData.YListKeys = []string {}
return &(httpEnrichStats.EntityData)
}