Merge "Readme update"
[govpp.git] / examples / bin_api / uflow / uflow.go
1 // Package uflow represents the VPP binary API of the 'uflow' VPP module.
2 // DO NOT EDIT. Generated from 'bin_api/uflow.api.json' on Thu, 04 May 2017 13:11:57 CEST.
3 package uflow
4
5 import "git.fd.io/govpp.git/api"
6
7 // VlApiVersion contains version of the API.
8 const VlAPIVersion = 0x85909300
9
10 // UflowIdx represents the VPP binary API data type 'uflow_idx'.
11 // Generated from 'bin_api/uflow.api.json', line 3:
12 //
13 //        ["uflow_idx",
14 //            ["u32", "vslot"],
15 //            ["u32", "md"],
16 //            ["u32", "sid"],
17 //            {"crc" : "0x3310d92c"}
18 //        ],
19 //
20 type UflowIdx struct {
21         Vslot uint32
22         Md    uint32
23         Sid   uint32
24 }
25
26 func (*UflowIdx) GetTypeName() string {
27         return "uflow_idx"
28 }
29 func (*UflowIdx) GetCrcString() string {
30         return "3310d92c"
31 }
32
33 // UflowEnt represents the VPP binary API data type 'uflow_ent'.
34 // Generated from 'bin_api/uflow.api.json', line 9:
35 //
36 //        ["uflow_ent",
37 //            ["u32", "cm_dpidx"],
38 //            ["u32", "vbundle_dpidx"],
39 //            {"crc" : "0x50fa3f43"}
40 //        ],
41 //
42 type UflowEnt struct {
43         CmDpidx      uint32
44         VbundleDpidx uint32
45 }
46
47 func (*UflowEnt) GetTypeName() string {
48         return "uflow_ent"
49 }
50 func (*UflowEnt) GetCrcString() string {
51         return "50fa3f43"
52 }
53
54 // UflowRow represents the VPP binary API data type 'uflow_row'.
55 // Generated from 'bin_api/uflow.api.json', line 14:
56 //
57 //        ["uflow_row",
58 //            ["vl_api_uflow_idx_t", "idx"],
59 //            ["vl_api_uflow_ent_t", "ent"],
60 //            {"crc" : "0x3b73b975"}
61 //        ]
62 //
63 type UflowRow struct {
64         Idx UflowIdx
65         Ent UflowEnt
66 }
67
68 func (*UflowRow) GetTypeName() string {
69         return "uflow_row"
70 }
71 func (*UflowRow) GetCrcString() string {
72         return "3b73b975"
73 }
74
75 // UflowEnableDisable represents the VPP binary API message 'uflow_enable_disable'.
76 // Generated from 'bin_api/uflow.api.json', line 21:
77 //
78 //        ["uflow_enable_disable",
79 //            ["u16", "_vl_msg_id"],
80 //            ["u32", "client_index"],
81 //            ["u32", "context"],
82 //            ["u32", "sw_if_index"],
83 //            ["u8", "enable_disable"],
84 //            {"crc" : "0x4c7f1b8a"}
85 //        ],
86 //
87 type UflowEnableDisable struct {
88         SwIfIndex     uint32
89         EnableDisable uint8
90 }
91
92 func (*UflowEnableDisable) GetMessageName() string {
93         return "uflow_enable_disable"
94 }
95 func (*UflowEnableDisable) GetMessageType() api.MessageType {
96         return api.RequestMessage
97 }
98 func (*UflowEnableDisable) GetCrcString() string {
99         return "4c7f1b8a"
100 }
101 func NewUflowEnableDisable() api.Message {
102         return &UflowEnableDisable{}
103 }
104
105 // UflowEnableDisableReply represents the VPP binary API message 'uflow_enable_disable_reply'.
106 // Generated from 'bin_api/uflow.api.json', line 29:
107 //
108 //        ["uflow_enable_disable_reply",
109 //            ["u16", "_vl_msg_id"],
110 //            ["u32", "context"],
111 //            ["i32", "retval"],
112 //            {"crc" : "0xf47b6600"}
113 //        ],
114 //
115 type UflowEnableDisableReply struct {
116         Retval int32
117 }
118
119 func (*UflowEnableDisableReply) GetMessageName() string {
120         return "uflow_enable_disable_reply"
121 }
122 func (*UflowEnableDisableReply) GetMessageType() api.MessageType {
123         return api.ReplyMessage
124 }
125 func (*UflowEnableDisableReply) GetCrcString() string {
126         return "f47b6600"
127 }
128 func NewUflowEnableDisableReply() api.Message {
129         return &UflowEnableDisableReply{}
130 }
131
132 // UflowSetEnt represents the VPP binary API message 'uflow_set_ent'.
133 // Generated from 'bin_api/uflow.api.json', line 35:
134 //
135 //        ["uflow_set_ent",
136 //            ["u16", "_vl_msg_id"],
137 //            ["u32", "client_index"],
138 //            ["u32", "context"],
139 //            ["vl_api_uflow_idx_t", "idx"],
140 //            ["vl_api_uflow_ent_t", "ent"],
141 //            {"crc" : "0x6bfeac11"}
142 //        ],
143 //
144 type UflowSetEnt struct {
145         Idx UflowIdx
146         Ent UflowEnt
147 }
148
149 func (*UflowSetEnt) GetMessageName() string {
150         return "uflow_set_ent"
151 }
152 func (*UflowSetEnt) GetMessageType() api.MessageType {
153         return api.RequestMessage
154 }
155 func (*UflowSetEnt) GetCrcString() string {
156         return "6bfeac11"
157 }
158 func NewUflowSetEnt() api.Message {
159         return &UflowSetEnt{}
160 }
161
162 // UflowSetEntReply represents the VPP binary API message 'uflow_set_ent_reply'.
163 // Generated from 'bin_api/uflow.api.json', line 43:
164 //
165 //        ["uflow_set_ent_reply",
166 //            ["u16", "_vl_msg_id"],
167 //            ["u32", "context"],
168 //            ["i32", "retval"],
169 //            {"crc" : "0xc49943f5"}
170 //        ],
171 //
172 type UflowSetEntReply struct {
173         Retval int32
174 }
175
176 func (*UflowSetEntReply) GetMessageName() string {
177         return "uflow_set_ent_reply"
178 }
179 func (*UflowSetEntReply) GetMessageType() api.MessageType {
180         return api.ReplyMessage
181 }
182 func (*UflowSetEntReply) GetCrcString() string {
183         return "c49943f5"
184 }
185 func NewUflowSetEntReply() api.Message {
186         return &UflowSetEntReply{}
187 }
188
189 // UflowClrEnt represents the VPP binary API message 'uflow_clr_ent'.
190 // Generated from 'bin_api/uflow.api.json', line 49:
191 //
192 //        ["uflow_clr_ent",
193 //            ["u16", "_vl_msg_id"],
194 //            ["u32", "client_index"],
195 //            ["u32", "context"],
196 //            ["vl_api_uflow_idx_t", "idx"],
197 //            {"crc" : "0x9c0b61a7"}
198 //        ],
199 //
200 type UflowClrEnt struct {
201         Idx UflowIdx
202 }
203
204 func (*UflowClrEnt) GetMessageName() string {
205         return "uflow_clr_ent"
206 }
207 func (*UflowClrEnt) GetMessageType() api.MessageType {
208         return api.RequestMessage
209 }
210 func (*UflowClrEnt) GetCrcString() string {
211         return "9c0b61a7"
212 }
213 func NewUflowClrEnt() api.Message {
214         return &UflowClrEnt{}
215 }
216
217 // UflowClrEntReply represents the VPP binary API message 'uflow_clr_ent_reply'.
218 // Generated from 'bin_api/uflow.api.json', line 56:
219 //
220 //        ["uflow_clr_ent_reply",
221 //            ["u16", "_vl_msg_id"],
222 //            ["u32", "context"],
223 //            ["i32", "retval"],
224 //            {"crc" : "0x6ca429f7"}
225 //        ],
226 //
227 type UflowClrEntReply struct {
228         Retval int32
229 }
230
231 func (*UflowClrEntReply) GetMessageName() string {
232         return "uflow_clr_ent_reply"
233 }
234 func (*UflowClrEntReply) GetMessageType() api.MessageType {
235         return api.ReplyMessage
236 }
237 func (*UflowClrEntReply) GetCrcString() string {
238         return "6ca429f7"
239 }
240 func NewUflowClrEntReply() api.Message {
241         return &UflowClrEntReply{}
242 }
243
244 // UflowDump represents the VPP binary API message 'uflow_dump'.
245 // Generated from 'bin_api/uflow.api.json', line 62:
246 //
247 //        ["uflow_dump",
248 //            ["u16", "_vl_msg_id"],
249 //            ["u32", "client_index"],
250 //            ["u32", "context"],
251 //            {"crc" : "0xf0ac7601"}
252 //        ],
253 //
254 type UflowDump struct {
255 }
256
257 func (*UflowDump) GetMessageName() string {
258         return "uflow_dump"
259 }
260 func (*UflowDump) GetMessageType() api.MessageType {
261         return api.RequestMessage
262 }
263 func (*UflowDump) GetCrcString() string {
264         return "f0ac7601"
265 }
266 func NewUflowDump() api.Message {
267         return &UflowDump{}
268 }
269
270 // UflowDumpReply represents the VPP binary API message 'uflow_dump_reply'.
271 // Generated from 'bin_api/uflow.api.json', line 68:
272 //
273 //        ["uflow_dump_reply",
274 //            ["u16", "_vl_msg_id"],
275 //            ["u32", "context"],
276 //            ["i32", "retval"],
277 //            ["u32", "num"],
278 //            ["vl_api_uflow_row_t", "row", 0, "num"],
279 //            {"crc" : "0x85b96451"}
280 //        ]
281 //
282 type UflowDumpReply struct {
283         Retval int32
284         Num    uint32 `struc:"sizeof=Row"`
285         Row    []UflowRow
286 }
287
288 func (*UflowDumpReply) GetMessageName() string {
289         return "uflow_dump_reply"
290 }
291 func (*UflowDumpReply) GetMessageType() api.MessageType {
292         return api.ReplyMessage
293 }
294 func (*UflowDumpReply) GetCrcString() string {
295         return "85b96451"
296 }
297 func NewUflowDumpReply() api.Message {
298         return &UflowDumpReply{}
299 }