forked from CiscoDevNet/ydk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cisco_self_mgmt.go
867 lines (720 loc) · 42.5 KB
/
cisco_self_mgmt.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
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
// Copyright (c) 2016 by Cisco Systems, Inc.All rights reserved.
package cisco_self_mgmt
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_xe"
"reflect"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package cisco_self_mgmt"))
ydk.RegisterEntity("{http://cisco.com/yang/cisco-self-mgmt netconf-yang}", reflect.TypeOf(NetconfYang{}))
ydk.RegisterEntity("cisco-self-mgmt:netconf-yang", reflect.TypeOf(NetconfYang{}))
}
// NetconfYang
// Top level container shared by cisco-ia and cisco-odm models
type NetconfYang struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Customize the behavior of the DMI applications.
CiscoIa NetconfYang_CiscoIa
}
func (netconfYang *NetconfYang) GetEntityData() *types.CommonEntityData {
netconfYang.EntityData.YFilter = netconfYang.YFilter
netconfYang.EntityData.YangName = "netconf-yang"
netconfYang.EntityData.BundleName = "cisco_ios_xe"
netconfYang.EntityData.ParentYangName = "cisco-self-mgmt"
netconfYang.EntityData.SegmentPath = "cisco-self-mgmt:netconf-yang"
netconfYang.EntityData.AbsolutePath = netconfYang.EntityData.SegmentPath
netconfYang.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
netconfYang.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
netconfYang.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
netconfYang.EntityData.Children = types.NewOrderedMap()
netconfYang.EntityData.Children.Append("cisco-ia:cisco-ia", types.YChild{"CiscoIa", &netconfYang.CiscoIa})
netconfYang.EntityData.Leafs = types.NewOrderedMap()
netconfYang.EntityData.YListKeys = []string {}
return &(netconfYang.EntityData)
}
// NetconfYang_CiscoIa
// Customize the behavior of the DMI applications
type NetconfYang_CiscoIa struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Enables automatic synchronization of the network element's running
// configuration with the DMI database. The type is CiaSyncType. The default
// value is without-defaults.
AutoSync interface{}
// Enables synchronization of the network element's running configuration with
// the DMI database when DMI initializes. The type is CiaSyncType. The default
// value is without-defaults.
InitSync interface{}
// When enabled, intelligent-sync monitors all ttys for configuration changes
// and replays these changes to the DMI database once the tty exits
// configuration mode. When disabled, the complete running-configuration is
// used to synchronize the DMI database whenever a CLI configuration change is
// detected. The type is bool. The default value is true.
IntelligentSync interface{}
// 0 = Disabled, 1 = Save input message, DMI debugs, and response, 2 = Level
// 1 + Save "before" and "after" running-config, 3 = Level 2 + rollback
// file and configuration diff. The type is interface{} with range: 0..3. The
// default value is 0.
MessageDiagLevel interface{}
// The maximum number of messages whose diagnostic data in kept in persistent
// storage. The type is interface{} with range: 0..199. The default value is
// 30.
MaxDiagMessagesSaved interface{}
// Run "show ip access-list" and send to ConfD. The type is bool. The default
// value is true.
PostSyncAclProcess interface{}
// Delay in ms before applying CDB change to NE. The type is interface{} with
// range: -32768..32767. The default value is 0.
ConfigChangeDelay interface{}
// Process any parser output from configuration changes as a possible error.
// The type is bool. The default value is true.
ProcessMissingPrc interface{}
// Process any parser output from configuration changes and compare against
// either a known set of errors (blacklist) or a known set of messages to
// ignore (whitelist). The type is ParserMsgProcessingMethod. The default
// value is blacklist.
MissingPrcMethod interface{}
// The community string for communication with the SNMP agent. The
// type is string. The default value is private.
SnmpCommunityString interface{}
// Preserve specified model paths in the NED model when performing a sync from
// the network element. The type is bool. The default value is false.
PreservePathsEnabled interface{}
// TTY number used by NetworkElementSynchronizer. The type is interface{} with
// range: -32768..32767.
NesTtynum interface{}
// Indicates if CDB restored from NES running-config. The type is bool. The
// default value is false.
Restored interface{}
// This container describes the configuration parameters for SNMP Trap to
// NetConf notification processing.
SnmpTrapControl NetconfYang_CiscoIa_SnmpTrapControl
// Model paths from the NED model to preserve upon a sync from the network
// element. These paths are not cleared from the running data store prior to
// the sync. These are expressed as nodes separated by slash '/', e.g.
// /native/ip/access-list. The type is slice of
// NetconfYang_CiscoIa_PreserveNedPath.
PreserveNedPath []*NetconfYang_CiscoIa_PreserveNedPath
// Parser output from configuration change that is informational only, not an
// error. This is a read only list containing known informational messages.
// The type is slice of NetconfYang_CiscoIa_ParserMsgIgnore.
ParserMsgIgnore []*NetconfYang_CiscoIa_ParserMsgIgnore
// Parser output from configuration change that is informational only, not an
// error. The type is slice of NetconfYang_CiscoIa_ConfParserMsgIgnore.
ConfParserMsgIgnore []*NetconfYang_CiscoIa_ConfParserMsgIgnore
// Parser output from configuration change that indicates an error that
// cannot be ignored (must abort the transaction). This is a read only list
// containing known error messages. The type is slice of
// NetconfYang_CiscoIa_ParserMsgError.
ParserMsgError []*NetconfYang_CiscoIa_ParserMsgError
// Parser output from configuration change that indicates an error that
// cannot be ignored (must abort the transaction). The type is slice of
// NetconfYang_CiscoIa_ConfParserMsgError.
ConfParserMsgError []*NetconfYang_CiscoIa_ConfParserMsgError
// IOS commands that result in other automatic configurations being applied
// for which a complete sync is required. The type is slice of
// NetconfYang_CiscoIa_FullSyncCli.
FullSyncCli []*NetconfYang_CiscoIa_FullSyncCli
// A user-configurable list of IOS commands that result in other automatic
// configurations being applied for which a complete sync is required. The
// type is slice of NetconfYang_CiscoIa_ConfFullSyncCli.
ConfFullSyncCli []*NetconfYang_CiscoIa_ConfFullSyncCli
// Controls logging behavior of DMI applications.
Logging NetconfYang_CiscoIa_Logging
// Controls blocking of command lines, either from the NE to Confd or
// disallowing manual input from the console/vty.
Blocking NetconfYang_CiscoIa_Blocking
// WARNING: These configuration commands should not be used unless
// directed to by Cisco. Some IOS configuration commands may have a vitally
// important relationship to other IOS configuration commands. These so called
// pivotal commands have to be handled as an execption to the normal
// processing flow. The pivotal commands and their special handling actions
// are described in this list.
PivotCommands NetconfYang_CiscoIa_PivotCommands
}
func (ciscoIa *NetconfYang_CiscoIa) GetEntityData() *types.CommonEntityData {
ciscoIa.EntityData.YFilter = ciscoIa.YFilter
ciscoIa.EntityData.YangName = "cisco-ia"
ciscoIa.EntityData.BundleName = "cisco_ios_xe"
ciscoIa.EntityData.ParentYangName = "netconf-yang"
ciscoIa.EntityData.SegmentPath = "cisco-ia:cisco-ia"
ciscoIa.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/" + ciscoIa.EntityData.SegmentPath
ciscoIa.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
ciscoIa.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
ciscoIa.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
ciscoIa.EntityData.Children = types.NewOrderedMap()
ciscoIa.EntityData.Children.Append("snmp-trap-control", types.YChild{"SnmpTrapControl", &ciscoIa.SnmpTrapControl})
ciscoIa.EntityData.Children.Append("preserve-ned-path", types.YChild{"PreserveNedPath", nil})
for i := range ciscoIa.PreserveNedPath {
ciscoIa.EntityData.Children.Append(types.GetSegmentPath(ciscoIa.PreserveNedPath[i]), types.YChild{"PreserveNedPath", ciscoIa.PreserveNedPath[i]})
}
ciscoIa.EntityData.Children.Append("parser-msg-ignore", types.YChild{"ParserMsgIgnore", nil})
for i := range ciscoIa.ParserMsgIgnore {
ciscoIa.EntityData.Children.Append(types.GetSegmentPath(ciscoIa.ParserMsgIgnore[i]), types.YChild{"ParserMsgIgnore", ciscoIa.ParserMsgIgnore[i]})
}
ciscoIa.EntityData.Children.Append("conf-parser-msg-ignore", types.YChild{"ConfParserMsgIgnore", nil})
for i := range ciscoIa.ConfParserMsgIgnore {
ciscoIa.EntityData.Children.Append(types.GetSegmentPath(ciscoIa.ConfParserMsgIgnore[i]), types.YChild{"ConfParserMsgIgnore", ciscoIa.ConfParserMsgIgnore[i]})
}
ciscoIa.EntityData.Children.Append("parser-msg-error", types.YChild{"ParserMsgError", nil})
for i := range ciscoIa.ParserMsgError {
ciscoIa.EntityData.Children.Append(types.GetSegmentPath(ciscoIa.ParserMsgError[i]), types.YChild{"ParserMsgError", ciscoIa.ParserMsgError[i]})
}
ciscoIa.EntityData.Children.Append("conf-parser-msg-error", types.YChild{"ConfParserMsgError", nil})
for i := range ciscoIa.ConfParserMsgError {
ciscoIa.EntityData.Children.Append(types.GetSegmentPath(ciscoIa.ConfParserMsgError[i]), types.YChild{"ConfParserMsgError", ciscoIa.ConfParserMsgError[i]})
}
ciscoIa.EntityData.Children.Append("full-sync-cli", types.YChild{"FullSyncCli", nil})
for i := range ciscoIa.FullSyncCli {
ciscoIa.EntityData.Children.Append(types.GetSegmentPath(ciscoIa.FullSyncCli[i]), types.YChild{"FullSyncCli", ciscoIa.FullSyncCli[i]})
}
ciscoIa.EntityData.Children.Append("conf-full-sync-cli", types.YChild{"ConfFullSyncCli", nil})
for i := range ciscoIa.ConfFullSyncCli {
ciscoIa.EntityData.Children.Append(types.GetSegmentPath(ciscoIa.ConfFullSyncCli[i]), types.YChild{"ConfFullSyncCli", ciscoIa.ConfFullSyncCli[i]})
}
ciscoIa.EntityData.Children.Append("logging", types.YChild{"Logging", &ciscoIa.Logging})
ciscoIa.EntityData.Children.Append("blocking", types.YChild{"Blocking", &ciscoIa.Blocking})
ciscoIa.EntityData.Children.Append("pivot-commands", types.YChild{"PivotCommands", &ciscoIa.PivotCommands})
ciscoIa.EntityData.Leafs = types.NewOrderedMap()
ciscoIa.EntityData.Leafs.Append("auto-sync", types.YLeaf{"AutoSync", ciscoIa.AutoSync})
ciscoIa.EntityData.Leafs.Append("init-sync", types.YLeaf{"InitSync", ciscoIa.InitSync})
ciscoIa.EntityData.Leafs.Append("intelligent-sync", types.YLeaf{"IntelligentSync", ciscoIa.IntelligentSync})
ciscoIa.EntityData.Leafs.Append("message-diag-level", types.YLeaf{"MessageDiagLevel", ciscoIa.MessageDiagLevel})
ciscoIa.EntityData.Leafs.Append("max-diag-messages-saved", types.YLeaf{"MaxDiagMessagesSaved", ciscoIa.MaxDiagMessagesSaved})
ciscoIa.EntityData.Leafs.Append("post-sync-acl-process", types.YLeaf{"PostSyncAclProcess", ciscoIa.PostSyncAclProcess})
ciscoIa.EntityData.Leafs.Append("config-change-delay", types.YLeaf{"ConfigChangeDelay", ciscoIa.ConfigChangeDelay})
ciscoIa.EntityData.Leafs.Append("process-missing-prc", types.YLeaf{"ProcessMissingPrc", ciscoIa.ProcessMissingPrc})
ciscoIa.EntityData.Leafs.Append("missing-prc-method", types.YLeaf{"MissingPrcMethod", ciscoIa.MissingPrcMethod})
ciscoIa.EntityData.Leafs.Append("snmp-community-string", types.YLeaf{"SnmpCommunityString", ciscoIa.SnmpCommunityString})
ciscoIa.EntityData.Leafs.Append("preserve-paths-enabled", types.YLeaf{"PreservePathsEnabled", ciscoIa.PreservePathsEnabled})
ciscoIa.EntityData.Leafs.Append("nes-ttynum", types.YLeaf{"NesTtynum", ciscoIa.NesTtynum})
ciscoIa.EntityData.Leafs.Append("restored", types.YLeaf{"Restored", ciscoIa.Restored})
ciscoIa.EntityData.YListKeys = []string {}
return &(ciscoIa.EntityData)
}
// NetconfYang_CiscoIa_SnmpTrapControl
// This container describes the configuration parameters
// for SNMP Trap to NetConf notification processing.
type NetconfYang_CiscoIa_SnmpTrapControl struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// This leaf enables or disables forwarding for all SNMP traps. The type is
// bool. The default value is true.
GlobalForwarding interface{}
// This list describes SNMP Traps that are supported for automatic
// translation to NetConf notifications. The type is slice of
// NetconfYang_CiscoIa_SnmpTrapControl_TrapList.
TrapList []*NetconfYang_CiscoIa_SnmpTrapControl_TrapList
}
func (snmpTrapControl *NetconfYang_CiscoIa_SnmpTrapControl) GetEntityData() *types.CommonEntityData {
snmpTrapControl.EntityData.YFilter = snmpTrapControl.YFilter
snmpTrapControl.EntityData.YangName = "snmp-trap-control"
snmpTrapControl.EntityData.BundleName = "cisco_ios_xe"
snmpTrapControl.EntityData.ParentYangName = "cisco-ia"
snmpTrapControl.EntityData.SegmentPath = "snmp-trap-control"
snmpTrapControl.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/" + snmpTrapControl.EntityData.SegmentPath
snmpTrapControl.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
snmpTrapControl.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
snmpTrapControl.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
snmpTrapControl.EntityData.Children = types.NewOrderedMap()
snmpTrapControl.EntityData.Children.Append("trap-list", types.YChild{"TrapList", nil})
for i := range snmpTrapControl.TrapList {
snmpTrapControl.EntityData.Children.Append(types.GetSegmentPath(snmpTrapControl.TrapList[i]), types.YChild{"TrapList", snmpTrapControl.TrapList[i]})
}
snmpTrapControl.EntityData.Leafs = types.NewOrderedMap()
snmpTrapControl.EntityData.Leafs.Append("global-forwarding", types.YLeaf{"GlobalForwarding", snmpTrapControl.GlobalForwarding})
snmpTrapControl.EntityData.YListKeys = []string {}
return &(snmpTrapControl.EntityData)
}
// NetconfYang_CiscoIa_SnmpTrapControl_TrapList
// This list describes SNMP Traps that are
// supported for automatic translation to NetConf
// notifications.
type NetconfYang_CiscoIa_SnmpTrapControl_TrapList struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. This leaf contains the OID for the SNMP trap to
// be forwarded. The type is string with pattern:
// (([0-1](\.[1-3]?[0-9]))|(2\.(0|([1-9]\d*))))(\.(0|([1-9]\d*)))*.
TrapOid interface{}
// This leaf contains the name of the SNMP trap to be forwarded. The type is
// string.
Description interface{}
// This leaf enables or disables forwarding for this SNMP trap. The type is
// bool. The default value is true.
Forward interface{}
}
func (trapList *NetconfYang_CiscoIa_SnmpTrapControl_TrapList) GetEntityData() *types.CommonEntityData {
trapList.EntityData.YFilter = trapList.YFilter
trapList.EntityData.YangName = "trap-list"
trapList.EntityData.BundleName = "cisco_ios_xe"
trapList.EntityData.ParentYangName = "snmp-trap-control"
trapList.EntityData.SegmentPath = "trap-list" + types.AddKeyToken(trapList.TrapOid, "trap-oid")
trapList.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/snmp-trap-control/" + trapList.EntityData.SegmentPath
trapList.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
trapList.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
trapList.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
trapList.EntityData.Children = types.NewOrderedMap()
trapList.EntityData.Leafs = types.NewOrderedMap()
trapList.EntityData.Leafs.Append("trap-oid", types.YLeaf{"TrapOid", trapList.TrapOid})
trapList.EntityData.Leafs.Append("description", types.YLeaf{"Description", trapList.Description})
trapList.EntityData.Leafs.Append("forward", types.YLeaf{"Forward", trapList.Forward})
trapList.EntityData.YListKeys = []string {"TrapOid"}
return &(trapList.EntityData)
}
// NetconfYang_CiscoIa_PreserveNedPath
// Model paths from the NED model to preserve
// upon a sync from the network element.
// These paths are not cleared from the
// running data store prior to the sync.
// These are expressed as nodes separated by
// slash '/', e.g. /native/ip/access-list
type NetconfYang_CiscoIa_PreserveNedPath struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. An XPath from the NED model. The type is string
// with length: 1..1024.
Xpath interface{}
}
func (preserveNedPath *NetconfYang_CiscoIa_PreserveNedPath) GetEntityData() *types.CommonEntityData {
preserveNedPath.EntityData.YFilter = preserveNedPath.YFilter
preserveNedPath.EntityData.YangName = "preserve-ned-path"
preserveNedPath.EntityData.BundleName = "cisco_ios_xe"
preserveNedPath.EntityData.ParentYangName = "cisco-ia"
preserveNedPath.EntityData.SegmentPath = "preserve-ned-path" + types.AddKeyToken(preserveNedPath.Xpath, "xpath")
preserveNedPath.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/" + preserveNedPath.EntityData.SegmentPath
preserveNedPath.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
preserveNedPath.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
preserveNedPath.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
preserveNedPath.EntityData.Children = types.NewOrderedMap()
preserveNedPath.EntityData.Leafs = types.NewOrderedMap()
preserveNedPath.EntityData.Leafs.Append("xpath", types.YLeaf{"Xpath", preserveNedPath.Xpath})
preserveNedPath.EntityData.YListKeys = []string {"Xpath"}
return &(preserveNedPath.EntityData)
}
// NetconfYang_CiscoIa_ParserMsgIgnore
// Parser output from configuration
// change that is informational only,
// not an error. This is a read only
// list containing known informational
// messages
type NetconfYang_CiscoIa_ParserMsgIgnore struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. A regular expression to match parser output to be
// ignored. The type is string with length: 1..255.
Message interface{}
}
func (parserMsgIgnore *NetconfYang_CiscoIa_ParserMsgIgnore) GetEntityData() *types.CommonEntityData {
parserMsgIgnore.EntityData.YFilter = parserMsgIgnore.YFilter
parserMsgIgnore.EntityData.YangName = "parser-msg-ignore"
parserMsgIgnore.EntityData.BundleName = "cisco_ios_xe"
parserMsgIgnore.EntityData.ParentYangName = "cisco-ia"
parserMsgIgnore.EntityData.SegmentPath = "parser-msg-ignore" + types.AddKeyToken(parserMsgIgnore.Message, "message")
parserMsgIgnore.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/" + parserMsgIgnore.EntityData.SegmentPath
parserMsgIgnore.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
parserMsgIgnore.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
parserMsgIgnore.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
parserMsgIgnore.EntityData.Children = types.NewOrderedMap()
parserMsgIgnore.EntityData.Leafs = types.NewOrderedMap()
parserMsgIgnore.EntityData.Leafs.Append("message", types.YLeaf{"Message", parserMsgIgnore.Message})
parserMsgIgnore.EntityData.YListKeys = []string {"Message"}
return &(parserMsgIgnore.EntityData)
}
// NetconfYang_CiscoIa_ConfParserMsgIgnore
// Parser output from configuration
// change that is informational only,
// not an error
type NetconfYang_CiscoIa_ConfParserMsgIgnore struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. A regular expression to match parser output to be
// ignored. The type is string with length: 1..255.
Message interface{}
}
func (confParserMsgIgnore *NetconfYang_CiscoIa_ConfParserMsgIgnore) GetEntityData() *types.CommonEntityData {
confParserMsgIgnore.EntityData.YFilter = confParserMsgIgnore.YFilter
confParserMsgIgnore.EntityData.YangName = "conf-parser-msg-ignore"
confParserMsgIgnore.EntityData.BundleName = "cisco_ios_xe"
confParserMsgIgnore.EntityData.ParentYangName = "cisco-ia"
confParserMsgIgnore.EntityData.SegmentPath = "conf-parser-msg-ignore" + types.AddKeyToken(confParserMsgIgnore.Message, "message")
confParserMsgIgnore.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/" + confParserMsgIgnore.EntityData.SegmentPath
confParserMsgIgnore.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
confParserMsgIgnore.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
confParserMsgIgnore.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
confParserMsgIgnore.EntityData.Children = types.NewOrderedMap()
confParserMsgIgnore.EntityData.Leafs = types.NewOrderedMap()
confParserMsgIgnore.EntityData.Leafs.Append("message", types.YLeaf{"Message", confParserMsgIgnore.Message})
confParserMsgIgnore.EntityData.YListKeys = []string {"Message"}
return &(confParserMsgIgnore.EntityData)
}
// NetconfYang_CiscoIa_ParserMsgError
// Parser output from configuration
// change that indicates an error
// that cannot be ignored (must abort
// the transaction). This is a read only
// list containing known error messages.
type NetconfYang_CiscoIa_ParserMsgError struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. A regular expression to match parser output to be
// considered an error. The type is string with length: 1..255.
Message interface{}
}
func (parserMsgError *NetconfYang_CiscoIa_ParserMsgError) GetEntityData() *types.CommonEntityData {
parserMsgError.EntityData.YFilter = parserMsgError.YFilter
parserMsgError.EntityData.YangName = "parser-msg-error"
parserMsgError.EntityData.BundleName = "cisco_ios_xe"
parserMsgError.EntityData.ParentYangName = "cisco-ia"
parserMsgError.EntityData.SegmentPath = "parser-msg-error" + types.AddKeyToken(parserMsgError.Message, "message")
parserMsgError.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/" + parserMsgError.EntityData.SegmentPath
parserMsgError.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
parserMsgError.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
parserMsgError.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
parserMsgError.EntityData.Children = types.NewOrderedMap()
parserMsgError.EntityData.Leafs = types.NewOrderedMap()
parserMsgError.EntityData.Leafs.Append("message", types.YLeaf{"Message", parserMsgError.Message})
parserMsgError.EntityData.YListKeys = []string {"Message"}
return &(parserMsgError.EntityData)
}
// NetconfYang_CiscoIa_ConfParserMsgError
// Parser output from configuration
// change that indicates an error
// that cannot be ignored (must abort
// the transaction).
type NetconfYang_CiscoIa_ConfParserMsgError struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. A regular expression to match parser output to be
// considered an error. The type is string with length: 1..255.
Message interface{}
}
func (confParserMsgError *NetconfYang_CiscoIa_ConfParserMsgError) GetEntityData() *types.CommonEntityData {
confParserMsgError.EntityData.YFilter = confParserMsgError.YFilter
confParserMsgError.EntityData.YangName = "conf-parser-msg-error"
confParserMsgError.EntityData.BundleName = "cisco_ios_xe"
confParserMsgError.EntityData.ParentYangName = "cisco-ia"
confParserMsgError.EntityData.SegmentPath = "conf-parser-msg-error" + types.AddKeyToken(confParserMsgError.Message, "message")
confParserMsgError.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/" + confParserMsgError.EntityData.SegmentPath
confParserMsgError.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
confParserMsgError.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
confParserMsgError.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
confParserMsgError.EntityData.Children = types.NewOrderedMap()
confParserMsgError.EntityData.Leafs = types.NewOrderedMap()
confParserMsgError.EntityData.Leafs.Append("message", types.YLeaf{"Message", confParserMsgError.Message})
confParserMsgError.EntityData.YListKeys = []string {"Message"}
return &(confParserMsgError.EntityData)
}
// NetconfYang_CiscoIa_FullSyncCli
// IOS commands that result in other
// automatic configurations being applied
// for which a complete sync is required
type NetconfYang_CiscoIa_FullSyncCli struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. A regular expression matching command lines which
// cause other automatic configuration changes. The type is string with
// length: 1..255.
Command interface{}
}
func (fullSyncCli *NetconfYang_CiscoIa_FullSyncCli) GetEntityData() *types.CommonEntityData {
fullSyncCli.EntityData.YFilter = fullSyncCli.YFilter
fullSyncCli.EntityData.YangName = "full-sync-cli"
fullSyncCli.EntityData.BundleName = "cisco_ios_xe"
fullSyncCli.EntityData.ParentYangName = "cisco-ia"
fullSyncCli.EntityData.SegmentPath = "full-sync-cli" + types.AddKeyToken(fullSyncCli.Command, "command")
fullSyncCli.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/" + fullSyncCli.EntityData.SegmentPath
fullSyncCli.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
fullSyncCli.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
fullSyncCli.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
fullSyncCli.EntityData.Children = types.NewOrderedMap()
fullSyncCli.EntityData.Leafs = types.NewOrderedMap()
fullSyncCli.EntityData.Leafs.Append("command", types.YLeaf{"Command", fullSyncCli.Command})
fullSyncCli.EntityData.YListKeys = []string {"Command"}
return &(fullSyncCli.EntityData)
}
// NetconfYang_CiscoIa_ConfFullSyncCli
// A user-configurable list of IOS commands
// that result in other automatic configurations
// being applied for which a complete sync
// is required
type NetconfYang_CiscoIa_ConfFullSyncCli struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. A regular expression matching command lines which
// cause other automatic configuration changes. The type is string with
// length: 1..255.
Command interface{}
}
func (confFullSyncCli *NetconfYang_CiscoIa_ConfFullSyncCli) GetEntityData() *types.CommonEntityData {
confFullSyncCli.EntityData.YFilter = confFullSyncCli.YFilter
confFullSyncCli.EntityData.YangName = "conf-full-sync-cli"
confFullSyncCli.EntityData.BundleName = "cisco_ios_xe"
confFullSyncCli.EntityData.ParentYangName = "cisco-ia"
confFullSyncCli.EntityData.SegmentPath = "conf-full-sync-cli" + types.AddKeyToken(confFullSyncCli.Command, "command")
confFullSyncCli.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/" + confFullSyncCli.EntityData.SegmentPath
confFullSyncCli.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
confFullSyncCli.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
confFullSyncCli.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
confFullSyncCli.EntityData.Children = types.NewOrderedMap()
confFullSyncCli.EntityData.Leafs = types.NewOrderedMap()
confFullSyncCli.EntityData.Leafs.Append("command", types.YLeaf{"Command", confFullSyncCli.Command})
confFullSyncCli.EntityData.YListKeys = []string {"Command"}
return &(confFullSyncCli.EntityData)
}
// NetconfYang_CiscoIa_Logging
// Controls logging behavior of DMI applications
type NetconfYang_CiscoIa_Logging struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Logging level for Confd. The type is SyslogSeverity. The default value is
// error.
ConfdLogLevel interface{}
// Logging level for CiaAuthDaemon. The type is CiaLogLevel. The default value
// is error.
CiaauthdLogLevel interface{}
// Logging level for Network Element Synchronizer. The type is CiaLogLevel.
// The default value is error.
NesLogLevel interface{}
// Logging level for ONEP. The type is OnepLogLevel. The default value is
// error.
OnepLogLevel interface{}
// Logging level for Operational Data Manager. The type is CiaLogLevel. The
// default value is error.
OdmLogLevel interface{}
// Logging level for Sync-From Daemon. The type is CiaLogLevel. The default
// value is error.
SyncLogLevel interface{}
}
func (logging *NetconfYang_CiscoIa_Logging) GetEntityData() *types.CommonEntityData {
logging.EntityData.YFilter = logging.YFilter
logging.EntityData.YangName = "logging"
logging.EntityData.BundleName = "cisco_ios_xe"
logging.EntityData.ParentYangName = "cisco-ia"
logging.EntityData.SegmentPath = "logging"
logging.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/" + logging.EntityData.SegmentPath
logging.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
logging.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
logging.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
logging.EntityData.Children = types.NewOrderedMap()
logging.EntityData.Leafs = types.NewOrderedMap()
logging.EntityData.Leafs.Append("confd-log-level", types.YLeaf{"ConfdLogLevel", logging.ConfdLogLevel})
logging.EntityData.Leafs.Append("ciaauthd-log-level", types.YLeaf{"CiaauthdLogLevel", logging.CiaauthdLogLevel})
logging.EntityData.Leafs.Append("nes-log-level", types.YLeaf{"NesLogLevel", logging.NesLogLevel})
logging.EntityData.Leafs.Append("onep-log-level", types.YLeaf{"OnepLogLevel", logging.OnepLogLevel})
logging.EntityData.Leafs.Append("odm-log-level", types.YLeaf{"OdmLogLevel", logging.OdmLogLevel})
logging.EntityData.Leafs.Append("sync-log-level", types.YLeaf{"SyncLogLevel", logging.SyncLogLevel})
logging.EntityData.YListKeys = []string {}
return &(logging.EntityData)
}
// NetconfYang_CiscoIa_Blocking
// Controls blocking of command lines, either
// from the NE to Confd or disallowing
// manual input from the console/vty
type NetconfYang_CiscoIa_Blocking struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Enables blocking of designated command lines via the network element's
// CLI. The type is bool. The default value is false.
CliBlockingEnabled interface{}
// Enables blocking of designated command lines via the network element's
// CLI. The type is bool. The default value is true.
ConfdCfgBlockingEnabled interface{}
// Command line pattern to disallow via the network element's CLI. The type is
// slice of NetconfYang_CiscoIa_Blocking_NetworkElementCommand.
NetworkElementCommand []*NetconfYang_CiscoIa_Blocking_NetworkElementCommand
// Command line pattern to omit syncing to Confd CDB. The type is slice of
// NetconfYang_CiscoIa_Blocking_ConfdCfgCommand.
ConfdCfgCommand []*NetconfYang_CiscoIa_Blocking_ConfdCfgCommand
}
func (blocking *NetconfYang_CiscoIa_Blocking) GetEntityData() *types.CommonEntityData {
blocking.EntityData.YFilter = blocking.YFilter
blocking.EntityData.YangName = "blocking"
blocking.EntityData.BundleName = "cisco_ios_xe"
blocking.EntityData.ParentYangName = "cisco-ia"
blocking.EntityData.SegmentPath = "blocking"
blocking.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/" + blocking.EntityData.SegmentPath
blocking.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
blocking.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
blocking.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
blocking.EntityData.Children = types.NewOrderedMap()
blocking.EntityData.Children.Append("network-element-command", types.YChild{"NetworkElementCommand", nil})
for i := range blocking.NetworkElementCommand {
blocking.EntityData.Children.Append(types.GetSegmentPath(blocking.NetworkElementCommand[i]), types.YChild{"NetworkElementCommand", blocking.NetworkElementCommand[i]})
}
blocking.EntityData.Children.Append("confd-cfg-command", types.YChild{"ConfdCfgCommand", nil})
for i := range blocking.ConfdCfgCommand {
blocking.EntityData.Children.Append(types.GetSegmentPath(blocking.ConfdCfgCommand[i]), types.YChild{"ConfdCfgCommand", blocking.ConfdCfgCommand[i]})
}
blocking.EntityData.Leafs = types.NewOrderedMap()
blocking.EntityData.Leafs.Append("cli-blocking-enabled", types.YLeaf{"CliBlockingEnabled", blocking.CliBlockingEnabled})
blocking.EntityData.Leafs.Append("confd-cfg-blocking-enabled", types.YLeaf{"ConfdCfgBlockingEnabled", blocking.ConfdCfgBlockingEnabled})
blocking.EntityData.YListKeys = []string {}
return &(blocking.EntityData)
}
// NetconfYang_CiscoIa_Blocking_NetworkElementCommand
// Command line pattern to disallow via the
// network element's CLI
type NetconfYang_CiscoIa_Blocking_NetworkElementCommand struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. A regular expression matching command lines which
// should be blocked from entry via console/vty. The type is string with
// length: 1..255.
Command interface{}
}
func (networkElementCommand *NetconfYang_CiscoIa_Blocking_NetworkElementCommand) GetEntityData() *types.CommonEntityData {
networkElementCommand.EntityData.YFilter = networkElementCommand.YFilter
networkElementCommand.EntityData.YangName = "network-element-command"
networkElementCommand.EntityData.BundleName = "cisco_ios_xe"
networkElementCommand.EntityData.ParentYangName = "blocking"
networkElementCommand.EntityData.SegmentPath = "network-element-command" + types.AddKeyToken(networkElementCommand.Command, "command")
networkElementCommand.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/blocking/" + networkElementCommand.EntityData.SegmentPath
networkElementCommand.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
networkElementCommand.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
networkElementCommand.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
networkElementCommand.EntityData.Children = types.NewOrderedMap()
networkElementCommand.EntityData.Leafs = types.NewOrderedMap()
networkElementCommand.EntityData.Leafs.Append("command", types.YLeaf{"Command", networkElementCommand.Command})
networkElementCommand.EntityData.YListKeys = []string {"Command"}
return &(networkElementCommand.EntityData)
}
// NetconfYang_CiscoIa_Blocking_ConfdCfgCommand
// Command line pattern to omit syncing to Confd CDB
type NetconfYang_CiscoIa_Blocking_ConfdCfgCommand struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. A regular expression matching command lines which
// should be blocked from being sent to Confd from the network element. The
// type is string.
Command interface{}
}
func (confdCfgCommand *NetconfYang_CiscoIa_Blocking_ConfdCfgCommand) GetEntityData() *types.CommonEntityData {
confdCfgCommand.EntityData.YFilter = confdCfgCommand.YFilter
confdCfgCommand.EntityData.YangName = "confd-cfg-command"
confdCfgCommand.EntityData.BundleName = "cisco_ios_xe"
confdCfgCommand.EntityData.ParentYangName = "blocking"
confdCfgCommand.EntityData.SegmentPath = "confd-cfg-command" + types.AddKeyToken(confdCfgCommand.Command, "command")
confdCfgCommand.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/blocking/" + confdCfgCommand.EntityData.SegmentPath
confdCfgCommand.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
confdCfgCommand.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
confdCfgCommand.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
confdCfgCommand.EntityData.Children = types.NewOrderedMap()
confdCfgCommand.EntityData.Leafs = types.NewOrderedMap()
confdCfgCommand.EntityData.Leafs.Append("command", types.YLeaf{"Command", confdCfgCommand.Command})
confdCfgCommand.EntityData.YListKeys = []string {"Command"}
return &(confdCfgCommand.EntityData)
}
// NetconfYang_CiscoIa_PivotCommands
// WARNING: These configuration commands should not be used unless
// directed to by Cisco.
// Some IOS configuration commands may have a vitally important
// relationship to other IOS configuration commands.
// These so called pivotal commands have to be handled as an
// execption to the normal processing flow. The pivotal commands
// and their special handling actions are described in this list.
type NetconfYang_CiscoIa_PivotCommands struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Static list of pivot commands. The type is slice of
// NetconfYang_CiscoIa_PivotCommands_PivotCommand.
PivotCommand []*NetconfYang_CiscoIa_PivotCommands_PivotCommand
}
func (pivotCommands *NetconfYang_CiscoIa_PivotCommands) GetEntityData() *types.CommonEntityData {
pivotCommands.EntityData.YFilter = pivotCommands.YFilter
pivotCommands.EntityData.YangName = "pivot-commands"
pivotCommands.EntityData.BundleName = "cisco_ios_xe"
pivotCommands.EntityData.ParentYangName = "cisco-ia"
pivotCommands.EntityData.SegmentPath = "pivot-commands"
pivotCommands.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/" + pivotCommands.EntityData.SegmentPath
pivotCommands.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
pivotCommands.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
pivotCommands.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
pivotCommands.EntityData.Children = types.NewOrderedMap()
pivotCommands.EntityData.Children.Append("pivot-command", types.YChild{"PivotCommand", nil})
for i := range pivotCommands.PivotCommand {
pivotCommands.EntityData.Children.Append(types.GetSegmentPath(pivotCommands.PivotCommand[i]), types.YChild{"PivotCommand", pivotCommands.PivotCommand[i]})
}
pivotCommands.EntityData.Leafs = types.NewOrderedMap()
pivotCommands.EntityData.YListKeys = []string {}
return &(pivotCommands.EntityData)
}
// NetconfYang_CiscoIa_PivotCommands_PivotCommand
// Static list of pivot commands.
type NetconfYang_CiscoIa_PivotCommands_PivotCommand struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The command prefix to match. Leading spaces are
// counted towards the match. The type is string with length: 1..255.
Command interface{}
// Whether or not the command will be retried if it fails and associated
// parameters.
Retry NetconfYang_CiscoIa_PivotCommands_PivotCommand_Retry
}
func (pivotCommand *NetconfYang_CiscoIa_PivotCommands_PivotCommand) GetEntityData() *types.CommonEntityData {
pivotCommand.EntityData.YFilter = pivotCommand.YFilter
pivotCommand.EntityData.YangName = "pivot-command"
pivotCommand.EntityData.BundleName = "cisco_ios_xe"
pivotCommand.EntityData.ParentYangName = "pivot-commands"
pivotCommand.EntityData.SegmentPath = "pivot-command" + types.AddKeyToken(pivotCommand.Command, "command")
pivotCommand.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/pivot-commands/" + pivotCommand.EntityData.SegmentPath
pivotCommand.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
pivotCommand.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
pivotCommand.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
pivotCommand.EntityData.Children = types.NewOrderedMap()
pivotCommand.EntityData.Children.Append("retry", types.YChild{"Retry", &pivotCommand.Retry})
pivotCommand.EntityData.Leafs = types.NewOrderedMap()
pivotCommand.EntityData.Leafs.Append("command", types.YLeaf{"Command", pivotCommand.Command})
pivotCommand.EntityData.YListKeys = []string {"Command"}
return &(pivotCommand.EntityData)
}
// NetconfYang_CiscoIa_PivotCommands_PivotCommand_Retry
// Whether or not the command will be retried if it
// fails and associated parameters.
// This type is a presence type.
type NetconfYang_CiscoIa_PivotCommands_PivotCommand_Retry struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YPresence bool
// The minimum time to wait before retrying a failed command. The type is
// interface{} with range: 10..60000. Units are milliseconds.
MinRetryTime interface{}
// The maximum time to wait before retrying a failed command. Commands that
// continue to fail after having waited this amount of time are considered to
// have permanently failed. The type is interface{} with range: 10..60000.
// Units are milliseconds.
MaxRetryTime interface{}
}
func (retry *NetconfYang_CiscoIa_PivotCommands_PivotCommand_Retry) GetEntityData() *types.CommonEntityData {
retry.EntityData.YFilter = retry.YFilter
retry.EntityData.YangName = "retry"
retry.EntityData.BundleName = "cisco_ios_xe"
retry.EntityData.ParentYangName = "pivot-command"
retry.EntityData.SegmentPath = "retry"
retry.EntityData.AbsolutePath = "cisco-self-mgmt:netconf-yang/cisco-ia:cisco-ia/pivot-commands/pivot-command/" + retry.EntityData.SegmentPath
retry.EntityData.CapabilitiesTable = cisco_ios_xe.GetCapabilities()
retry.EntityData.NamespaceTable = cisco_ios_xe.GetNamespaces()
retry.EntityData.BundleYangModelsLocation = cisco_ios_xe.GetModelsPath()
retry.EntityData.Children = types.NewOrderedMap()
retry.EntityData.Leafs = types.NewOrderedMap()
retry.EntityData.Leafs.Append("min-retry-time", types.YLeaf{"MinRetryTime", retry.MinRetryTime})
retry.EntityData.Leafs.Append("max-retry-time", types.YLeaf{"MaxRetryTime", retry.MaxRetryTime})
retry.EntityData.YListKeys = []string {}
return &(retry.EntityData)
}