This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
snmp_agent_oper.go
4709 lines (3783 loc) · 219 KB
/
snmp_agent_oper.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
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
// This module contains a collection of YANG definitions
// for Cisco IOS-XR snmp-agent package operational data.
//
// This module contains definitions
// for the following management objects:
// snmp: SNMP operational data
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package snmp_agent_oper
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 snmp_agent_oper"))
ydk.RegisterEntity("{http://cisco.com/ns/yang/Cisco-IOS-XR-snmp-agent-oper snmp}", reflect.TypeOf(Snmp{}))
ydk.RegisterEntity("Cisco-IOS-XR-snmp-agent-oper:snmp", reflect.TypeOf(Snmp{}))
}
// SnmpCorrVbindMatch represents Snmp corr vbind match
type SnmpCorrVbindMatch string
const (
// Match regexp to varbind index
SnmpCorrVbindMatch_index SnmpCorrVbindMatch = "index"
// Match regexp to varbind value
SnmpCorrVbindMatch_value SnmpCorrVbindMatch = "value"
)
// SnmpCorrRuleState represents Snmp corr rule state
type SnmpCorrRuleState string
const (
// Rule is in Unapplied state
SnmpCorrRuleState_rule_unapplied SnmpCorrRuleState = "rule-unapplied"
// Rule is Applied to specified hosts
SnmpCorrRuleState_rule_applied SnmpCorrRuleState = "rule-applied"
// Rule is Applied to all of router
SnmpCorrRuleState_rule_applied_all SnmpCorrRuleState = "rule-applied-all"
)
// DupReqDropStatus represents Dup req drop status
type DupReqDropStatus string
const (
// Disabled
DupReqDropStatus_disabled DupReqDropStatus = "disabled"
// Enabled
DupReqDropStatus_enabled DupReqDropStatus = "enabled"
)
// Snmp
// SNMP operational data
type Snmp struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// List of trap hosts.
TrapServers Snmp_TrapServers
// SNMP operational information.
Information Snmp_Information
// List of interfaces.
Interfaces Snmp_Interfaces
// Trap Correlator operational data.
Correlator Snmp_Correlator
// List of index.
InterfaceIndexes Snmp_InterfaceIndexes
// List of ifnames.
IfIndexes Snmp_IfIndexes
// SNMP entity mib.
EntityMib Snmp_EntityMib
// SNMP IF-MIB information.
InterfaceMib Snmp_InterfaceMib
// SNMP sensor MIB information.
SensorMib Snmp_SensorMib
}
func (snmp *Snmp) GetEntityData() *types.CommonEntityData {
snmp.EntityData.YFilter = snmp.YFilter
snmp.EntityData.YangName = "snmp"
snmp.EntityData.BundleName = "cisco_ios_xr"
snmp.EntityData.ParentYangName = "Cisco-IOS-XR-snmp-agent-oper"
snmp.EntityData.SegmentPath = "Cisco-IOS-XR-snmp-agent-oper:snmp"
snmp.EntityData.AbsolutePath = snmp.EntityData.SegmentPath
snmp.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
snmp.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
snmp.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
snmp.EntityData.Children = types.NewOrderedMap()
snmp.EntityData.Children.Append("trap-servers", types.YChild{"TrapServers", &snmp.TrapServers})
snmp.EntityData.Children.Append("information", types.YChild{"Information", &snmp.Information})
snmp.EntityData.Children.Append("interfaces", types.YChild{"Interfaces", &snmp.Interfaces})
snmp.EntityData.Children.Append("correlator", types.YChild{"Correlator", &snmp.Correlator})
snmp.EntityData.Children.Append("interface-indexes", types.YChild{"InterfaceIndexes", &snmp.InterfaceIndexes})
snmp.EntityData.Children.Append("if-indexes", types.YChild{"IfIndexes", &snmp.IfIndexes})
snmp.EntityData.Children.Append("Cisco-IOS-XR-snmp-entitymib-oper:entity-mib", types.YChild{"EntityMib", &snmp.EntityMib})
snmp.EntityData.Children.Append("Cisco-IOS-XR-snmp-ifmib-oper:interface-mib", types.YChild{"InterfaceMib", &snmp.InterfaceMib})
snmp.EntityData.Children.Append("Cisco-IOS-XR-snmp-sensormib-oper:sensor-mib", types.YChild{"SensorMib", &snmp.SensorMib})
snmp.EntityData.Leafs = types.NewOrderedMap()
snmp.EntityData.YListKeys = []string {}
return &(snmp.EntityData)
}
// Snmp_TrapServers
// List of trap hosts
type Snmp_TrapServers struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Trap server and port to which the trap is to be sent and statistics. The
// type is slice of Snmp_TrapServers_TrapServer.
TrapServer []*Snmp_TrapServers_TrapServer
}
func (trapServers *Snmp_TrapServers) GetEntityData() *types.CommonEntityData {
trapServers.EntityData.YFilter = trapServers.YFilter
trapServers.EntityData.YangName = "trap-servers"
trapServers.EntityData.BundleName = "cisco_ios_xr"
trapServers.EntityData.ParentYangName = "snmp"
trapServers.EntityData.SegmentPath = "trap-servers"
trapServers.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/" + trapServers.EntityData.SegmentPath
trapServers.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
trapServers.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
trapServers.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
trapServers.EntityData.Children = types.NewOrderedMap()
trapServers.EntityData.Children.Append("trap-server", types.YChild{"TrapServer", nil})
for i := range trapServers.TrapServer {
types.SetYListKey(trapServers.TrapServer[i], i)
trapServers.EntityData.Children.Append(types.GetSegmentPath(trapServers.TrapServer[i]), types.YChild{"TrapServer", trapServers.TrapServer[i]})
}
trapServers.EntityData.Leafs = types.NewOrderedMap()
trapServers.EntityData.YListKeys = []string {}
return &(trapServers.EntityData)
}
// Snmp_TrapServers_TrapServer
// Trap server and port to which the trap is to be
// sent and statistics
type Snmp_TrapServers_TrapServer struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Trap Host. The type is string.
TrapHost interface{}
// Trap port. The type is interface{} with range: 0..65535.
Port interface{}
// No. of trap packets in trapQ. The type is interface{} with range:
// 0..4294967295.
NumberOfPktsInTrapQ interface{}
// Maximum Queue length of trapQ. The type is interface{} with range:
// 0..4294967295.
MaxQLengthOfTrapQ interface{}
// No. of trap packets sent. The type is interface{} with range:
// 0..4294967295.
NumberOfPktsSent interface{}
// No. of trap packets dropped. The type is interface{} with range:
// 0..4294967295.
NumberOfPktsDropped interface{}
}
func (trapServer *Snmp_TrapServers_TrapServer) GetEntityData() *types.CommonEntityData {
trapServer.EntityData.YFilter = trapServer.YFilter
trapServer.EntityData.YangName = "trap-server"
trapServer.EntityData.BundleName = "cisco_ios_xr"
trapServer.EntityData.ParentYangName = "trap-servers"
trapServer.EntityData.SegmentPath = "trap-server" + types.AddNoKeyToken(trapServer)
trapServer.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/trap-servers/" + trapServer.EntityData.SegmentPath
trapServer.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
trapServer.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
trapServer.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
trapServer.EntityData.Children = types.NewOrderedMap()
trapServer.EntityData.Leafs = types.NewOrderedMap()
trapServer.EntityData.Leafs.Append("trap-host", types.YLeaf{"TrapHost", trapServer.TrapHost})
trapServer.EntityData.Leafs.Append("port", types.YLeaf{"Port", trapServer.Port})
trapServer.EntityData.Leafs.Append("number-of-pkts-in-trap-q", types.YLeaf{"NumberOfPktsInTrapQ", trapServer.NumberOfPktsInTrapQ})
trapServer.EntityData.Leafs.Append("max-q-length-of-trap-q", types.YLeaf{"MaxQLengthOfTrapQ", trapServer.MaxQLengthOfTrapQ})
trapServer.EntityData.Leafs.Append("number-of-pkts-sent", types.YLeaf{"NumberOfPktsSent", trapServer.NumberOfPktsSent})
trapServer.EntityData.Leafs.Append("number-of-pkts-dropped", types.YLeaf{"NumberOfPktsDropped", trapServer.NumberOfPktsDropped})
trapServer.EntityData.YListKeys = []string {}
return &(trapServer.EntityData)
}
// Snmp_Information
// SNMP operational information
type Snmp_Information struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// SNMP host information.
Hosts Snmp_Information_Hosts
// System up time.
SystemUpTime Snmp_Information_SystemUpTime
// SNMP request type summary .
NmsAddresses Snmp_Information_NmsAddresses
// SNMP engine ID.
EngineId Snmp_Information_EngineId
// SNMP rx queue statistics.
RxQueue Snmp_Information_RxQueue
// System name.
SystemName Snmp_Information_SystemName
// SNMP request type details .
RequestTypeDetail Snmp_Information_RequestTypeDetail
// Duplicate request status, count, time .
DuplicateDrop Snmp_Information_DuplicateDrop
// List of bulkstats transfer on the system.
BulkStatsTransfers Snmp_Information_BulkStatsTransfers
// SNMP trap OID.
TrapInfos Snmp_Information_TrapInfos
// OID list for poll PDU.
PollOids Snmp_Information_PollOids
// SNMP trap OID.
InfomDetails Snmp_Information_InfomDetails
// SNMP statistics.
Statistics Snmp_Information_Statistics
// Incoming queue details .
IncomingQueue Snmp_Information_IncomingQueue
// Context name, features name, topology name, instance.
ContextMapping Snmp_Information_ContextMapping
// SNMP trap OID.
TrapOids Snmp_Information_TrapOids
// SNMP overload statistics .
NmSpackets Snmp_Information_NmSpackets
// List of MIBS supported on the system.
Mibs Snmp_Information_Mibs
// SNMP statistics pdu .
SerialNumbers Snmp_Information_SerialNumbers
// NMS list for drop PDU.
DropNmsAddresses Snmp_Information_DropNmsAddresses
// SNMP view information.
Views Snmp_Information_Views
// System description.
SystemDescr Snmp_Information_SystemDescr
// List of table.
Tables Snmp_Information_Tables
// System object ID.
SystemOid Snmp_Information_SystemOid
// SNMP trap queue statistics.
TrapQueue Snmp_Information_TrapQueue
}
func (information *Snmp_Information) GetEntityData() *types.CommonEntityData {
information.EntityData.YFilter = information.YFilter
information.EntityData.YangName = "information"
information.EntityData.BundleName = "cisco_ios_xr"
information.EntityData.ParentYangName = "snmp"
information.EntityData.SegmentPath = "information"
information.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/" + information.EntityData.SegmentPath
information.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
information.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
information.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
information.EntityData.Children = types.NewOrderedMap()
information.EntityData.Children.Append("hosts", types.YChild{"Hosts", &information.Hosts})
information.EntityData.Children.Append("system-up-time", types.YChild{"SystemUpTime", &information.SystemUpTime})
information.EntityData.Children.Append("nms-addresses", types.YChild{"NmsAddresses", &information.NmsAddresses})
information.EntityData.Children.Append("engine-id", types.YChild{"EngineId", &information.EngineId})
information.EntityData.Children.Append("rx-queue", types.YChild{"RxQueue", &information.RxQueue})
information.EntityData.Children.Append("system-name", types.YChild{"SystemName", &information.SystemName})
information.EntityData.Children.Append("request-type-detail", types.YChild{"RequestTypeDetail", &information.RequestTypeDetail})
information.EntityData.Children.Append("duplicate-drop", types.YChild{"DuplicateDrop", &information.DuplicateDrop})
information.EntityData.Children.Append("bulk-stats-transfers", types.YChild{"BulkStatsTransfers", &information.BulkStatsTransfers})
information.EntityData.Children.Append("trap-infos", types.YChild{"TrapInfos", &information.TrapInfos})
information.EntityData.Children.Append("poll-oids", types.YChild{"PollOids", &information.PollOids})
information.EntityData.Children.Append("infom-details", types.YChild{"InfomDetails", &information.InfomDetails})
information.EntityData.Children.Append("statistics", types.YChild{"Statistics", &information.Statistics})
information.EntityData.Children.Append("incoming-queue", types.YChild{"IncomingQueue", &information.IncomingQueue})
information.EntityData.Children.Append("context-mapping", types.YChild{"ContextMapping", &information.ContextMapping})
information.EntityData.Children.Append("trap-oids", types.YChild{"TrapOids", &information.TrapOids})
information.EntityData.Children.Append("nm-spackets", types.YChild{"NmSpackets", &information.NmSpackets})
information.EntityData.Children.Append("mibs", types.YChild{"Mibs", &information.Mibs})
information.EntityData.Children.Append("serial-numbers", types.YChild{"SerialNumbers", &information.SerialNumbers})
information.EntityData.Children.Append("drop-nms-addresses", types.YChild{"DropNmsAddresses", &information.DropNmsAddresses})
information.EntityData.Children.Append("views", types.YChild{"Views", &information.Views})
information.EntityData.Children.Append("system-descr", types.YChild{"SystemDescr", &information.SystemDescr})
information.EntityData.Children.Append("tables", types.YChild{"Tables", &information.Tables})
information.EntityData.Children.Append("system-oid", types.YChild{"SystemOid", &information.SystemOid})
information.EntityData.Children.Append("trap-queue", types.YChild{"TrapQueue", &information.TrapQueue})
information.EntityData.Leafs = types.NewOrderedMap()
information.EntityData.YListKeys = []string {}
return &(information.EntityData)
}
// Snmp_Information_Hosts
// SNMP host information
type Snmp_Information_Hosts struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// SNMP target host name. The type is slice of Snmp_Information_Hosts_Host.
Host []*Snmp_Information_Hosts_Host
}
func (hosts *Snmp_Information_Hosts) GetEntityData() *types.CommonEntityData {
hosts.EntityData.YFilter = hosts.YFilter
hosts.EntityData.YangName = "hosts"
hosts.EntityData.BundleName = "cisco_ios_xr"
hosts.EntityData.ParentYangName = "information"
hosts.EntityData.SegmentPath = "hosts"
hosts.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/" + hosts.EntityData.SegmentPath
hosts.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
hosts.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
hosts.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
hosts.EntityData.Children = types.NewOrderedMap()
hosts.EntityData.Children.Append("host", types.YChild{"Host", nil})
for i := range hosts.Host {
hosts.EntityData.Children.Append(types.GetSegmentPath(hosts.Host[i]), types.YChild{"Host", hosts.Host[i]})
}
hosts.EntityData.Leafs = types.NewOrderedMap()
hosts.EntityData.YListKeys = []string {}
return &(hosts.EntityData)
}
// Snmp_Information_Hosts_Host
// SNMP target host name
type Snmp_Information_Hosts_Host struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. Group name. The type is string with pattern:
// [\w\-\.:,_@#%$\+=\|;]+.
Name interface{}
// Host name ,udp-port , user, security model and level. The type is slice of
// Snmp_Information_Hosts_Host_HostInformation.
HostInformation []*Snmp_Information_Hosts_Host_HostInformation
}
func (host *Snmp_Information_Hosts_Host) GetEntityData() *types.CommonEntityData {
host.EntityData.YFilter = host.YFilter
host.EntityData.YangName = "host"
host.EntityData.BundleName = "cisco_ios_xr"
host.EntityData.ParentYangName = "hosts"
host.EntityData.SegmentPath = "host" + types.AddKeyToken(host.Name, "name")
host.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/hosts/" + host.EntityData.SegmentPath
host.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
host.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
host.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
host.EntityData.Children = types.NewOrderedMap()
host.EntityData.Children.Append("host-information", types.YChild{"HostInformation", nil})
for i := range host.HostInformation {
host.EntityData.Children.Append(types.GetSegmentPath(host.HostInformation[i]), types.YChild{"HostInformation", host.HostInformation[i]})
}
host.EntityData.Leafs = types.NewOrderedMap()
host.EntityData.Leafs.Append("name", types.YLeaf{"Name", host.Name})
host.EntityData.YListKeys = []string {"Name"}
return &(host.EntityData)
}
// Snmp_Information_Hosts_Host_HostInformation
// Host name ,udp-port , user, security model
// and level
type Snmp_Information_Hosts_Host_HostInformation struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. SNMP host user. The type is string with pattern:
// [\w\-\.:,_@#%$\+=\|;]+.
User interface{}
// Transport type of address. The type is string.
SnmpTargetAddressTHost interface{}
// Target UDP port. The type is string.
SnmpTargetAddressPort interface{}
// Target host type (Inform or Trap). The type is string.
SnmpTargetAddresstype interface{}
// Security model. The type is string.
SnmpTargetParamsSecurityModel interface{}
// Security name. The type is string.
SnmpTargetParamsSecurityName interface{}
// Security level. The type is string.
SnmpTargetParamsSecurityLevel interface{}
}
func (hostInformation *Snmp_Information_Hosts_Host_HostInformation) GetEntityData() *types.CommonEntityData {
hostInformation.EntityData.YFilter = hostInformation.YFilter
hostInformation.EntityData.YangName = "host-information"
hostInformation.EntityData.BundleName = "cisco_ios_xr"
hostInformation.EntityData.ParentYangName = "host"
hostInformation.EntityData.SegmentPath = "host-information" + types.AddKeyToken(hostInformation.User, "user")
hostInformation.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/hosts/host/" + hostInformation.EntityData.SegmentPath
hostInformation.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
hostInformation.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
hostInformation.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
hostInformation.EntityData.Children = types.NewOrderedMap()
hostInformation.EntityData.Leafs = types.NewOrderedMap()
hostInformation.EntityData.Leafs.Append("user", types.YLeaf{"User", hostInformation.User})
hostInformation.EntityData.Leafs.Append("snmp-target-address-t-host", types.YLeaf{"SnmpTargetAddressTHost", hostInformation.SnmpTargetAddressTHost})
hostInformation.EntityData.Leafs.Append("snmp-target-address-port", types.YLeaf{"SnmpTargetAddressPort", hostInformation.SnmpTargetAddressPort})
hostInformation.EntityData.Leafs.Append("snmp-target-addresstype", types.YLeaf{"SnmpTargetAddresstype", hostInformation.SnmpTargetAddresstype})
hostInformation.EntityData.Leafs.Append("snmp-target-params-security-model", types.YLeaf{"SnmpTargetParamsSecurityModel", hostInformation.SnmpTargetParamsSecurityModel})
hostInformation.EntityData.Leafs.Append("snmp-target-params-security-name", types.YLeaf{"SnmpTargetParamsSecurityName", hostInformation.SnmpTargetParamsSecurityName})
hostInformation.EntityData.Leafs.Append("snmp-target-params-security-level", types.YLeaf{"SnmpTargetParamsSecurityLevel", hostInformation.SnmpTargetParamsSecurityLevel})
hostInformation.EntityData.YListKeys = []string {"User"}
return &(hostInformation.EntityData)
}
// Snmp_Information_SystemUpTime
// System up time
type Snmp_Information_SystemUpTime struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// sysUpTime 1.3.6.1.2.1.1.3. The type is string.
SystemUpTimeEdm interface{}
}
func (systemUpTime *Snmp_Information_SystemUpTime) GetEntityData() *types.CommonEntityData {
systemUpTime.EntityData.YFilter = systemUpTime.YFilter
systemUpTime.EntityData.YangName = "system-up-time"
systemUpTime.EntityData.BundleName = "cisco_ios_xr"
systemUpTime.EntityData.ParentYangName = "information"
systemUpTime.EntityData.SegmentPath = "system-up-time"
systemUpTime.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/" + systemUpTime.EntityData.SegmentPath
systemUpTime.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
systemUpTime.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
systemUpTime.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
systemUpTime.EntityData.Children = types.NewOrderedMap()
systemUpTime.EntityData.Leafs = types.NewOrderedMap()
systemUpTime.EntityData.Leafs.Append("system-up-time-edm", types.YLeaf{"SystemUpTimeEdm", systemUpTime.SystemUpTimeEdm})
systemUpTime.EntityData.YListKeys = []string {}
return &(systemUpTime.EntityData)
}
// Snmp_Information_NmsAddresses
// SNMP request type summary
type Snmp_Information_NmsAddresses struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// NMS address. The type is slice of Snmp_Information_NmsAddresses_NmsAddress.
NmsAddress []*Snmp_Information_NmsAddresses_NmsAddress
}
func (nmsAddresses *Snmp_Information_NmsAddresses) GetEntityData() *types.CommonEntityData {
nmsAddresses.EntityData.YFilter = nmsAddresses.YFilter
nmsAddresses.EntityData.YangName = "nms-addresses"
nmsAddresses.EntityData.BundleName = "cisco_ios_xr"
nmsAddresses.EntityData.ParentYangName = "information"
nmsAddresses.EntityData.SegmentPath = "nms-addresses"
nmsAddresses.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/" + nmsAddresses.EntityData.SegmentPath
nmsAddresses.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nmsAddresses.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nmsAddresses.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nmsAddresses.EntityData.Children = types.NewOrderedMap()
nmsAddresses.EntityData.Children.Append("nms-address", types.YChild{"NmsAddress", nil})
for i := range nmsAddresses.NmsAddress {
nmsAddresses.EntityData.Children.Append(types.GetSegmentPath(nmsAddresses.NmsAddress[i]), types.YChild{"NmsAddress", nmsAddresses.NmsAddress[i]})
}
nmsAddresses.EntityData.Leafs = types.NewOrderedMap()
nmsAddresses.EntityData.YListKeys = []string {}
return &(nmsAddresses.EntityData)
}
// Snmp_Information_NmsAddresses_NmsAddress
// NMS address
type Snmp_Information_NmsAddresses_NmsAddress struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. NMS address. The type is string with pattern:
// [\w\-\.:,_@#%$\+=\|;]+.
NmsAddr interface{}
// NMS address of server. The type is string.
NmsAddress interface{}
// Get Request Count. The type is interface{} with range: 0..4294967295.
GetRequestCount interface{}
// Getnext Request Count. The type is interface{} with range: 0..4294967295.
GetnextRequestCount interface{}
// Getbulk Request Count. The type is interface{} with range: 0..4294967295.
GetbulkRequestCount interface{}
// Set Request Count. The type is interface{} with range: 0..4294967295.
SetRequestCount interface{}
// Test Request Count. The type is interface{} with range: 0..4294967295.
TestRequestCount interface{}
}
func (nmsAddress *Snmp_Information_NmsAddresses_NmsAddress) GetEntityData() *types.CommonEntityData {
nmsAddress.EntityData.YFilter = nmsAddress.YFilter
nmsAddress.EntityData.YangName = "nms-address"
nmsAddress.EntityData.BundleName = "cisco_ios_xr"
nmsAddress.EntityData.ParentYangName = "nms-addresses"
nmsAddress.EntityData.SegmentPath = "nms-address" + types.AddKeyToken(nmsAddress.NmsAddr, "nms-addr")
nmsAddress.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/nms-addresses/" + nmsAddress.EntityData.SegmentPath
nmsAddress.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nmsAddress.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nmsAddress.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nmsAddress.EntityData.Children = types.NewOrderedMap()
nmsAddress.EntityData.Leafs = types.NewOrderedMap()
nmsAddress.EntityData.Leafs.Append("nms-addr", types.YLeaf{"NmsAddr", nmsAddress.NmsAddr})
nmsAddress.EntityData.Leafs.Append("nms-address", types.YLeaf{"NmsAddress", nmsAddress.NmsAddress})
nmsAddress.EntityData.Leafs.Append("get-request-count", types.YLeaf{"GetRequestCount", nmsAddress.GetRequestCount})
nmsAddress.EntityData.Leafs.Append("getnext-request-count", types.YLeaf{"GetnextRequestCount", nmsAddress.GetnextRequestCount})
nmsAddress.EntityData.Leafs.Append("getbulk-request-count", types.YLeaf{"GetbulkRequestCount", nmsAddress.GetbulkRequestCount})
nmsAddress.EntityData.Leafs.Append("set-request-count", types.YLeaf{"SetRequestCount", nmsAddress.SetRequestCount})
nmsAddress.EntityData.Leafs.Append("test-request-count", types.YLeaf{"TestRequestCount", nmsAddress.TestRequestCount})
nmsAddress.EntityData.YListKeys = []string {"NmsAddr"}
return &(nmsAddress.EntityData)
}
// Snmp_Information_EngineId
// SNMP engine ID
type Snmp_Information_EngineId struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// SNMPv3 engineID. The type is string.
EngineId interface{}
}
func (engineId *Snmp_Information_EngineId) GetEntityData() *types.CommonEntityData {
engineId.EntityData.YFilter = engineId.YFilter
engineId.EntityData.YangName = "engine-id"
engineId.EntityData.BundleName = "cisco_ios_xr"
engineId.EntityData.ParentYangName = "information"
engineId.EntityData.SegmentPath = "engine-id"
engineId.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/" + engineId.EntityData.SegmentPath
engineId.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
engineId.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
engineId.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
engineId.EntityData.Children = types.NewOrderedMap()
engineId.EntityData.Leafs = types.NewOrderedMap()
engineId.EntityData.Leafs.Append("engine-id", types.YLeaf{"EngineId", engineId.EngineId})
engineId.EntityData.YListKeys = []string {}
return &(engineId.EntityData)
}
// Snmp_Information_RxQueue
// SNMP rx queue statistics
type Snmp_Information_RxQueue struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// qlen. The type is interface{} with range: 0..4294967295.
Qlen interface{}
// in min. The type is interface{} with range: 0..4294967295.
InMin interface{}
// in avg. The type is interface{} with range: 0..4294967295.
InAvg interface{}
// in max. The type is interface{} with range: 0..4294967295.
InMax interface{}
// pend min. The type is interface{} with range: 0..4294967295.
PendMin interface{}
// pend avg. The type is interface{} with range: 0..4294967295.
PendAvg interface{}
// pend max. The type is interface{} with range: 0..4294967295.
PendMax interface{}
// incoming q. The type is slice of Snmp_Information_RxQueue_IncomingQ.
IncomingQ []*Snmp_Information_RxQueue_IncomingQ
// pending q. The type is slice of Snmp_Information_RxQueue_PendingQ.
PendingQ []*Snmp_Information_RxQueue_PendingQ
}
func (rxQueue *Snmp_Information_RxQueue) GetEntityData() *types.CommonEntityData {
rxQueue.EntityData.YFilter = rxQueue.YFilter
rxQueue.EntityData.YangName = "rx-queue"
rxQueue.EntityData.BundleName = "cisco_ios_xr"
rxQueue.EntityData.ParentYangName = "information"
rxQueue.EntityData.SegmentPath = "rx-queue"
rxQueue.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/" + rxQueue.EntityData.SegmentPath
rxQueue.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
rxQueue.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
rxQueue.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
rxQueue.EntityData.Children = types.NewOrderedMap()
rxQueue.EntityData.Children.Append("incoming-q", types.YChild{"IncomingQ", nil})
for i := range rxQueue.IncomingQ {
types.SetYListKey(rxQueue.IncomingQ[i], i)
rxQueue.EntityData.Children.Append(types.GetSegmentPath(rxQueue.IncomingQ[i]), types.YChild{"IncomingQ", rxQueue.IncomingQ[i]})
}
rxQueue.EntityData.Children.Append("pending-q", types.YChild{"PendingQ", nil})
for i := range rxQueue.PendingQ {
types.SetYListKey(rxQueue.PendingQ[i], i)
rxQueue.EntityData.Children.Append(types.GetSegmentPath(rxQueue.PendingQ[i]), types.YChild{"PendingQ", rxQueue.PendingQ[i]})
}
rxQueue.EntityData.Leafs = types.NewOrderedMap()
rxQueue.EntityData.Leafs.Append("qlen", types.YLeaf{"Qlen", rxQueue.Qlen})
rxQueue.EntityData.Leafs.Append("in-min", types.YLeaf{"InMin", rxQueue.InMin})
rxQueue.EntityData.Leafs.Append("in-avg", types.YLeaf{"InAvg", rxQueue.InAvg})
rxQueue.EntityData.Leafs.Append("in-max", types.YLeaf{"InMax", rxQueue.InMax})
rxQueue.EntityData.Leafs.Append("pend-min", types.YLeaf{"PendMin", rxQueue.PendMin})
rxQueue.EntityData.Leafs.Append("pend-avg", types.YLeaf{"PendAvg", rxQueue.PendAvg})
rxQueue.EntityData.Leafs.Append("pend-max", types.YLeaf{"PendMax", rxQueue.PendMax})
rxQueue.EntityData.YListKeys = []string {}
return &(rxQueue.EntityData)
}
// Snmp_Information_RxQueue_IncomingQ
// incoming q
type Snmp_Information_RxQueue_IncomingQ struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// min. The type is interface{} with range: 0..4294967295.
Min interface{}
// avg. The type is interface{} with range: 0..4294967295.
Avg interface{}
// max. The type is interface{} with range: 0..4294967295.
Max interface{}
}
func (incomingQ *Snmp_Information_RxQueue_IncomingQ) GetEntityData() *types.CommonEntityData {
incomingQ.EntityData.YFilter = incomingQ.YFilter
incomingQ.EntityData.YangName = "incoming-q"
incomingQ.EntityData.BundleName = "cisco_ios_xr"
incomingQ.EntityData.ParentYangName = "rx-queue"
incomingQ.EntityData.SegmentPath = "incoming-q" + types.AddNoKeyToken(incomingQ)
incomingQ.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/rx-queue/" + incomingQ.EntityData.SegmentPath
incomingQ.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
incomingQ.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
incomingQ.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
incomingQ.EntityData.Children = types.NewOrderedMap()
incomingQ.EntityData.Leafs = types.NewOrderedMap()
incomingQ.EntityData.Leafs.Append("min", types.YLeaf{"Min", incomingQ.Min})
incomingQ.EntityData.Leafs.Append("avg", types.YLeaf{"Avg", incomingQ.Avg})
incomingQ.EntityData.Leafs.Append("max", types.YLeaf{"Max", incomingQ.Max})
incomingQ.EntityData.YListKeys = []string {}
return &(incomingQ.EntityData)
}
// Snmp_Information_RxQueue_PendingQ
// pending q
type Snmp_Information_RxQueue_PendingQ struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// min. The type is interface{} with range: 0..4294967295.
Min interface{}
// avg. The type is interface{} with range: 0..4294967295.
Avg interface{}
// max. The type is interface{} with range: 0..4294967295.
Max interface{}
}
func (pendingQ *Snmp_Information_RxQueue_PendingQ) GetEntityData() *types.CommonEntityData {
pendingQ.EntityData.YFilter = pendingQ.YFilter
pendingQ.EntityData.YangName = "pending-q"
pendingQ.EntityData.BundleName = "cisco_ios_xr"
pendingQ.EntityData.ParentYangName = "rx-queue"
pendingQ.EntityData.SegmentPath = "pending-q" + types.AddNoKeyToken(pendingQ)
pendingQ.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/rx-queue/" + pendingQ.EntityData.SegmentPath
pendingQ.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
pendingQ.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
pendingQ.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
pendingQ.EntityData.Children = types.NewOrderedMap()
pendingQ.EntityData.Leafs = types.NewOrderedMap()
pendingQ.EntityData.Leafs.Append("min", types.YLeaf{"Min", pendingQ.Min})
pendingQ.EntityData.Leafs.Append("avg", types.YLeaf{"Avg", pendingQ.Avg})
pendingQ.EntityData.Leafs.Append("max", types.YLeaf{"Max", pendingQ.Max})
pendingQ.EntityData.YListKeys = []string {}
return &(pendingQ.EntityData)
}
// Snmp_Information_SystemName
// System name
type Snmp_Information_SystemName struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// sysName 1.3.6.1.2.1.1.5. The type is string.
SystemName interface{}
}
func (systemName *Snmp_Information_SystemName) GetEntityData() *types.CommonEntityData {
systemName.EntityData.YFilter = systemName.YFilter
systemName.EntityData.YangName = "system-name"
systemName.EntityData.BundleName = "cisco_ios_xr"
systemName.EntityData.ParentYangName = "information"
systemName.EntityData.SegmentPath = "system-name"
systemName.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/" + systemName.EntityData.SegmentPath
systemName.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
systemName.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
systemName.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
systemName.EntityData.Children = types.NewOrderedMap()
systemName.EntityData.Leafs = types.NewOrderedMap()
systemName.EntityData.Leafs.Append("system-name", types.YLeaf{"SystemName", systemName.SystemName})
systemName.EntityData.YListKeys = []string {}
return &(systemName.EntityData)
}
// Snmp_Information_RequestTypeDetail
// SNMP request type details
type Snmp_Information_RequestTypeDetail struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// snmp request type details .
NmsAddresses Snmp_Information_RequestTypeDetail_NmsAddresses
}
func (requestTypeDetail *Snmp_Information_RequestTypeDetail) GetEntityData() *types.CommonEntityData {
requestTypeDetail.EntityData.YFilter = requestTypeDetail.YFilter
requestTypeDetail.EntityData.YangName = "request-type-detail"
requestTypeDetail.EntityData.BundleName = "cisco_ios_xr"
requestTypeDetail.EntityData.ParentYangName = "information"
requestTypeDetail.EntityData.SegmentPath = "request-type-detail"
requestTypeDetail.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/" + requestTypeDetail.EntityData.SegmentPath
requestTypeDetail.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
requestTypeDetail.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
requestTypeDetail.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
requestTypeDetail.EntityData.Children = types.NewOrderedMap()
requestTypeDetail.EntityData.Children.Append("nms-addresses", types.YChild{"NmsAddresses", &requestTypeDetail.NmsAddresses})
requestTypeDetail.EntityData.Leafs = types.NewOrderedMap()
requestTypeDetail.EntityData.YListKeys = []string {}
return &(requestTypeDetail.EntityData)
}
// Snmp_Information_RequestTypeDetail_NmsAddresses
// snmp request type details
type Snmp_Information_RequestTypeDetail_NmsAddresses struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// NMS address. The type is slice of
// Snmp_Information_RequestTypeDetail_NmsAddresses_NmsAddress.
NmsAddress []*Snmp_Information_RequestTypeDetail_NmsAddresses_NmsAddress
}
func (nmsAddresses *Snmp_Information_RequestTypeDetail_NmsAddresses) GetEntityData() *types.CommonEntityData {
nmsAddresses.EntityData.YFilter = nmsAddresses.YFilter
nmsAddresses.EntityData.YangName = "nms-addresses"
nmsAddresses.EntityData.BundleName = "cisco_ios_xr"
nmsAddresses.EntityData.ParentYangName = "request-type-detail"
nmsAddresses.EntityData.SegmentPath = "nms-addresses"
nmsAddresses.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/request-type-detail/" + nmsAddresses.EntityData.SegmentPath
nmsAddresses.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nmsAddresses.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nmsAddresses.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nmsAddresses.EntityData.Children = types.NewOrderedMap()
nmsAddresses.EntityData.Children.Append("nms-address", types.YChild{"NmsAddress", nil})
for i := range nmsAddresses.NmsAddress {
nmsAddresses.EntityData.Children.Append(types.GetSegmentPath(nmsAddresses.NmsAddress[i]), types.YChild{"NmsAddress", nmsAddresses.NmsAddress[i]})
}
nmsAddresses.EntityData.Leafs = types.NewOrderedMap()
nmsAddresses.EntityData.YListKeys = []string {}
return &(nmsAddresses.EntityData)
}
// Snmp_Information_RequestTypeDetail_NmsAddresses_NmsAddress
// NMS address
type Snmp_Information_RequestTypeDetail_NmsAddresses_NmsAddress struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. NMS address. The type is string with pattern:
// [\w\-\.:,_@#%$\+=\|;]+.
NmsAddr interface{}
// Total request count for each managment station or client. The type is
// interface{} with range: 0..4294967295.
TotalCount interface{}
// Processing agent request count for each client for particluar managment
// station. The type is interface{} with range: 0..4294967295.
AgentRequestCount interface{}
// Processing interfce request count for each client for particluar managment
// station. The type is interface{} with range: 0..4294967295.
InterfaceRequestCount interface{}
// Processing entity request count for each client for particluar managment
// station. The type is interface{} with range: 0..4294967295.
EntityRequestCount interface{}
// Processing route request count for each client for particluar Managment
// station. The type is interface{} with range: 0..4294967295.
RouteRequestCount interface{}
// Processing infra request count for each client for particluar Managment
// station. The type is interface{} with range: 0..4294967295.
InfraRequestCount interface{}
}
func (nmsAddress *Snmp_Information_RequestTypeDetail_NmsAddresses_NmsAddress) GetEntityData() *types.CommonEntityData {
nmsAddress.EntityData.YFilter = nmsAddress.YFilter
nmsAddress.EntityData.YangName = "nms-address"
nmsAddress.EntityData.BundleName = "cisco_ios_xr"
nmsAddress.EntityData.ParentYangName = "nms-addresses"
nmsAddress.EntityData.SegmentPath = "nms-address" + types.AddKeyToken(nmsAddress.NmsAddr, "nms-addr")
nmsAddress.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/request-type-detail/nms-addresses/" + nmsAddress.EntityData.SegmentPath
nmsAddress.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
nmsAddress.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
nmsAddress.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
nmsAddress.EntityData.Children = types.NewOrderedMap()
nmsAddress.EntityData.Leafs = types.NewOrderedMap()
nmsAddress.EntityData.Leafs.Append("nms-addr", types.YLeaf{"NmsAddr", nmsAddress.NmsAddr})
nmsAddress.EntityData.Leafs.Append("total-count", types.YLeaf{"TotalCount", nmsAddress.TotalCount})
nmsAddress.EntityData.Leafs.Append("agent-request-count", types.YLeaf{"AgentRequestCount", nmsAddress.AgentRequestCount})
nmsAddress.EntityData.Leafs.Append("interface-request-count", types.YLeaf{"InterfaceRequestCount", nmsAddress.InterfaceRequestCount})
nmsAddress.EntityData.Leafs.Append("entity-request-count", types.YLeaf{"EntityRequestCount", nmsAddress.EntityRequestCount})
nmsAddress.EntityData.Leafs.Append("route-request-count", types.YLeaf{"RouteRequestCount", nmsAddress.RouteRequestCount})
nmsAddress.EntityData.Leafs.Append("infra-request-count", types.YLeaf{"InfraRequestCount", nmsAddress.InfraRequestCount})
nmsAddress.EntityData.YListKeys = []string {"NmsAddr"}
return &(nmsAddress.EntityData)
}
// Snmp_Information_DuplicateDrop
// Duplicate request status, count, time
type Snmp_Information_DuplicateDrop struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// Duplicate requests drop feature status. The type is DupReqDropStatus.
DuplicateRequestStatus interface{}
// Duplicate request drop feature last enable disable time (Day Mon Date
// HH:MM:SS). The type is string.
LastStatusChangeTime interface{}
// Configured Duplicate Drop feature Timeout. The type is interface{} with
// range: 0..4294967295.
DuplicateDropConfiguredTimeout interface{}
// Number of duplicate SNMP requests are dropped. The type is interface{} with
// range: 0..4294967295.
DuplicateDroppedRequests interface{}
// Number of Retry SNMP requests are Processed. The type is interface{} with
// range: 0..4294967295.
RetryProcessedRequests interface{}
// Duplicate request drop feature first enable time (Day Mon Date HH:MM:SS).
// The type is string.
FirstEnableTime interface{}
// Number of duplicate SNMP requests dropped, from the last enable time. The
// type is interface{} with range: 0..4294967295.
LatestDuplicateDroppedRequests interface{}
// Number of retry SNMP requests processed, from the last enable time. The
// type is interface{} with range: 0..4294967295.
LatestRetryProcessedRequests interface{}
// Duplicate request drop feature last enable time(Day Mon Date HH:MM:SS). The
// type is string.
DuplicateRequestLatestEnableTime interface{}
// Number of times duplicate request drop feature is enabled. The type is
// interface{} with range: 0..4294967295.
DuplicateDropEnableCount interface{}
// Number of times duplicate request drop feature is disabled. The type is
// interface{} with range: 0..4294967295.
DuplicateDropDisableCount interface{}
}
func (duplicateDrop *Snmp_Information_DuplicateDrop) GetEntityData() *types.CommonEntityData {
duplicateDrop.EntityData.YFilter = duplicateDrop.YFilter
duplicateDrop.EntityData.YangName = "duplicate-drop"
duplicateDrop.EntityData.BundleName = "cisco_ios_xr"
duplicateDrop.EntityData.ParentYangName = "information"
duplicateDrop.EntityData.SegmentPath = "duplicate-drop"
duplicateDrop.EntityData.AbsolutePath = "Cisco-IOS-XR-snmp-agent-oper:snmp/information/" + duplicateDrop.EntityData.SegmentPath
duplicateDrop.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
duplicateDrop.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
duplicateDrop.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
duplicateDrop.EntityData.Children = types.NewOrderedMap()
duplicateDrop.EntityData.Leafs = types.NewOrderedMap()
duplicateDrop.EntityData.Leafs.Append("duplicate-request-status", types.YLeaf{"DuplicateRequestStatus", duplicateDrop.DuplicateRequestStatus})
duplicateDrop.EntityData.Leafs.Append("last-status-change-time", types.YLeaf{"LastStatusChangeTime", duplicateDrop.LastStatusChangeTime})
duplicateDrop.EntityData.Leafs.Append("duplicate-drop-configured-timeout", types.YLeaf{"DuplicateDropConfiguredTimeout", duplicateDrop.DuplicateDropConfiguredTimeout})
duplicateDrop.EntityData.Leafs.Append("duplicate-dropped-requests", types.YLeaf{"DuplicateDroppedRequests", duplicateDrop.DuplicateDroppedRequests})
duplicateDrop.EntityData.Leafs.Append("retry-processed-requests", types.YLeaf{"RetryProcessedRequests", duplicateDrop.RetryProcessedRequests})
duplicateDrop.EntityData.Leafs.Append("first-enable-time", types.YLeaf{"FirstEnableTime", duplicateDrop.FirstEnableTime})
duplicateDrop.EntityData.Leafs.Append("latest-duplicate-dropped-requests", types.YLeaf{"LatestDuplicateDroppedRequests", duplicateDrop.LatestDuplicateDroppedRequests})
duplicateDrop.EntityData.Leafs.Append("latest-retry-processed-requests", types.YLeaf{"LatestRetryProcessedRequests", duplicateDrop.LatestRetryProcessedRequests})
duplicateDrop.EntityData.Leafs.Append("duplicate-request-latest-enable-time", types.YLeaf{"DuplicateRequestLatestEnableTime", duplicateDrop.DuplicateRequestLatestEnableTime})
duplicateDrop.EntityData.Leafs.Append("duplicate-drop-enable-count", types.YLeaf{"DuplicateDropEnableCount", duplicateDrop.DuplicateDropEnableCount})
duplicateDrop.EntityData.Leafs.Append("duplicate-drop-disable-count", types.YLeaf{"DuplicateDropDisableCount", duplicateDrop.DuplicateDropDisableCount})
duplicateDrop.EntityData.YListKeys = []string {}