-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathCisco-IOS-XR-ip-static-cfg.yang
437 lines (383 loc) · 12 KB
/
Cisco-IOS-XR-ip-static-cfg.yang
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
module Cisco-IOS-XR-ip-static-cfg {
/*** NAMESPACE / PREFIX DEFINITION ***/
namespace "http://cisco.com/ns/yang/Cisco-IOS-XR-ip-static-cfg";
prefix "ip-static-cfg";
/*** LINKAGE (IMPORTS / INCLUDES) ***/
import ietf-inet-types { prefix "inet"; }
import Cisco-IOS-XR-types { prefix "xr"; }
/*** META INFORMATION ***/
organization "Cisco Systems, Inc.";
contact
"Cisco Systems, Inc.
Customer Service
Postal: 170 West Tasman Drive
San Jose, CA 95134
Tel: +1 800 553-NETS
E-mail: [email protected]";
description
"This module contains a collection of YANG definitions
for Cisco IOS-XR ip-static package configuration.
This module contains definitions
for the following management objects:
router-static: This class represents router static
configuration
Copyright (c) 2013-2015 by Cisco Systems, Inc.
All rights reserved.";
revision "2015-09-10" {
description
"Descriptions updated.";
}
revision "2015-01-07" {
description
"IOS XR 5.3.1 revision.";
}
grouping VRF-ROUTE {
description "Common node of vrf-prefix, vrf-prefix-topology";
container vrf-route {
xr:xr-xml-map "ip_static_cfg:VRFRoute";
description "A connected or recursive static route";
container segment-route-next-hop-table {
xr:xr-xml-map "ip_static_cfg:SegmentRouteNextHopTable";
description
"The set of nexthop information configured for
this route";
uses VRF-NEXT-HOP;
}
container vrf-next-hop-table {
xr:xr-xml-map "ip_static_cfg:VRFNextHopTable";
description
"The set of nexthop information configured for
this route";
uses VRF-NEXT-HOP;
}
}
}
grouping VRF-NEXT-HOP {
description
"Common node of vrf-next-hop-table,
segment-route-next-hop-table";
grouping VRF-NEXT-HOP-CONTENT {
description "VRF NEXT HOP CONTENT";
leaf bfd-fast-detect {
xr:xr-xml-map "ip_static_cfg:BFDFastDetect";
type boolean;
default "false";
description "If set, bfd is enabled";
}
leaf minimum-interval {
xr:xr-xml-map "ip_static_cfg:MinimumInterval";
type uint32 {
range "3..30000";
}
units "millisecond";
default "100";
description "BFD Hello interval in milliseconds";
}
leaf detect-multiplier {
xr:xr-xml-map "ip_static_cfg:DetectMultiplier";
type uint32 {
range "1..10";
}
default "3";
description "BFD Detect Multiplier";
}
leaf metric {
xr:xr-xml-map "ip_static_cfg:Metric";
type uint32 {
range "1..254";
}
default "1";
description "Distance metric for this path";
}
leaf tag {
xr:xr-xml-map "ip_static_cfg:Tag";
type uint32 {
range "1..4294967295";
}
description "Tag for this path";
}
leaf permanent {
xr:xr-xml-map "ip_static_cfg:Permanent";
type boolean;
default "false";
description "If set, path is permanent";
}
leaf vrf-lable {
xr:xr-xml-map "ip_static_cfg:VRFLable";
type uint32 {
range "0..4294967295";
}
default "0";
description "VRF LABEL";
}
leaf tunnel-id {
xr:xr-xml-map "ip_static_cfg:TunnelID";
type uint32 {
range "0..65535";
}
default "0";
description "Tunnel ID for this path";
}
leaf object-name {
xr:xr-xml-map "ip_static_cfg:ObjectName";
type xr:Cisco-ios-xr-string {
length "0..32";
}
description "Name of the object to track";
}
leaf description {
xr:xr-xml-map "ip_static_cfg:Description";
type string;
description "Short Description of Static Route";
}
leaf load-metric {
xr:xr-xml-map "ip_static_cfg:Load_Metric";
type uint32 {
range "1..16777214";
}
default "1";
description "UCMP load metric";
}
}
list vrf-next-hop-interface-name {
key "interface-name";
description
"A forwarding interface or Segement Routing mpls
path name and/or the address of a nexthop router
for this route (one of these must be specified)";
leaf interface-name {
xr:xr-xml-map "ip_static_cfg:InterfaceName";
type xr:Interface-name;
description "Forwarding interface";
}
uses VRF-NEXT-HOP-CONTENT;
}
list vrf-next-hop-interface-name-next-hop-address {
key "interface-name next-hop-address";
description
"A forwarding interface or Segement Routing mpls
path name and/or the address of a nexthop router
for this route (one of these must be specified)";
leaf interface-name {
xr:xr-xml-map "ip_static_cfg:InterfaceName";
type xr:Interface-name;
description "Forwarding interface";
}
leaf next-hop-address {
xr:xr-xml-map "ip_static_cfg:NextHopAddress";
type inet:ip-address-no-zone;
description "Next hop address";
}
uses VRF-NEXT-HOP-CONTENT;
}
list vrf-next-hop-next-hop-address {
key "next-hop-address";
description
"A forwarding interface or Segement Routing mpls
path name and/or the address of a nexthop router
for this route (one of these must be specified)";
leaf next-hop-address {
xr:xr-xml-map "ip_static_cfg:NextHopAddress";
type inet:ip-address-no-zone;
description "Next hop address";
}
uses VRF-NEXT-HOP-CONTENT;
}
list vrf-next-hop-next-hop-address-explicit-path-name {
key "next-hop-address explicit-path-name";
description
"A forwarding interface or Segement Routing mpls
path name and/or the address of a nexthop router
for this route (one of these must be specified)";
leaf next-hop-address {
xr:xr-xml-map "ip_static_cfg:NextHopAddress";
type inet:ip-address-no-zone;
description "Next hop address";
}
leaf explicit-path-name {
xr:xr-xml-map "ip_static_cfg:ExplicitPathName";
type xr:Cisco-ios-xr-string;
description "Segment Routing mpls path name";
}
uses VRF-NEXT-HOP-CONTENT;
}
list vrf-next-hop-explicit-path-name {
key "explicit-path-name";
description
"A forwarding interface or Segement Routing mpls
path name and/or the address of a nexthop router
for this route (one of these must be specified)";
leaf explicit-path-name {
xr:xr-xml-map "ip_static_cfg:ExplicitPathName";
type xr:Cisco-ios-xr-string;
description "Segment Routing mpls path name";
}
uses VRF-NEXT-HOP-CONTENT;
}
}
grouping TOPOLOGY-TABLE {
description "Common node of vrf-unicast, vrf-multicast";
container topologies {
xr:xr-xml-map "ip_static_cfg:TopologyTable";
description "Topology static configuration container";
list topology {
xr:xr-xml-map "ip_static_cfg:Topology";
key "topology-name";
description "Topology static configuration";
leaf topology-name {
xr:xr-xml-map "ip_static_cfg:TopologyName";
type xr:Cisco-ios-xr-string;
description "Topology name";
}
uses VRF-PREFIX-TOPOLOGY-TABLE;
}
}
}
grouping VRF-PREFIX-TABLE {
description "Common node of vrf-unicast, vrf-multicast";
container vrf-prefixes {
xr:xr-xml-map "ip_static_cfg:VRFPrefixTable";
description "The set of all Static Topologies for this AFI.";
list vrf-prefix {
xr:xr-xml-map "ip_static_cfg:VRFPrefix";
key "prefix prefix-length";
description "A static route";
leaf prefix {
xr:xr-xml-map "ip_static_cfg:Prefix";
type inet:ip-address-no-zone;
description "Destination prefix";
}
leaf prefix-length {
xr:xr-xml-map "ip_static_cfg:PrefixLength";
type uint32 {
range "0..128";
}
description "Destination prefix length";
}
uses VRF-ROUTE;
}
}
}
grouping ADDRESS-FAMILY {
description "Common node of default-vrf, vrf";
container address-family {
xr:xr-xml-map "ip_static_cfg:AddressFamily";
description "Address family configuration";
container vrfipv4 {
xr:xr-xml-map "ip_static_cfg:VRFIPV4";
description "IPv4 static configuration";
uses VRF-UNICAST;
uses VRF-MULTICAST;
}
container vrfipv6 {
xr:xr-xml-map "ip_static_cfg:VRFIPV6";
description "IPv6 static configuration";
uses VRF-UNICAST;
uses VRF-MULTICAST;
}
}
}
grouping VRF-PREFIX-TOPOLOGY-TABLE {
description "Common node of default-topology, topology";
container vrf-prefix-topologies {
xr:xr-xml-map "ip_static_cfg:VRFPrefixTopologyTable";
description "The set of all Static Topologies for this AFI.";
list vrf-prefix-topology {
xr:xr-xml-map "ip_static_cfg:VRFPrefixTopology";
key "prefix prefix-length";
description "A static route";
leaf prefix {
xr:xr-xml-map "ip_static_cfg:Prefix";
type inet:ip-address-no-zone;
description "Destination prefix";
}
leaf prefix-length {
xr:xr-xml-map "ip_static_cfg:PrefixLength";
type uint32 {
range "0..128";
}
description "Destination prefix length";
}
uses VRF-ROUTE;
}
}
}
grouping DEFAULT-TOPOLOGY {
description "Common node of vrf-unicast, vrf-multicast";
container default-topology {
xr:xr-xml-map "ip_static_cfg:DefaultTopology";
description "Default topology configuration";
uses VRF-PREFIX-TOPOLOGY-TABLE;
}
}
grouping VRF-UNICAST {
description "Common node of vrfipv4, vrfipv6";
container vrf-unicast {
xr:xr-xml-map "ip_static_cfg:VRFUnicast";
description "Unicast static configuration";
uses TOPOLOGY-TABLE;
uses VRF-PREFIX-TABLE;
uses DEFAULT-TOPOLOGY;
}
}
grouping VRF-MULTICAST {
description "Common node of vrfipv4, vrfipv6";
container vrf-multicast {
xr:xr-xml-map "ip_static_cfg:VRFMulticast";
description "Multicast static configuration";
uses TOPOLOGY-TABLE;
uses VRF-PREFIX-TABLE;
uses DEFAULT-TOPOLOGY;
}
}
container router-static {
xr:xr-xml-map "ip_static_cfg:RouterStatic";
description "This class represents router static configuration";
container vrfs {
xr:xr-xml-map "ip_static_cfg:VRFTable";
description "VRF static configuration container";
list vrf {
xr:xr-xml-map "ip_static_cfg:VRF";
key "vrf-name";
description "VRF static configuration";
leaf vrf-name {
xr:xr-xml-map "ip_static_cfg:VRFName";
type xr:Cisco-ios-xr-string;
description "VRF name";
}
uses ADDRESS-FAMILY;
}
}
container default-vrf {
xr:xr-xml-map "ip_static_cfg:DefaultVRF";
description "Default VRF configuration";
uses ADDRESS-FAMILY;
}
container maximum-routes {
xr:xr-xml-map "ip_static_cfg:MaximumRoutes";
description
"The maximum number of static routes that can be
configured.";
leaf ipv6-routes {
xr:xr-xml-map "ip_static_cfg:IPV6Routes";
type uint32 {
range "1..140000";
}
default "4000";
description
"The maximum number of static routes that can be
configured for IPv6 AFI.";
}
leaf ipv4-routes {
xr:xr-xml-map "ip_static_cfg:IPV4Routes";
type uint32 {
range "1..140000";
}
default "4000";
description
"The maximum number of static routes that can be
configured for IPv4 AFI.";
}
}
}
}