-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Cisco-IOS-XE-atm.yang
440 lines (406 loc) · 10.4 KB
/
Cisco-IOS-XE-atm.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
438
439
440
module Cisco-IOS-XE-atm {
namespace "http://cisco.com/ns/yang/Cisco-IOS-XE-atm";
prefix ios-atm;
import ietf-inet-types {
prefix inet;
}
import Cisco-IOS-XE-l2vpn {
prefix ios-l2vpn;
}
import Cisco-IOS-XE-native {
prefix ios;
}
import Cisco-IOS-XE-pppoe {
prefix ios-pppoe;
}
organization
"Cisco Systems, Inc.";
contact
"Cisco Systems, Inc.
Customer Service
Postal: 170 W Tasman Drive
San Jose, CA 95134
Tel: +1 1800 553-NETS
E-mail: cs-yang@cisco.com";
description
"Cisco XE Native ATM Interfaces Yang model.
Copyright (c) 2016, 2018 by Cisco Systems, Inc.
All rights reserved.";
// =========================================================================
// REVISION
// =========================================================================
revision 2019-03-19{
description
"Revision date correction";
revision 2018-05-19{
description
"Enhancement for vbr-rt";
}
revision 2018-04-30 {
description
"Enhancement for oam-retry, service-policy";
}
revision 2018-04-19{
description
"Enhancements done to ATM as part of CSCvh91982 & CSCvj06187";
}
revision 2018-04-17 {
description
"imported pppoe groupings";
}
revision 2018-03-28 {
description
"Enhancements for configuring PVCs under ATM";
}
revision 2017-02-07 {
description
"Initial revision";
}
grouping config-interface-atm-grouping {
container ip {
description
"IP address";
leaf address {
type inet:ipv4-address;
}
leaf split-horizon{
type empty;
}
}
container atm {
description
"ATM";
leaf bandwidth {
description
"ATM bandwith";
type enumeration {
enum "dynamic";
}
}
leaf enable-ilmi-trap {
description
"Enable-ilmi-trap";
type boolean;
}
leaf ilmi-keepalive{
description
"Keepalive polling configuration";
type empty;
}
leaf route-bridged{
description
"Route IP/IPv6 over RFC 1483 Ethernet";
type enumeration{
enum "ip";
enum "ipv6";
}
}
list pvp {
description
"PVP";
key "pvp-number";
leaf pvp-number {
description
"PVP number";
type uint16;
}
leaf l2transport {
type empty;
}
uses ios-l2vpn:config-interface-efp-xconnect-grouping;
}
}
leaf load-interval {
description
"Load interval";
type uint32;
}
leaf cdp {
type enumeration{
enum "enable";
}
}
list cem {
description
"CEM";
key "number";
leaf number {
type uint32;
}
uses ios-l2vpn:config-interface-efp-xconnect-grouping;
}
list pvc {
description
"PVC";
key "local-vpi-vci";
leaf local-vpi-vci {
description
"Vpi and vci";
type string;
}
leaf remote-vpi-vci {
description
"Vpi and vci";
type string;
}
leaf l2transport {
type empty;
}
leaf ubr {
description
"UBR";
type uint32;
}
container ubrplus{
leaf PCR{
type uint32;
}
leaf MCR{
type uint32;
}
}
leaf cbr{
description
"CBR";
type uint32;
}
leaf vbr{
description
"VBR";
type uint32;
}
container vbr-rt{
description
"Enter Variable Bit Rate (pcr)(average)";
leaf PCR{
description
"Peak Cell Rate in Kbps";
type uint32{
range 48..25000;
}
}
leaf ACR{
description
"Average cell rate in kbps";
type uint32;
}
leaf Burst-cell-size{
description
" Burst cell size in number of cells";
type uint32{
range 1..65535;
}
}
}
container vbr-nrt{
leaf PCR{
description
"Peak Cell Rate(PCR) in Kbps";
type uint32{
range 48..1015;
}
}
leaf SCR{
description
"Sustainable Cell Rate(SCR) in Kbps";
type uint32;
}
leaf MCR{
description
"Maximum Burst Size(MBS) in Cells";
type uint32{
range 1..65535;
}
}
}
container oam-pvc{
presence true;
description
"Send oam cells on this pvc";
leaf loopback-frequency{
description "OAM loopback frequency(seconds)";
type uint32{
range 0..600;
}
}
container manage{
presence true;
description
"Enable VC management";
leaf loopback-freq{
description
" OAM loopback frequency(seconds)";
type uint32{
range 0..600;
}
}
}
}
container oam{
description
"Configure oam parameters";
container retry{
presence true;
leaf retry-count-UP{
description
"OAM retry count before declaring a VC is up";
type uint32{
range 1..600;
}
}
leaf retry-count-DOWN{
description
"OAM retry count before declaring a VC is down";
type uint32{
range 1..600;
}
}
leaf retry-poll-freq{
description
"OAM retry polling frequency";
type uint32{
range 1..1000;
}
}
}
}
container encapsulation{
container aal5autoppp{
description
"Cisco AUTO PPP over AAL5 Encapsulation";
leaf Virtual-Template{
description
"Virtual-Template interface number";
type uint32;
}
}
container aal5ciscoppp{
description
"Cisco PPP over AAL5 Encapsulation";
leaf Virtual-Template{
description
"Virtual-Template interface number";
type uint32;
}
}
container aal5mux{
description
"AAL5+MUX Encapsulation";
container ppp{
description
"VC MUX PPP over AAL5 Encapsulation";
leaf Virtual-Template{
description
"Virtual-Template interface number";
type uint32;
}
leaf dialer{
description
"pvc is part of dialer profile";
type empty;
}
}
leaf ip{
description
"IP";
type empty;
}
}
leaf aal5nlpid{
description
" AAL5+NLPID Encapsulation";
type empty;
}
leaf aal5snap{
description
"AAL5+LLC/SNAP Encapsulation";
type empty;
}
}
container bridge-dot1q{
description
"Bridge packets received on vlanid1 and add dot1 header with vlanid2";
leaf encap{
description
"Encapsulation of 802.1q header";
type uint32{
range 1..4094;
}
}
}
container protocol {
description
"Map an upper layer protocol to this connection";
container ppp {
description
"LLC PPP over AAL5 Encapsulation";
leaf Virtual-Template {
description
"Virtual Template interface";
type uint32 {
range 1..4095;
}
}
leaf dialer {
description
"pvc is part of dialer profile";
type empty;
}
}
}
container dialer {
description
"set dialer pool this pvc belongs to";
leaf pool-member {
description
"Specify dialer pool membership";
type uint16 {
range "1..255";
}
}
}
uses ios-l2vpn:config-interface-efp-xconnect-grouping;
uses ios-pppoe:config-pppoe-grouping;
uses ios-pppoe:config-pppoe-client-grouping;
}
uses ios-pppoe:config-pppoe-session-grouping;
uses ios-l2vpn:config-interface-efp-xconnect-grouping;
}
grouping config-acr-grouping {
//unused /native/acr
list acr {
description
"ACR";
key "number";
leaf number {
type uint8;
}
leaf type {
type enumeration {
enum "CH-OC3";
}
}
}
}
/////////////////////////////////////////////////////////
// native / interface
/////////////////////////////////////////////////////////
augment "/ios:native/ios:interface/ios:ATM" {
uses config-interface-atm-grouping;
}
augment "/ios:native/ios:interface/ios:ATM-subinterface/ios:ATM" {
uses config-interface-atm-grouping;
}
augment "/ios:native/ios:interface/ios:ATM-ACR" {
uses config-interface-atm-grouping;
}
augment "/ios:native/ios:interface/ios:ATM-ACRsubinterface/ios:ATM-ACR" {
uses config-interface-atm-grouping;
}
augment "/ios:native/ios:interface/ios:CEM" {
uses config-interface-atm-grouping;
}
augment "/ios:native/ios:interface/ios:CEM-ACR" {
uses config-interface-atm-grouping;
}
}