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
/
sysadmin_fpd_infra_cli_fpdserv_ctrace.go
197 lines (161 loc) · 8.42 KB
/
sysadmin_fpd_infra_cli_fpdserv_ctrace.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
// This module contains definitions
// for the Calvados model objects.
//
// Copyright (c) 2012-2018 by Cisco Systems, Inc.
// All rights reserved.
package sysadmin_fpd_infra_cli_fpdserv_ctrace
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 sysadmin_fpd_infra_cli_fpdserv_ctrace"))
ydk.RegisterEntity("{http://www.cisco.com/ns/yang/Cisco-IOS-XR-sysadmin-fpd-infra-cli-fpdserv-ctrace fpdserv}", reflect.TypeOf(Fpdserv{}))
ydk.RegisterEntity("Cisco-IOS-XR-sysadmin-fpd-infra-cli-fpdserv-ctrace:fpdserv", reflect.TypeOf(Fpdserv{}))
}
// Fpdserv
type Fpdserv struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
// show traceable processes. The type is slice of Fpdserv_Trace.
Trace []*Fpdserv_Trace
}
func (fpdserv *Fpdserv) GetEntityData() *types.CommonEntityData {
fpdserv.EntityData.YFilter = fpdserv.YFilter
fpdserv.EntityData.YangName = "fpdserv"
fpdserv.EntityData.BundleName = "cisco_ios_xr"
fpdserv.EntityData.ParentYangName = "Cisco-IOS-XR-sysadmin-fpd-infra-cli-fpdserv-ctrace"
fpdserv.EntityData.SegmentPath = "Cisco-IOS-XR-sysadmin-fpd-infra-cli-fpdserv-ctrace:fpdserv"
fpdserv.EntityData.AbsolutePath = fpdserv.EntityData.SegmentPath
fpdserv.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
fpdserv.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
fpdserv.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
fpdserv.EntityData.Children = types.NewOrderedMap()
fpdserv.EntityData.Children.Append("trace", types.YChild{"Trace", nil})
for i := range fpdserv.Trace {
fpdserv.EntityData.Children.Append(types.GetSegmentPath(fpdserv.Trace[i]), types.YChild{"Trace", fpdserv.Trace[i]})
}
fpdserv.EntityData.Leafs = types.NewOrderedMap()
fpdserv.EntityData.YListKeys = []string {}
return &(fpdserv.EntityData)
}
// Fpdserv_Trace
// show traceable processes
type Fpdserv_Trace struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is string.
Buffer interface{}
// The type is slice of Fpdserv_Trace_Location.
Location []*Fpdserv_Trace_Location
}
func (trace *Fpdserv_Trace) GetEntityData() *types.CommonEntityData {
trace.EntityData.YFilter = trace.YFilter
trace.EntityData.YangName = "trace"
trace.EntityData.BundleName = "cisco_ios_xr"
trace.EntityData.ParentYangName = "fpdserv"
trace.EntityData.SegmentPath = "trace" + types.AddKeyToken(trace.Buffer, "buffer")
trace.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-fpd-infra-cli-fpdserv-ctrace:fpdserv/" + trace.EntityData.SegmentPath
trace.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
trace.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
trace.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
trace.EntityData.Children = types.NewOrderedMap()
trace.EntityData.Children.Append("location", types.YChild{"Location", nil})
for i := range trace.Location {
trace.EntityData.Children.Append(types.GetSegmentPath(trace.Location[i]), types.YChild{"Location", trace.Location[i]})
}
trace.EntityData.Leafs = types.NewOrderedMap()
trace.EntityData.Leafs.Append("buffer", types.YLeaf{"Buffer", trace.Buffer})
trace.EntityData.YListKeys = []string {"Buffer"}
return &(trace.EntityData)
}
// Fpdserv_Trace_Location
type Fpdserv_Trace_Location struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is string.
LocationName interface{}
// The type is slice of Fpdserv_Trace_Location_AllOptions.
AllOptions []*Fpdserv_Trace_Location_AllOptions
}
func (location *Fpdserv_Trace_Location) GetEntityData() *types.CommonEntityData {
location.EntityData.YFilter = location.YFilter
location.EntityData.YangName = "location"
location.EntityData.BundleName = "cisco_ios_xr"
location.EntityData.ParentYangName = "trace"
location.EntityData.SegmentPath = "location" + types.AddKeyToken(location.LocationName, "location_name")
location.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-fpd-infra-cli-fpdserv-ctrace:fpdserv/trace/" + location.EntityData.SegmentPath
location.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
location.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
location.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
location.EntityData.Children = types.NewOrderedMap()
location.EntityData.Children.Append("all-options", types.YChild{"AllOptions", nil})
for i := range location.AllOptions {
location.EntityData.Children.Append(types.GetSegmentPath(location.AllOptions[i]), types.YChild{"AllOptions", location.AllOptions[i]})
}
location.EntityData.Leafs = types.NewOrderedMap()
location.EntityData.Leafs.Append("location_name", types.YLeaf{"LocationName", location.LocationName})
location.EntityData.YListKeys = []string {"LocationName"}
return &(location.EntityData)
}
// Fpdserv_Trace_Location_AllOptions
type Fpdserv_Trace_Location_AllOptions struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// This attribute is a key. The type is string.
Option interface{}
// The type is slice of Fpdserv_Trace_Location_AllOptions_TraceBlocks.
TraceBlocks []*Fpdserv_Trace_Location_AllOptions_TraceBlocks
}
func (allOptions *Fpdserv_Trace_Location_AllOptions) GetEntityData() *types.CommonEntityData {
allOptions.EntityData.YFilter = allOptions.YFilter
allOptions.EntityData.YangName = "all-options"
allOptions.EntityData.BundleName = "cisco_ios_xr"
allOptions.EntityData.ParentYangName = "location"
allOptions.EntityData.SegmentPath = "all-options" + types.AddKeyToken(allOptions.Option, "option")
allOptions.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-fpd-infra-cli-fpdserv-ctrace:fpdserv/trace/location/" + allOptions.EntityData.SegmentPath
allOptions.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
allOptions.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
allOptions.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
allOptions.EntityData.Children = types.NewOrderedMap()
allOptions.EntityData.Children.Append("trace-blocks", types.YChild{"TraceBlocks", nil})
for i := range allOptions.TraceBlocks {
types.SetYListKey(allOptions.TraceBlocks[i], i)
allOptions.EntityData.Children.Append(types.GetSegmentPath(allOptions.TraceBlocks[i]), types.YChild{"TraceBlocks", allOptions.TraceBlocks[i]})
}
allOptions.EntityData.Leafs = types.NewOrderedMap()
allOptions.EntityData.Leafs.Append("option", types.YLeaf{"Option", allOptions.Option})
allOptions.EntityData.YListKeys = []string {"Option"}
return &(allOptions.EntityData)
}
// Fpdserv_Trace_Location_AllOptions_TraceBlocks
type Fpdserv_Trace_Location_AllOptions_TraceBlocks struct {
EntityData types.CommonEntityData
YFilter yfilter.YFilter
YListKey string
// Trace output block. The type is string.
Data interface{}
}
func (traceBlocks *Fpdserv_Trace_Location_AllOptions_TraceBlocks) GetEntityData() *types.CommonEntityData {
traceBlocks.EntityData.YFilter = traceBlocks.YFilter
traceBlocks.EntityData.YangName = "trace-blocks"
traceBlocks.EntityData.BundleName = "cisco_ios_xr"
traceBlocks.EntityData.ParentYangName = "all-options"
traceBlocks.EntityData.SegmentPath = "trace-blocks" + types.AddNoKeyToken(traceBlocks)
traceBlocks.EntityData.AbsolutePath = "Cisco-IOS-XR-sysadmin-fpd-infra-cli-fpdserv-ctrace:fpdserv/trace/location/all-options/" + traceBlocks.EntityData.SegmentPath
traceBlocks.EntityData.CapabilitiesTable = cisco_ios_xr.GetCapabilities()
traceBlocks.EntityData.NamespaceTable = cisco_ios_xr.GetNamespaces()
traceBlocks.EntityData.BundleYangModelsLocation = cisco_ios_xr.GetModelsPath()
traceBlocks.EntityData.Children = types.NewOrderedMap()
traceBlocks.EntityData.Leafs = types.NewOrderedMap()
traceBlocks.EntityData.Leafs.Append("data", types.YLeaf{"Data", traceBlocks.Data})
traceBlocks.EntityData.YListKeys = []string {}
return &(traceBlocks.EntityData)
}