forked from CiscoDevNet/ydk-go
/
ipv4_ma_cfg.go
253 lines (204 loc) · 10.2 KB
/
ipv4_ma_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
// This module contains a collection of YANG definitions
// for Cisco IOS-XR ipv4-ma package configuration.
//
// This module contains definitions
// for the following management objects:
// ipv4-network-global: IPv4 network global configuration data
// subscriber-pta: subscriber pta
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package ipv4_ma_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 ipv4_ma_cfg"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-ma-cfg ipv4-network-global}", reflect.TypeOf(Ipv4NetworkGlobal{}))
ydk.RegisterEntity("Cisco-IOS-XR-ipv4-ma-cfg:ipv4-network-global", reflect.TypeOf(Ipv4NetworkGlobal{}))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-ma-cfg subscriber-pta}", reflect.TypeOf(SubscriberPta{}))
ydk.RegisterEntity("Cisco-IOS-XR-ipv4-ma-cfg:subscriber-pta", reflect.TypeOf(SubscriberPta{}))
}
// Ipv4Qppb represents Ipv4 qppb
type Ipv4Qppb string
const (
// No QPPB configuration
Ipv4Qppb_none Ipv4Qppb = "none"
// Enable ip-precedence based QPPB
Ipv4Qppb_ip_prec Ipv4Qppb = "ip-prec"
// Enable qos-group based QPPB
Ipv4Qppb_qos_grp Ipv4Qppb = "qos-grp"
// Enable both ip-precedence and qos-group based
// QPPB
Ipv4Qppb_both Ipv4Qppb = "both"
)
// Ipv4NetworkGlobal
// IPv4 network global configuration data
type Ipv4NetworkGlobal struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// The flag for enabling whether to process packets with source routing header
// options. The type is bool. The default value is true.
SourceRoute interface{}
// Percentage of total packets available in the system. The type is
// interface{} with range: 1..50. Units are percentage.
ReassembleMaxPackets interface{}
// Number of seconds a reassembly queue will hold before timeout. The type is
// interface{} with range: 1..120. Units are second.
ReassembleTimeOut interface{}
// Enable IPv4 processing without an explicit address.
Unnumbered Ipv4NetworkGlobal_Unnumbered
// QPPB.
Qppb Ipv4NetworkGlobal_Qppb
}
func (ipv4NetworkGlobal *Ipv4NetworkGlobal) GetEntityData() *types.CommonEntityData {
ipv4NetworkGlobal.EntityData.YFilter = ipv4NetworkGlobal.YFilter
ipv4NetworkGlobal.EntityData.YangName = "ipv4-network-global"
ipv4NetworkGlobal.EntityData.BundleName = "cisco_ios_xr"
ipv4NetworkGlobal.EntityData.ParentYangName = "Cisco-IOS-XR-ipv4-ma-cfg"
ipv4NetworkGlobal.EntityData.SegmentPath = "Cisco-IOS-XR-ipv4-ma-cfg:ipv4-network-global"
ipv4NetworkGlobal.EntityData.AbsolutePath = ipv4NetworkGlobal.EntityData.SegmentPath
ipv4NetworkGlobal.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
ipv4NetworkGlobal.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
ipv4NetworkGlobal.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
ipv4NetworkGlobal.EntityData.Children = types.NewOrderedMap()
ipv4NetworkGlobal.EntityData.Children.Append("unnumbered", types.YChild{"Unnumbered", &ipv4NetworkGlobal.Unnumbered})
ipv4NetworkGlobal.EntityData.Children.Append("qppb", types.YChild{"Qppb", &ipv4NetworkGlobal.Qppb})
ipv4NetworkGlobal.EntityData.Leafs = types.NewOrderedMap()
ipv4NetworkGlobal.EntityData.Leafs.Append("source-route", types.YLeaf{"SourceRoute", ipv4NetworkGlobal.SourceRoute})
ipv4NetworkGlobal.EntityData.Leafs.Append("reassemble-max-packets", types.YLeaf{"ReassembleMaxPackets", ipv4NetworkGlobal.ReassembleMaxPackets})
ipv4NetworkGlobal.EntityData.Leafs.Append("reassemble-time-out", types.YLeaf{"ReassembleTimeOut", ipv4NetworkGlobal.ReassembleTimeOut})
ipv4NetworkGlobal.EntityData.YListKeys = []string {}
return &(ipv4NetworkGlobal.EntityData)
}
// Ipv4NetworkGlobal_Unnumbered
// Enable IPv4 processing without an explicit
// address
type Ipv4NetworkGlobal_Unnumbered struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Configure MPLS routing protocol parameters.
Mpls Ipv4NetworkGlobal_Unnumbered_Mpls
}
func (unnumbered *Ipv4NetworkGlobal_Unnumbered) GetEntityData() *types.CommonEntityData {
unnumbered.EntityData.YFilter = unnumbered.YFilter
unnumbered.EntityData.YangName = "unnumbered"
unnumbered.EntityData.BundleName = "cisco_ios_xr"
unnumbered.EntityData.ParentYangName = "ipv4-network-global"
unnumbered.EntityData.SegmentPath = "unnumbered"
unnumbered.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-ma-cfg:ipv4-network-global/" + unnumbered.EntityData.SegmentPath
unnumbered.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
unnumbered.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
unnumbered.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
unnumbered.EntityData.Children = types.NewOrderedMap()
unnumbered.EntityData.Children.Append("mpls", types.YChild{"Mpls", &unnumbered.Mpls})
unnumbered.EntityData.Leafs = types.NewOrderedMap()
unnumbered.EntityData.YListKeys = []string {}
return &(unnumbered.EntityData)
}
// Ipv4NetworkGlobal_Unnumbered_Mpls
// Configure MPLS routing protocol parameters
type Ipv4NetworkGlobal_Unnumbered_Mpls struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// IPv4 commands for MPLS Traffic Engineering.
Te Ipv4NetworkGlobal_Unnumbered_Mpls_Te
}
func (mpls *Ipv4NetworkGlobal_Unnumbered_Mpls) GetEntityData() *types.CommonEntityData {
mpls.EntityData.YFilter = mpls.YFilter
mpls.EntityData.YangName = "mpls"
mpls.EntityData.BundleName = "cisco_ios_xr"
mpls.EntityData.ParentYangName = "unnumbered"
mpls.EntityData.SegmentPath = "mpls"
mpls.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-ma-cfg:ipv4-network-global/unnumbered/" + mpls.EntityData.SegmentPath
mpls.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
mpls.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
mpls.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
mpls.EntityData.Children = types.NewOrderedMap()
mpls.EntityData.Children.Append("te", types.YChild{"Te", &mpls.Te})
mpls.EntityData.Leafs = types.NewOrderedMap()
mpls.EntityData.YListKeys = []string {}
return &(mpls.EntityData)
}
// Ipv4NetworkGlobal_Unnumbered_Mpls_Te
// IPv4 commands for MPLS Traffic Engineering
type Ipv4NetworkGlobal_Unnumbered_Mpls_Te struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Enable IP processing without an explicit address on MPLS Traffic-Eng. The
// type is string.
Interface interface{}
}
func (te *Ipv4NetworkGlobal_Unnumbered_Mpls_Te) GetEntityData() *types.CommonEntityData {
te.EntityData.YFilter = te.YFilter
te.EntityData.YangName = "te"
te.EntityData.BundleName = "cisco_ios_xr"
te.EntityData.ParentYangName = "mpls"
te.EntityData.SegmentPath = "te"
te.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-ma-cfg:ipv4-network-global/unnumbered/mpls/" + te.EntityData.SegmentPath
te.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
te.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
te.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
te.EntityData.Children = types.NewOrderedMap()
te.EntityData.Leafs = types.NewOrderedMap()
te.EntityData.Leafs.Append("interface", types.YLeaf{"Interface", te.Interface})
te.EntityData.YListKeys = []string {}
return &(te.EntityData)
}
// Ipv4NetworkGlobal_Qppb
// QPPB
type Ipv4NetworkGlobal_Qppb struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// QPPB configuration on source. The type is Ipv4Qppb.
Source interface{}
// QPPB configuration on destination. The type is Ipv4Qppb.
Destination interface{}
}
func (qppb *Ipv4NetworkGlobal_Qppb) GetEntityData() *types.CommonEntityData {
qppb.EntityData.YFilter = qppb.YFilter
qppb.EntityData.YangName = "qppb"
qppb.EntityData.BundleName = "cisco_ios_xr"
qppb.EntityData.ParentYangName = "ipv4-network-global"
qppb.EntityData.SegmentPath = "qppb"
qppb.EntityData.AbsolutePath = "Cisco-IOS-XR-ipv4-ma-cfg:ipv4-network-global/" + qppb.EntityData.SegmentPath
qppb.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
qppb.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
qppb.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
qppb.EntityData.Children = types.NewOrderedMap()
qppb.EntityData.Leafs = types.NewOrderedMap()
qppb.EntityData.Leafs.Append("source", types.YLeaf{"Source", qppb.Source})
qppb.EntityData.Leafs.Append("destination", types.YLeaf{"Destination", qppb.Destination})
qppb.EntityData.YListKeys = []string {}
return &(qppb.EntityData)
}
// SubscriberPta
// subscriber pta
type SubscriberPta struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// TCP MSS Adjust (bytes). The type is interface{} with range: 1280..1536.
// Units are byte.
TcpMssAdjust interface{}
}
func (subscriberPta *SubscriberPta) GetEntityData() *types.CommonEntityData {
subscriberPta.EntityData.YFilter = subscriberPta.YFilter
subscriberPta.EntityData.YangName = "subscriber-pta"
subscriberPta.EntityData.BundleName = "cisco_ios_xr"
subscriberPta.EntityData.ParentYangName = "Cisco-IOS-XR-ipv4-ma-cfg"
subscriberPta.EntityData.SegmentPath = "Cisco-IOS-XR-ipv4-ma-cfg:subscriber-pta"
subscriberPta.EntityData.AbsolutePath = subscriberPta.EntityData.SegmentPath
subscriberPta.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
subscriberPta.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
subscriberPta.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
subscriberPta.EntityData.Children = types.NewOrderedMap()
subscriberPta.EntityData.Leafs = types.NewOrderedMap()
subscriberPta.EntityData.Leafs.Append("tcp-mss-adjust", types.YLeaf{"TcpMssAdjust", subscriberPta.TcpMssAdjust})
subscriberPta.EntityData.YListKeys = []string {}
return &(subscriberPta.EntityData)
}