forked from CiscoDevNet/ydk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
infra_rt_check_cfg.go
348 lines (280 loc) · 12.8 KB
/
infra_rt_check_cfg.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
// This module contains a collection of YANG definitions
// for Cisco IOS-XR infra-rt-check package configuration.
//
// This module contains definitions
// for the following management objects:
// rcc: RCC (Route Consistency Checker) configuration
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package infra_rt_check_cfg
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 infra_rt_check_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-infra-rt-check-cfg rcc}", reflect.TypeOf(Rcc{}))
ydk.RegisterEntity("Cisco-IOS-XR-infra-rt-check-cfg:rcc", reflect.TypeOf(Rcc{}))
}
// Rcc
// RCC (Route Consistency Checker) configuration
type Rcc struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// RCC/LCC configuration for IPv6.
Ipv6 Rcc_Ipv6
// RCC/LCC configuration for IPv4.
Ipv4 Rcc_Ipv4
}
func (rcc *Rcc) GetEntityData() *types.CommonEntityData {
rcc.EntityData.YFilter = rcc.YFilter
rcc.EntityData.YangName = "rcc"
rcc.EntityData.BundleName = "cisco_ios_xr"
rcc.EntityData.ParentYangName = "Cisco-IOS-XR-infra-rt-check-cfg"
rcc.EntityData.SegmentPath = "Cisco-IOS-XR-infra-rt-check-cfg:rcc"
rcc.EntityData.AbsolutePath = rcc.EntityData.SegmentPath
rcc.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
rcc.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
rcc.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
rcc.EntityData.Children = types.NewOrderedMap()
rcc.EntityData.Children.Append("ipv6", types.YChild{"Ipv6", &rcc.Ipv6})
rcc.EntityData.Children.Append("ipv4", types.YChild{"Ipv4", &rcc.Ipv4})
rcc.EntityData.Leafs = types.NewOrderedMap()
rcc.EntityData.YListKeys = []string {}
return &(rcc.EntityData)
}
// Rcc_Ipv6
// RCC/LCC configuration for IPv6
type Rcc_Ipv6 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// IPv4/IPv6 LCC (Label Consistency Checker) configuration.
Lcc Rcc_Ipv6_Lcc
// RCC configuration for unicast.
Unicast Rcc_Ipv6_Unicast
// RCC configuration for multicast.
Multicast Rcc_Ipv6_Multicast
}
func (ipv6 *Rcc_Ipv6) GetEntityData() *types.CommonEntityData {
ipv6.EntityData.YFilter = ipv6.YFilter
ipv6.EntityData.YangName = "ipv6"
ipv6.EntityData.BundleName = "cisco_ios_xr"
ipv6.EntityData.ParentYangName = "rcc"
ipv6.EntityData.SegmentPath = "ipv6"
ipv6.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-rt-check-cfg:rcc/" + ipv6.EntityData.SegmentPath
ipv6.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ipv6.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ipv6.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ipv6.EntityData.Children = types.NewOrderedMap()
ipv6.EntityData.Children.Append("lcc", types.YChild{"Lcc", &ipv6.Lcc})
ipv6.EntityData.Children.Append("unicast", types.YChild{"Unicast", &ipv6.Unicast})
ipv6.EntityData.Children.Append("multicast", types.YChild{"Multicast", &ipv6.Multicast})
ipv6.EntityData.Leafs = types.NewOrderedMap()
ipv6.EntityData.YListKeys = []string {}
return &(ipv6.EntityData)
}
// Rcc_Ipv6_Lcc
// IPv4/IPv6 LCC (Label Consistency Checker)
// configuration
type Rcc_Ipv6_Lcc struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Period of check in milliseconds. The type is interface{} with range:
// 100..600000. Units are millisecond.
Period interface{}
// Enable RCC/LCC. The type is interface{}.
Enable interface{}
}
func (lcc *Rcc_Ipv6_Lcc) GetEntityData() *types.CommonEntityData {
lcc.EntityData.YFilter = lcc.YFilter
lcc.EntityData.YangName = "lcc"
lcc.EntityData.BundleName = "cisco_ios_xr"
lcc.EntityData.ParentYangName = "ipv6"
lcc.EntityData.SegmentPath = "lcc"
lcc.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-rt-check-cfg:rcc/ipv6/" + lcc.EntityData.SegmentPath
lcc.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
lcc.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
lcc.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
lcc.EntityData.Children = types.NewOrderedMap()
lcc.EntityData.Leafs = types.NewOrderedMap()
lcc.EntityData.Leafs.Append("period", types.YLeaf{"Period", lcc.Period})
lcc.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", lcc.Enable})
lcc.EntityData.YListKeys = []string {}
return &(lcc.EntityData)
}
// Rcc_Ipv6_Unicast
// RCC configuration for unicast
type Rcc_Ipv6_Unicast struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Period of check in milliseconds. The type is interface{} with range:
// 100..600000. Units are millisecond.
Period interface{}
// Enable RCC/LCC. The type is interface{}.
Enable interface{}
}
func (unicast *Rcc_Ipv6_Unicast) GetEntityData() *types.CommonEntityData {
unicast.EntityData.YFilter = unicast.YFilter
unicast.EntityData.YangName = "unicast"
unicast.EntityData.BundleName = "cisco_ios_xr"
unicast.EntityData.ParentYangName = "ipv6"
unicast.EntityData.SegmentPath = "unicast"
unicast.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-rt-check-cfg:rcc/ipv6/" + unicast.EntityData.SegmentPath
unicast.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
unicast.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
unicast.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
unicast.EntityData.Children = types.NewOrderedMap()
unicast.EntityData.Leafs = types.NewOrderedMap()
unicast.EntityData.Leafs.Append("period", types.YLeaf{"Period", unicast.Period})
unicast.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", unicast.Enable})
unicast.EntityData.YListKeys = []string {}
return &(unicast.EntityData)
}
// Rcc_Ipv6_Multicast
// RCC configuration for multicast
type Rcc_Ipv6_Multicast struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Period of check in milliseconds. The type is interface{} with range:
// 100..600000. Units are millisecond.
Period interface{}
// Enable RCC/LCC. The type is interface{}.
Enable interface{}
}
func (multicast *Rcc_Ipv6_Multicast) GetEntityData() *types.CommonEntityData {
multicast.EntityData.YFilter = multicast.YFilter
multicast.EntityData.YangName = "multicast"
multicast.EntityData.BundleName = "cisco_ios_xr"
multicast.EntityData.ParentYangName = "ipv6"
multicast.EntityData.SegmentPath = "multicast"
multicast.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-rt-check-cfg:rcc/ipv6/" + multicast.EntityData.SegmentPath
multicast.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
multicast.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
multicast.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
multicast.EntityData.Children = types.NewOrderedMap()
multicast.EntityData.Leafs = types.NewOrderedMap()
multicast.EntityData.Leafs.Append("period", types.YLeaf{"Period", multicast.Period})
multicast.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", multicast.Enable})
multicast.EntityData.YListKeys = []string {}
return &(multicast.EntityData)
}
// Rcc_Ipv4
// RCC/LCC configuration for IPv4
type Rcc_Ipv4 struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// IPv4/IPv6 LCC (Label Consistency Checker) configuration.
Lcc Rcc_Ipv4_Lcc
// RCC configuration for unicast.
Unicast Rcc_Ipv4_Unicast
// RCC configuration for multicast.
Multicast Rcc_Ipv4_Multicast
}
func (ipv4 *Rcc_Ipv4) GetEntityData() *types.CommonEntityData {
ipv4.EntityData.YFilter = ipv4.YFilter
ipv4.EntityData.YangName = "ipv4"
ipv4.EntityData.BundleName = "cisco_ios_xr"
ipv4.EntityData.ParentYangName = "rcc"
ipv4.EntityData.SegmentPath = "ipv4"
ipv4.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-rt-check-cfg:rcc/" + ipv4.EntityData.SegmentPath
ipv4.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ipv4.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ipv4.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ipv4.EntityData.Children = types.NewOrderedMap()
ipv4.EntityData.Children.Append("lcc", types.YChild{"Lcc", &ipv4.Lcc})
ipv4.EntityData.Children.Append("unicast", types.YChild{"Unicast", &ipv4.Unicast})
ipv4.EntityData.Children.Append("multicast", types.YChild{"Multicast", &ipv4.Multicast})
ipv4.EntityData.Leafs = types.NewOrderedMap()
ipv4.EntityData.YListKeys = []string {}
return &(ipv4.EntityData)
}
// Rcc_Ipv4_Lcc
// IPv4/IPv6 LCC (Label Consistency Checker)
// configuration
type Rcc_Ipv4_Lcc struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Period of check in milliseconds. The type is interface{} with range:
// 100..600000. Units are millisecond.
Period interface{}
// Enable RCC/LCC. The type is interface{}.
Enable interface{}
}
func (lcc *Rcc_Ipv4_Lcc) GetEntityData() *types.CommonEntityData {
lcc.EntityData.YFilter = lcc.YFilter
lcc.EntityData.YangName = "lcc"
lcc.EntityData.BundleName = "cisco_ios_xr"
lcc.EntityData.ParentYangName = "ipv4"
lcc.EntityData.SegmentPath = "lcc"
lcc.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-rt-check-cfg:rcc/ipv4/" + lcc.EntityData.SegmentPath
lcc.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
lcc.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
lcc.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
lcc.EntityData.Children = types.NewOrderedMap()
lcc.EntityData.Leafs = types.NewOrderedMap()
lcc.EntityData.Leafs.Append("period", types.YLeaf{"Period", lcc.Period})
lcc.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", lcc.Enable})
lcc.EntityData.YListKeys = []string {}
return &(lcc.EntityData)
}
// Rcc_Ipv4_Unicast
// RCC configuration for unicast
type Rcc_Ipv4_Unicast struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Period of check in milliseconds. The type is interface{} with range:
// 100..600000. Units are millisecond.
Period interface{}
// Enable RCC/LCC. The type is interface{}.
Enable interface{}
}
func (unicast *Rcc_Ipv4_Unicast) GetEntityData() *types.CommonEntityData {
unicast.EntityData.YFilter = unicast.YFilter
unicast.EntityData.YangName = "unicast"
unicast.EntityData.BundleName = "cisco_ios_xr"
unicast.EntityData.ParentYangName = "ipv4"
unicast.EntityData.SegmentPath = "unicast"
unicast.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-rt-check-cfg:rcc/ipv4/" + unicast.EntityData.SegmentPath
unicast.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
unicast.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
unicast.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
unicast.EntityData.Children = types.NewOrderedMap()
unicast.EntityData.Leafs = types.NewOrderedMap()
unicast.EntityData.Leafs.Append("period", types.YLeaf{"Period", unicast.Period})
unicast.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", unicast.Enable})
unicast.EntityData.YListKeys = []string {}
return &(unicast.EntityData)
}
// Rcc_Ipv4_Multicast
// RCC configuration for multicast
type Rcc_Ipv4_Multicast struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Period of check in milliseconds. The type is interface{} with range:
// 100..600000. Units are millisecond.
Period interface{}
// Enable RCC/LCC. The type is interface{}.
Enable interface{}
}
func (multicast *Rcc_Ipv4_Multicast) GetEntityData() *types.CommonEntityData {
multicast.EntityData.YFilter = multicast.YFilter
multicast.EntityData.YangName = "multicast"
multicast.EntityData.BundleName = "cisco_ios_xr"
multicast.EntityData.ParentYangName = "ipv4"
multicast.EntityData.SegmentPath = "multicast"
multicast.EntityData.AbsolutePath = "Cisco-IOS-XR-infra-rt-check-cfg:rcc/ipv4/" + multicast.EntityData.SegmentPath
multicast.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
multicast.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
multicast.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
multicast.EntityData.Children = types.NewOrderedMap()
multicast.EntityData.Leafs = types.NewOrderedMap()
multicast.EntityData.Leafs.Append("period", types.YLeaf{"Period", multicast.Period})
multicast.EntityData.Leafs.Append("enable", types.YLeaf{"Enable", multicast.Enable})
multicast.EntityData.YListKeys = []string {}
return &(multicast.EntityData)
}