This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
lpts_pa_oper.go
375 lines (299 loc) · 14.8 KB
/
lpts_pa_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
// This module contains a collection of YANG definitions
// for Cisco IOS-XR lpts-pa package operational data.
//
// This module contains definitions
// for the following management objects:
// lpts-pa: lpts pre-ifib data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package lpts_pa_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 lpts_pa_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-lpts-pa-oper lpts-pa}", reflect.TypeOf(LptsPa{}))
ydk.RegisterEntity("Cisco-IOS-XR-lpts-pa-oper:lpts-pa", reflect.TypeOf(LptsPa{}))
}
// LptsPa
// lpts pre-ifib data
type LptsPa struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// lpts pa bindings.
EntryXr LptsPa_EntryXr
// lpts pa clients.
Entries LptsPa_Entries
}
func (lptsPa *LptsPa) GetEntityData() *types.CommonEntityData {
lptsPa.EntityData.YFilter = lptsPa.YFilter
lptsPa.EntityData.YangName = "lpts-pa"
lptsPa.EntityData.BundleName = "cisco_ios_xr"
lptsPa.EntityData.ParentYangName = "Cisco-IOS-XR-lpts-pa-oper"
lptsPa.EntityData.SegmentPath = "Cisco-IOS-XR-lpts-pa-oper:lpts-pa"
lptsPa.EntityData.AbsolutePath = lptsPa.EntityData.SegmentPath
lptsPa.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
lptsPa.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
lptsPa.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
lptsPa.EntityData.Children = types.NewOrderedMap()
lptsPa.EntityData.Children.Append("entry-xr", types.YChild{"EntryXr", &lptsPa.EntryXr})
lptsPa.EntityData.Children.Append("entries", types.YChild{"Entries", &lptsPa.Entries})
lptsPa.EntityData.Leafs = types.NewOrderedMap()
lptsPa.EntityData.YListKeys = []string {}
return &(lptsPa.EntityData)
}
// LptsPa_EntryXr
// lpts pa bindings
type LptsPa_EntryXr struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Data for single PA Binding. The type is slice of LptsPa_EntryXr_Entry.
Entry []*LptsPa_EntryXr_Entry
}
func (entryXr *LptsPa_EntryXr) GetEntityData() *types.CommonEntityData {
entryXr.EntityData.YFilter = entryXr.YFilter
entryXr.EntityData.YangName = "entry-xr"
entryXr.EntityData.BundleName = "cisco_ios_xr"
entryXr.EntityData.ParentYangName = "lpts-pa"
entryXr.EntityData.SegmentPath = "entry-xr"
entryXr.EntityData.AbsolutePath = "Cisco-IOS-XR-lpts-pa-oper:lpts-pa/" + entryXr.EntityData.SegmentPath
entryXr.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
entryXr.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
entryXr.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
entryXr.EntityData.Children = types.NewOrderedMap()
entryXr.EntityData.Children.Append("entry", types.YChild{"Entry", nil})
for i := range entryXr.Entry {
entryXr.EntityData.Children.Append(types.GetSegmentPath(entryXr.Entry[i]), types.YChild{"Entry", entryXr.Entry[i]})
}
entryXr.EntityData.Leafs = types.NewOrderedMap()
entryXr.EntityData.YListKeys = []string {}
return &(entryXr.EntityData)
}
// LptsPa_EntryXr_Entry
// Data for single PA Binding
type LptsPa_EntryXr_Entry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Single Binding entry. The type is string with
// pattern: [\w\-\.:,_@#%$\+=\|;]+.
Entry interface{}
// Rack/slot/instance. The type is interface{} with range: 0..4294967295.
Location interface{}
// Client ID. The type is interface{} with range: 0..4294967295.
ClientId interface{}
// VR/VRF ID. The type is interface{} with range: 0..4294967295.
Vid interface{}
// Cookie. The type is interface{} with range: 0..4294967295.
Cookie interface{}
// Layer 3 protocol. The type is interface{} with range: 0..4294967295.
L3protocol interface{}
// Layer 4 protocol. The type is interface{} with range: 0..4294967295.
L4protocol interface{}
// Filter operation. The type is interface{} with range: 0..4294967295.
Smask interface{}
// Ifhandle. The type is interface{} with range: 0..4294967295.
Ifs interface{}
// Packet type. The type is interface{} with range: 0..4294967295.
Ptype interface{}
// Local address. The type is string with pattern:
// ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?.
LocalIp interface{}
// Remote address. The type is string with pattern:
// ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?.
RemoteIp interface{}
// Local address length. The type is interface{} with range: 0..255.
LocalLen interface{}
// Remote address length. The type is interface{} with range: 0..255.
RemoteLen interface{}
// Local port. The type is interface{} with range: 0..65535.
LocalPort interface{}
// Remote port. The type is interface{} with range: 0..65535.
RemotePort interface{}
// L5 info. The type is interface{} with range: 0..4294967295.
PacketMisc interface{}
// Scope. The type is interface{} with range: 0..4294967295.
Scope interface{}
// Client flags. The type is interface{} with range: 0..4294967295.
ClientFlags interface{}
// Minimum TTL. The type is interface{} with range: 0..255.
MinTtl interface{}
// lazy binding queue delay. The type is interface{} with range:
// 0..4294967295.
LazyBindqDelay interface{}
// pending transactions queue delay. The type is interface{} with range:
// 0..4294967295.
PtqDelay interface{}
// Creation Time.
Ctime LptsPa_EntryXr_Entry_Ctime
// Update Time.
Utime LptsPa_EntryXr_Entry_Utime
}
func (entry *LptsPa_EntryXr_Entry) GetEntityData() *types.CommonEntityData {
entry.EntityData.YFilter = entry.YFilter
entry.EntityData.YangName = "entry"
entry.EntityData.BundleName = "cisco_ios_xr"
entry.EntityData.ParentYangName = "entry-xr"
entry.EntityData.SegmentPath = "entry" + types.AddKeyToken(entry.Entry, "entry")
entry.EntityData.AbsolutePath = "Cisco-IOS-XR-lpts-pa-oper:lpts-pa/entry-xr/" + entry.EntityData.SegmentPath
entry.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
entry.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
entry.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
entry.EntityData.Children = types.NewOrderedMap()
entry.EntityData.Children.Append("ctime", types.YChild{"Ctime", &entry.Ctime})
entry.EntityData.Children.Append("utime", types.YChild{"Utime", &entry.Utime})
entry.EntityData.Leafs = types.NewOrderedMap()
entry.EntityData.Leafs.Append("entry", types.YLeaf{"Entry", entry.Entry})
entry.EntityData.Leafs.Append("location", types.YLeaf{"Location", entry.Location})
entry.EntityData.Leafs.Append("client-id", types.YLeaf{"ClientId", entry.ClientId})
entry.EntityData.Leafs.Append("vid", types.YLeaf{"Vid", entry.Vid})
entry.EntityData.Leafs.Append("cookie", types.YLeaf{"Cookie", entry.Cookie})
entry.EntityData.Leafs.Append("l3protocol", types.YLeaf{"L3protocol", entry.L3protocol})
entry.EntityData.Leafs.Append("l4protocol", types.YLeaf{"L4protocol", entry.L4protocol})
entry.EntityData.Leafs.Append("smask", types.YLeaf{"Smask", entry.Smask})
entry.EntityData.Leafs.Append("ifs", types.YLeaf{"Ifs", entry.Ifs})
entry.EntityData.Leafs.Append("ptype", types.YLeaf{"Ptype", entry.Ptype})
entry.EntityData.Leafs.Append("local-ip", types.YLeaf{"LocalIp", entry.LocalIp})
entry.EntityData.Leafs.Append("remote-ip", types.YLeaf{"RemoteIp", entry.RemoteIp})
entry.EntityData.Leafs.Append("local-len", types.YLeaf{"LocalLen", entry.LocalLen})
entry.EntityData.Leafs.Append("remote-len", types.YLeaf{"RemoteLen", entry.RemoteLen})
entry.EntityData.Leafs.Append("local-port", types.YLeaf{"LocalPort", entry.LocalPort})
entry.EntityData.Leafs.Append("remote-port", types.YLeaf{"RemotePort", entry.RemotePort})
entry.EntityData.Leafs.Append("packet-misc", types.YLeaf{"PacketMisc", entry.PacketMisc})
entry.EntityData.Leafs.Append("scope", types.YLeaf{"Scope", entry.Scope})
entry.EntityData.Leafs.Append("client-flags", types.YLeaf{"ClientFlags", entry.ClientFlags})
entry.EntityData.Leafs.Append("min-ttl", types.YLeaf{"MinTtl", entry.MinTtl})
entry.EntityData.Leafs.Append("lazy-bindq-delay", types.YLeaf{"LazyBindqDelay", entry.LazyBindqDelay})
entry.EntityData.Leafs.Append("ptq-delay", types.YLeaf{"PtqDelay", entry.PtqDelay})
entry.EntityData.YListKeys = []string {"Entry"}
return &(entry.EntityData)
}
// LptsPa_EntryXr_Entry_Ctime
// Creation Time
type LptsPa_EntryXr_Entry_Ctime struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Time Sec. The type is interface{} with range: 0..4294967295.
TvSec interface{}
// Time Nanosec. The type is interface{} with range: 0..4294967295.
TvNsec interface{}
}
func (ctime *LptsPa_EntryXr_Entry_Ctime) GetEntityData() *types.CommonEntityData {
ctime.EntityData.YFilter = ctime.YFilter
ctime.EntityData.YangName = "ctime"
ctime.EntityData.BundleName = "cisco_ios_xr"
ctime.EntityData.ParentYangName = "entry"
ctime.EntityData.SegmentPath = "ctime"
ctime.EntityData.AbsolutePath = "Cisco-IOS-XR-lpts-pa-oper:lpts-pa/entry-xr/entry/" + ctime.EntityData.SegmentPath
ctime.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ctime.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ctime.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ctime.EntityData.Children = types.NewOrderedMap()
ctime.EntityData.Leafs = types.NewOrderedMap()
ctime.EntityData.Leafs.Append("tv-sec", types.YLeaf{"TvSec", ctime.TvSec})
ctime.EntityData.Leafs.Append("tv-nsec", types.YLeaf{"TvNsec", ctime.TvNsec})
ctime.EntityData.YListKeys = []string {}
return &(ctime.EntityData)
}
// LptsPa_EntryXr_Entry_Utime
// Update Time
type LptsPa_EntryXr_Entry_Utime struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Time Sec. The type is interface{} with range: 0..4294967295.
TvSec interface{}
// Time Nanosec. The type is interface{} with range: 0..4294967295.
TvNsec interface{}
}
func (utime *LptsPa_EntryXr_Entry_Utime) GetEntityData() *types.CommonEntityData {
utime.EntityData.YFilter = utime.YFilter
utime.EntityData.YangName = "utime"
utime.EntityData.BundleName = "cisco_ios_xr"
utime.EntityData.ParentYangName = "entry"
utime.EntityData.SegmentPath = "utime"
utime.EntityData.AbsolutePath = "Cisco-IOS-XR-lpts-pa-oper:lpts-pa/entry-xr/entry/" + utime.EntityData.SegmentPath
utime.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
utime.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
utime.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
utime.EntityData.Children = types.NewOrderedMap()
utime.EntityData.Leafs = types.NewOrderedMap()
utime.EntityData.Leafs.Append("tv-sec", types.YLeaf{"TvSec", utime.TvSec})
utime.EntityData.Leafs.Append("tv-nsec", types.YLeaf{"TvNsec", utime.TvNsec})
utime.EntityData.YListKeys = []string {}
return &(utime.EntityData)
}
// LptsPa_Entries
// lpts pa clients
type LptsPa_Entries struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Data for single PA Client. The type is slice of LptsPa_Entries_Entry.
Entry []*LptsPa_Entries_Entry
}
func (entries *LptsPa_Entries) GetEntityData() *types.CommonEntityData {
entries.EntityData.YFilter = entries.YFilter
entries.EntityData.YangName = "entries"
entries.EntityData.BundleName = "cisco_ios_xr"
entries.EntityData.ParentYangName = "lpts-pa"
entries.EntityData.SegmentPath = "entries"
entries.EntityData.AbsolutePath = "Cisco-IOS-XR-lpts-pa-oper:lpts-pa/" + entries.EntityData.SegmentPath
entries.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
entries.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
entries.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
entries.EntityData.Children = types.NewOrderedMap()
entries.EntityData.Children.Append("entry", types.YChild{"Entry", nil})
for i := range entries.Entry {
entries.EntityData.Children.Append(types.GetSegmentPath(entries.Entry[i]), types.YChild{"Entry", entries.Entry[i]})
}
entries.EntityData.Leafs = types.NewOrderedMap()
entries.EntityData.YListKeys = []string {}
return &(entries.EntityData)
}
// LptsPa_Entries_Entry
// Data for single PA Client
type LptsPa_Entries_Entry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Single Client entry. The type is string with
// pattern: [\w\-\.:,_@#%$\+=\|;]+.
Entry interface{}
// Client flags. The type is interface{} with range: 0..4294967295.
Flags interface{}
// Open flags. The type is interface{} with range: 0..4294967295.
OpenFlags interface{}
// Rack/slot/instance. The type is interface{} with range: 0..4294967295.
Location interface{}
// Client ID. The type is interface{} with range: 0..4294967295.
ClientId interface{}
// Transaction statisitics. The type is string with pattern:
// ([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?.
Times interface{}
}
func (entry *LptsPa_Entries_Entry) GetEntityData() *types.CommonEntityData {
entry.EntityData.YFilter = entry.YFilter
entry.EntityData.YangName = "entry"
entry.EntityData.BundleName = "cisco_ios_xr"
entry.EntityData.ParentYangName = "entries"
entry.EntityData.SegmentPath = "entry" + types.AddKeyToken(entry.Entry, "entry")
entry.EntityData.AbsolutePath = "Cisco-IOS-XR-lpts-pa-oper:lpts-pa/entries/" + entry.EntityData.SegmentPath
entry.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
entry.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
entry.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
entry.EntityData.Children = types.NewOrderedMap()
entry.EntityData.Leafs = types.NewOrderedMap()
entry.EntityData.Leafs.Append("entry", types.YLeaf{"Entry", entry.Entry})
entry.EntityData.Leafs.Append("flags", types.YLeaf{"Flags", entry.Flags})
entry.EntityData.Leafs.Append("open-flags", types.YLeaf{"OpenFlags", entry.OpenFlags})
entry.EntityData.Leafs.Append("location", types.YLeaf{"Location", entry.Location})
entry.EntityData.Leafs.Append("client-id", types.YLeaf{"ClientId", entry.ClientId})
entry.EntityData.Leafs.Append("times", types.YLeaf{"Times", entry.Times})
entry.EntityData.YListKeys = []string {"Entry"}
return &(entry.EntityData)
}