-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Cisco-IOS-XE-native.yang
4432 lines (4248 loc) · 121 KB
/
Cisco-IOS-XE-native.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
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
module Cisco-IOS-XE-native {
namespace "http://cisco.com/ns/yang/Cisco-IOS-XE-native";
prefix ios;
import ietf-inet-types {
prefix inet;
}
import Cisco-IOS-XE-types {
prefix ios-types;
}
import Cisco-IOS-XE-features {
prefix ios-features;
}
import Cisco-IOS-XE-interface-common {
prefix ios-ifc;
}
include Cisco-IOS-XE-parser;
include Cisco-IOS-XE-license;
include Cisco-IOS-XE-line;
include Cisco-IOS-XE-logging;
include Cisco-IOS-XE-ip;
include Cisco-IOS-XE-ipv6;
include Cisco-IOS-XE-interfaces;
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
"NED YANG module for IOS-XE
Copyright (c) 2016-2017 by Cisco Systems, Inc.
All rights reserved.";
// =========================================================================
// REVISION
// =========================================================================
revision 2017-10-25 {
description
"Add diff-dependency on VirtualPortGroup for virtual-service";
}
revision 2017-08-30 {
description
"Add 'umbrella' to parameter-map enum";
}
revision 2017-08-14 {
description
"Model for monitor event-trace";
}
revision 2017-07-13 {
description
"Support for AVC";
}
revision 2017-07-08 {
description
"Model for identity policy additional support";
}
revision 2017-06-26 {
description
"Model for identity policy";
}
revision 2017-06-23 {
description
"add options under monitor session type erspan-src";
}
revision 2017-06-21 {
description
"add some model in domain";
}
revision 2017-06-15 {
description
"Removed native/access-list";
}
revision 2017-06-01 {
description
"add default crypto ikev2 policy and proposal";
}
revision 2017-03-24 {
description
"Removed banner";
}
revision 2017-02-07 {
description
"Initial revision";
}
/////////////////////////////////////////////////////////
// TYPEDEF
typedef monitor-event-type {
type enumeration {
enum "error";
enum "detail";
enum "major";
// enum "bfd";
// enum "event";
// enum "exact-match";
// enum "ffd";
// enum "fsm";
// enum "ha";
// enum "ldp";
// enum "pwoam";
// enum "rf";
// enum "status";
// enum "switching-point";
// enum "vccv";
}
}
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
// Grouping
/////////////////////////////////////////////////////////
container native {
/////////////////////////////////////////////////////////
// native / default
/////////////////////////////////////////////////////////
container default {
description
"Set a command to its defaults";
container crypto {
description
"Encryption module";
container ikev2 {
description
"Configure IKEv2 Options";
leaf proposal {
description
"Define IKEV2 proposals";
type empty;
}
leaf policy {
description
"Define IKEV2 policies";
type empty;
}
}
}
}
/////////////////////////////////////////////////////////
// native / bfd
/////////////////////////////////////////////////////////
container bfd {
description
"BFD configuration commands";
// @mount Cisco-IOS-XE-bfd
}
/////////////////////////////////////////////////////////
// native / version
/////////////////////////////////////////////////////////
leaf version {
description "Version";
type string {
}
}
/////////////////////////////////////////////////////////
// native / stackwise-virtual
/////////////////////////////////////////////////////////
container stackwise-virtual{
description
"Enter stackwise-virtual configuration mode";
presence true;
// @mount Cisco-IOS-XE-stackwise-virtual.yang
}
/////////////////////////////////////////////////////////
// native / boot
/////////////////////////////////////////////////////////
leaf boot-start-marker {
type empty;
}
container boot {
description
"Modify boot system parameters";
container system {
description
"System Image";
leaf tftp-path {
description
"Example: 192.x.x.x/<path to image>";
type string;
}
//@mount Cisco-IOS-XE-switch.yang
//container switch
leaf tftp {
description
"Example 192.168.x.x/<image-path>";
type string;
}
container bootfile {
description
"WORD - boot filename";
list filename-list {
key "filename";
leaf filename {
description
"WORD - TFTP filename or URL";
type string;
}
}
}
container flash {
description
"flash - Boot from flash memory";
list flash-list {
key "flash-leaf";
leaf flash-leaf {
type string;
}
}
}
}
}
//@mount Cisco-IOS-XE-switch.yang
//container enable-break and container manual
leaf boot-end-marker {
type empty;
}
/////////////////////////////////////////////////////////
// native / captive-portal-bypass
/////////////////////////////////////////////////////////
leaf captive-portal-bypass {
description
"Enable Captive portal bypass for apple devices";
type empty;
}
/////////////////////////////////////////////////////////
// native / memory
/////////////////////////////////////////////////////////
container memory {
description "Configure memory management";
container statistics {
description "Configure statistics history table";
container history {
description "Configure statistics history table";
leaf table {
description "Configure statistics history table";
type uint8 {
range "12..72";
}
}
}
}
container chunk {
description "chunk related configuration";
container siblings {
description "chunk siblings related configuration";
leaf threshold {
description "Default is platform dependent";
type uint32 {
range "2..4294967295";
}
}
}
}
container free {
description "free memory low water mark";
container low-watermark {
description "low water mark for notifications";
leaf IO {
description "low water mark of memory in KB";
type uint32 {
range "1..3994575";
}
}
leaf processor {
description "low water mark of memory in KB";
type uint32 {
range "1..3994575";
}
}
}
}
leaf lite {
description "Enable/disable memory lite";
type empty;
}
container reserve {
description "reserve memory";
container critical {
description "Reserve Critical Memory";
presence true;
leaf memory-range {
description "total amount of memory to be reserved in kilobytes";
type uint32 {
range "1..4294967295";
}
}
}
}
container sanity {
description "Enable memory sanity";
presence true;
leaf all {
description "Enable memory sanity all";
type empty;
}
leaf buffer {
description "Enable memory sanity buffer";
type empty;
}
leaf queue {
type empty;
}
}
}
/////////////////////////////////////////////////////////
// native / location
/////////////////////////////////////////////////////////
container location {
description
"Global location configuration commands";
container civic-location {
description
"Civic location information";
list identifier {
description
"Set the identifier";
key identifier;
leaf identifier{
type string;
}
leaf building {
description
"Building information";
type string;
}
leaf floor {
description
"Floor number";
type string;
}
leaf landmark {
description
"Landmark";
type string;
}
leaf name {
description
"Resident name";
type string;
}
leaf number {
description
"Street number";
type string;
}
}
}
}
/////////////////////////////////////////////////////////
// native / call-home
/////////////////////////////////////////////////////////
container call-home {
description
"Enter call-home configuration mode";
presence true;
// @mount Cisco-IOS-XE-call-home
}
/////////////////////////////////////////////////////////
// native / hw-module
/////////////////////////////////////////////////////////
container hw-module {
description
"Control of individual components in the system";
container uplink {
description
"Uplink control";
leaf select {
description
"Select uplink interface";
type string;
}
leaf mode {
description
"Uplink mode";
type enumeration {
enum "shared-backplane";
}
}
}
leaf sm {
type uint8;
}
leaf pvdm {
type string;
}
}
/////////////////////////////////////////////////////////
// native / cisp
/////////////////////////////////////////////////////////
container cisp {
description "Set CISP parameters";
leaf enable {
description "Enable CISP";
type empty;
}
}
/////////////////////////////////////////////////////////
// native / module
/////////////////////////////////////////////////////////
container module {
description
"Module";
// @module Cisco-IOS-XE-switch
}
/////////////////////////////////////////////////////////
// native / domain
/////////////////////////////////////////////////////////
list domain {
description
"Domain Configuration Commands";
key "name";
leaf name {
type string;
}
list vrf {
description
"Specify vrf for domain";
key "name";
leaf name {
type string;
}
container border {
description
"Enter border router configuration submode";
container advanced {
description
"Enter border router advanced configuration submode";
leaf monitor-cache-percent {
description
"cache usage (%), border instance will AUTOMATICALLY go through" +
" SHUT/NO SHUT any ACTIVE traffic on this border will be affected";
type uint8 {
range "1..100";
}
}
}
container source-interface {
description
"Source Interface for border";
leaf Loopback {
description
"Loopback interface";
type uint32;
}
}
leaf master {
description
"Specify IP address of Domain master controller";
type union {
type inet:ipv4-address;
type enumeration {
enum "local";
}
}
}
container password {
description
"MD5 password to be used with MC";
leaf encryption {
type enumeration {
enum "0";
enum "7";
}
}
leaf clear-key {
type string;
}
}
}
container master {
description
"Enter master controller configuration submode";
choice master-type {
case branch {
leaf branch {
description
"Set master type as branch hub";
type empty;
}
}
case hub {
leaf hub {
description
"Set master type as hub";
type empty;
}
}
case transit {
leaf transit {
description
"Set master type as transit";
type uint8 {
range "1..64";
}
}
}
}
container advanced {
description
"Advanced configuration submode";
leaf byte-loss-threshold {
description
"Specify minimum byte loss calculation threshold";
type uint16 {
range "0..5600";
}
}
leaf channel-unreachable-timer {
description
"Unreach interval detection";
type uint16 {
range "1..65535";
}
}
leaf load-sharing {
description
"Enable load-sharing";
type empty;
}
leaf minimum-mask-length {
description
"Specify minimum mask length";
type uint8 {
range "1..32";
}
}
leaf mitigation-mode {
description
"Enable brownout detection in domain";
type enumeration {
enum "aggressive";
}
}
leaf packet-loss-threshold {
description
"Specify minimum packet loss calculation threshold";
type uint8 {
range "1..100";
}
}
container smart-probes {
description
"Smart probes configuration";
leaf destination-port {
description
"Specify smart probes destination port number";
type uint16 {
range "1..65535";
}
}
leaf source-port {
description
"Specify smart probes source port number";
type uint16 {
range "1..65535";
}
}
}
container syslog {
description
"Specify syslog minimim time between tca";
leaf tca-time-min {
description
"Specify time between syslog tcas in seconds";
type uint32 {
range "30..36000";
}
}
}
container tcp {
description
"Specify tcp port numbers for mc-br communication";
leaf mc-port {
description
"Specify tcp MC self port for mc-br communication";
type uint16 {
range "1..65535";
}
}
}
leaf threshold-variance {
description
"Policy decision Threshold variance";
type uint8 {
range "0..100";
}
}
container traffic-class-ageout-timer {
description
"Traffic-class DB age timer";
leaf interval {
description
"Specify new timer interval value mins/hours";
type uint16 {
range "5..65535";
}
}
leaf interval-unit {
type enumeration {
enum "hours";
enum "minutes";
}
}
}
leaf transit-site-affinity {
description
"Enable Transit Site Affinity";
type empty;
}
}
container collector {
description
"NMS/v9 collector configuration";
leaf ip {
type inet:ipv4-address;
}
leaf port {
description
"Specify collector port number";
type uint16;
}
}
container enterprise-prefix {
description
"Enterprise prefix configuration";
leaf prefix-list {
description
"Specify prefix-list with static site targets";
type string;
}
}
container load-balance {
description
"load balance non-policy traffic";
presence "true";
container advanced {
description
"Load balancing configuration mode";
uses domain-vrf-master-hub-class-grouping;
}
}
container password {
description
"MD5 password to be used with BRs";
leaf encryption {
type enumeration {
enum "0";
enum "7";
}
}
leaf clear-key {
type string;
}
}
container site-prefixes {
description
"site-prefixes configuration";
leaf prefix-list {
description
"Specify prefix-list with static site targets";
type string;
}
}
container source-interface {
description
"Source Interface for master controller";
leaf Loopback {
description
"Loopback interface";
type uint32;
}
}
list class {
description
"Create domain class and enter domain class command mode";
key "name sequence";
leaf name {
type string;
}
leaf sequence {
description
"Set the Sequence for the class";
type uint16;
}
uses domain-vrf-master-hub-class-grouping;
}
leaf hub-ip {
type inet:ipv4-address;
}
}
}
}
grouping domain-vrf-master-hub-class-grouping {
container match {
description
"Specify the applications the policy applies to";
list dscp {
description
"specify DSCP";
key "value";
leaf value {
type ios-types:dscp-type;
}
leaf policy {
description
"Specify the policy (user defined/predefined)";
type enumeration {
enum "best-effort";
enum "bulk-data";
enum "custom";
enum "low-latency-data";
enum "real-time-video";
enum "scavenger";
enum "voice";
}
}
}
}
container path-preference {
description
"Specify the preferred provider";
leaf primary {
description
"Primary service provider";
type string;
}
leaf primary2 {
description
"Primary service provider";
type string;
}
leaf primary3 {
description
"Primary service provider";
type string;
}
leaf fallback {
description
"Specify the fallback provider";
type union {
type enumeration {
enum "routing";
enum "blackhole";
}
type string;
}
}
leaf fallback2 {
description
"Fallback service provider";
type string;
}
leaf fallback3 {
description
"Fallback service provider";
type string;
}
}
leaf path-last-resort {
description
"Specify path of last resort provider";
type string;
}
}
grouping identity-policy-grouping {
leaf absolute-timer {
description
"Absolute timeout value in seconds";
type uint16 {
range "1..65535";
}
}
leaf access-group {
description
"Access list to be applied";
type string;
}
leaf description {
description
"Enter a description";
type string;
}
leaf inactivity-timer {
description
"Inactivity timeout value in seconds";
type uint16 {
range "0..65535";
}
}
leaf interface-template {
description
"Interface template to be applied";
type string;
}
container linksec {
description
"Configure link security parameters";
leaf policy {
description
"Set the link security policy";
type enumeration {
enum "must-not-secure";
enum "must-secure";
enum "should-secure";
}
}
}
container redirect {
description
"Redirect clients to a particular location";
leaf url {
description
"URL where clients should be redirected";
type string;
}
}
container service-policy {
description
"Configure service policy";
list qos {
description
"Configure qos policies for client";
key "direction";
leaf direction {
type enumeration {
enum "input";
enum "output";
}
}
leaf name {
type string;
}
}
}
leaf sgt {
description
"SGT tag";
type uint16 {
range "2..65519";
}
}
leaf tag {
description
"tag name";
type string;
}
container tunnel {
description
"tunnel for wired client access";
container type {
description
"tunnel type";
container capwap {
description
"capwap tunnel type";
leaf name {
description
"tunnel profile name";
type string;
}
}
}
}
leaf vlan {
description
"Enter a VlanId";
type uint16 {
range "1..4094";
}
}
container voice {
description
"Voice feature";
leaf vlan {
description
"Critical voice vlan";
type empty;
}
}
}
/////////////////////////////////////////////////////////
// native / parser
/////////////////////////////////////////////////////////
uses config-parser-grouping;
/////////////////////////////////////////////////////////
// native / service
/////////////////////////////////////////////////////////
container service {
description
"Modify use of network based services";
// service internal
leaf internal {
// Note: allow additional control of the LTE modem
description
"Enable/Disable Internal commands";
type empty;
}
// service pad
container pad-conf {
leaf pad {
description
"Enable PAD commands";
type boolean;
}
}
container pad {
description
"Enable PAD commands";
presence "true";
leaf cmns {
description
"Enable PAD over CMNS connections";
type empty;
}
leaf from-xot {
description
"Accept XOT to PAD connections";
type empty;
}
leaf to-xot {
description
"Allow outgoing PAD over XOT connections";
type empty;
}
}
// service password-encryption
leaf password-encryption {
description
"Encrypt system passwords";
type empty;
}
// service password-recovery
leaf password-recovery {
description "Enable password recovery";
type boolean;
}
// service timestamps
container timestamps {
description
"Timestamp debug/log messages";
presence "true";
// service timestamps debug
container debug {
description
"Timestamp debug messages";
// service timestamps debug datetime
container datetime {
description
"Timestamp with date and time";
presence "true";
// service timestamps debug datetime localtime