blob: 27d1fa01ff8679ce19dc0716f4e6d9aec078abe6 [file] [log] [blame]
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001# Generated by the protocol buffer compiler. DO NOT EDIT!
2# source: voltha.proto
3
4import sys
5_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
6from google.protobuf import descriptor as _descriptor
7from google.protobuf import message as _message
8from google.protobuf import reflection as _reflection
9from google.protobuf import symbol_database as _symbol_database
10from google.protobuf import descriptor_pb2
11# @@protoc_insertion_point(imports)
12
13_sym_db = _symbol_database.Default()
14
15
16from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
17import openflow_13_pb2 as openflow__13__pb2
18
19
20DESCRIPTOR = _descriptor.FileDescriptor(
21 name='voltha.proto',
22 package='voltha',
23 syntax='proto3',
Zsolt Haraszti8a774382016-10-24 18:25:54 -070024 serialized_pb=_b('\n\x0cvoltha.proto\x12\x06voltha\x1a\x1cgoogle/api/annotations.proto\x1a\x11openflow_13.proto\"\r\n\x0bNullMessage\"v\n\x0cHealthStatus\x12/\n\x05state\x18\x01 \x01(\x0e\x32 .voltha.HealthStatus.HealthState\"5\n\x0bHealthState\x12\x0b\n\x07HEALTHY\x10\x00\x12\x0e\n\nOVERLOADED\x10\x01\x12\t\n\x05\x44YING\x10\x02\"q\n\x07\x41\x64\x64ress\x12\n\n\x02id\x18\x07 \x01(\t\x12\x0e\n\x06street\x18\x01 \x01(\t\x12\x0f\n\x07street2\x18\x02 \x01(\t\x12\x0f\n\x07street3\x18\x03 \x01(\t\x12\x0c\n\x04\x63ity\x18\x04 \x01(\t\x12\r\n\x05state\x18\x05 \x01(\t\x12\x0b\n\x03zip\x18\x06 \x01(\r\"/\n\tAddresses\x12\"\n\taddresses\x18\x01 \x03(\x0b\x32\x0f.voltha.Address\"\x9f\x01\n\x0bMoreComplex\x12$\n\x06health\x18\x01 \x01(\x0b\x32\x14.voltha.HealthStatus\x12\x13\n\x0b\x66oo_counter\x18\x02 \x01(\x05\x12\x0c\n\x04name\x18\x03 \x01(\t\x12%\n\x08\x63hildren\x18\x04 \x03(\x0b\x32\x13.voltha.MoreComplex\x12 \n\x07\x61\x64\x64ress\x18\x05 \x01(\x0b\x32\x0f.voltha.Address\"\x10\n\x02ID\x12\n\n\x02id\x18\x01 \x01(\t\"\x18\n\nSubscriber\x12\n\n\x02id\x18\x01 \x01(\t\"0\n\x0bSubscribers\x12!\n\x05items\x18\x01 \x03(\x0b\x32\x12.voltha.Subscriber\"U\n\rLogicalDevice\x12\n\n\x02id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x61tapath_id\x18\x02 \x01(\x04\x12#\n\x04\x64\x65sc\x18\x03 \x01(\x0b\x32\x15.openflow_13.ofp_desc\"6\n\x0eLogicalDevices\x12$\n\x05items\x18\x01 \x03(\x0b\x32\x15.voltha.LogicalDevice\"4\n\x0cLogicalPorts\x12$\n\x05items\x18\x01 \x03(\x0b\x32\x15.openflow_13.ofp_port\"\x97\x01\n\x14LogicalDeviceDetails\x12\n\n\x02id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x61tapath_id\x18\x02 \x01(\x04\x12#\n\x04\x64\x65sc\x18\x03 \x01(\x0b\x32\x15.openflow_13.ofp_desc\x12\x39\n\x0fswitch_features\x18\x04 \x01(\x0b\x32 .openflow_13.ofp_switch_features\"J\n\x0f\x46lowTableUpdate\x12\n\n\x02id\x18\x01 \x01(\t\x12+\n\x08\x66low_mod\x18\x02 \x01(\x0b\x32\x19.openflow_13.ofp_flow_mod\"M\n\x10GroupTableUpdate\x12\n\n\x02id\x18\x01 \x01(\t\x12-\n\tgroup_mod\x18\x02 \x01(\x0b\x32\x1a.openflow_13.ofp_group_mod\"3\n\x05\x46lows\x12*\n\x05items\x18\x01 \x03(\x0b\x32\x1b.openflow_13.ofp_flow_stats\"9\n\nFlowGroups\x12+\n\x05items\x18\x01 \x03(\x0b\x32\x1c.openflow_13.ofp_group_entry2^\n\rHealthService\x12M\n\x0fGetHealthStatus\x12\x13.voltha.NullMessage\x1a\x14.voltha.HealthStatus\"\x0f\x82\xd3\xe4\x93\x02\t\x12\x07/health2\xc5\x08\n\x12VolthaLogicalLayer\x12Y\n\x12ListLogicalDevices\x12\x13.voltha.NullMessage\x1a\x16.voltha.LogicalDevices\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/local/devices\x12Y\n\x10GetLogicalDevice\x12\n.voltha.ID\x1a\x1c.voltha.LogicalDeviceDetails\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/local/devices/{id}\x12]\n\x16ListLogicalDevicePorts\x12\n.voltha.ID\x1a\x14.voltha.LogicalPorts\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/local/devices/{id}/ports\x12\x65\n\x0fUpdateFlowTable\x12\x17.voltha.FlowTableUpdate\x1a\x13.voltha.NullMessage\"$\x82\xd3\xe4\x93\x02\x1e\"\x19/local/devices/{id}/flows:\x01*\x12O\n\x0fListDeviceFlows\x12\n.voltha.ID\x1a\r.voltha.Flows\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/local/devices/{id}/flows\x12h\n\x10UpdateGroupTable\x12\x18.voltha.GroupTableUpdate\x1a\x13.voltha.NullMessage\"%\x82\xd3\xe4\x93\x02\x1f\"\x1a/local/devices/{id}/groups:\x01*\x12Z\n\x14ListDeviceFlowGroups\x12\n.voltha.ID\x1a\x12.voltha.FlowGroups\"\"\x82\xd3\xe4\x93\x02\x1c\x12\x1a/local/devices/{id}/groups\x12S\n\x10\x43reateSubscriber\x12\x12.voltha.Subscriber\x1a\x12.voltha.Subscriber\"\x17\x82\xd3\xe4\x93\x02\x11\"\x0c/subscribers:\x01*\x12J\n\rGetSubscriber\x12\n.voltha.ID\x1a\x12.voltha.Subscriber\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/subscribers/{id}\x12X\n\x10UpdateSubscriber\x12\x12.voltha.Subscriber\x1a\x12.voltha.Subscriber\"\x1c\x82\xd3\xe4\x93\x02\x16\x32\x11/subscribers/{id}:\x01*\x12N\n\x10\x44\x65leteSubscriber\x12\n.voltha.ID\x1a\x13.voltha.NullMessage\"\x19\x82\xd3\xe4\x93\x02\x13*\x11/subscribers/{id}\x12Q\n\x0fListSubscribers\x12\x13.voltha.NullMessage\x1a\x13.voltha.Subscribers\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/subscribers2\x85\x03\n\x0e\x45xampleService\x12H\n\rCreateAddress\x12\x0f.voltha.Address\x1a\x0f.voltha.Address\"\x15\x82\xd3\xe4\x93\x02\x0f\"\n/addresses:\x01*\x12\x42\n\nGetAddress\x12\n.voltha.ID\x1a\x0f.voltha.Address\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/addresses/{id}\x12M\n\rUpdateAddress\x12\x0f.voltha.Address\x1a\x0f.voltha.Address\"\x1a\x82\xd3\xe4\x93\x02\x14\x32\x0f/addresses/{id}:\x01*\x12I\n\rDeleteAddress\x12\n.voltha.ID\x1a\x13.voltha.NullMessage\"\x17\x82\xd3\xe4\x93\x02\x11*\x0f/addresses/{id}\x12K\n\rListAddresses\x12\x13.voltha.NullMessage\x1a\x11.voltha.Addresses\"\x12\x82\xd3\xe4\x93\x02\x0c\x12\n/addresses2\xfd\x04\n\x08OpenFlow\x12<\n\x08GetHello\x12\x16.openflow_13.ofp_hello\x1a\x16.openflow_13.ofp_hello\"\x00\x12\x41\n\x0b\x45\x63hoRequest\x12\x17.openflow_13.ofp_header\x1a\x17.openflow_13.ofp_header\"\x00\x12\x63\n\x13\x45xperimenterRequest\x12$.openflow_13.ofp_experimenter_header\x1a$.openflow_13.ofp_experimenter_header\"\x00\x12P\n\x11GetSwitchFeatures\x12\x17.openflow_13.ofp_header\x1a .openflow_13.ofp_switch_features\"\x00\x12L\n\x0fGetSwitchConfig\x12\x17.openflow_13.ofp_header\x1a\x1e.openflow_13.ofp_switch_config\"\x00\x12\x46\n\tSetConfig\x12\x1e.openflow_13.ofp_switch_config\x1a\x17.openflow_13.ofp_header\"\x00\x12R\n\x17ReceivePacketInMessages\x12\x17.openflow_13.ofp_header\x1a\x1a.openflow_13.ofp_packet_in\"\x00\x30\x01\x12O\n\x15SendPacketOutMessages\x12\x1b.openflow_13.ofp_packet_out\x1a\x17.openflow_13.ofp_header\"\x00\x42<\n\x13org.opencord.volthaB\x0cVolthaProtos\xaa\x02\x16Opencord.Voltha.Volthab\x06proto3')
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070025 ,
26 dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,openflow__13__pb2.DESCRIPTOR,])
27_sym_db.RegisterFileDescriptor(DESCRIPTOR)
28
29
30
31_HEALTHSTATUS_HEALTHSTATE = _descriptor.EnumDescriptor(
32 name='HealthState',
33 full_name='voltha.HealthStatus.HealthState',
34 filename=None,
35 file=DESCRIPTOR,
36 values=[
37 _descriptor.EnumValueDescriptor(
38 name='HEALTHY', index=0, number=0,
39 options=None,
40 type=None),
41 _descriptor.EnumValueDescriptor(
42 name='OVERLOADED', index=1, number=1,
43 options=None,
44 type=None),
45 _descriptor.EnumValueDescriptor(
46 name='DYING', index=2, number=2,
47 options=None,
48 type=None),
49 ],
50 containing_type=None,
51 options=None,
52 serialized_start=153,
53 serialized_end=206,
54)
55_sym_db.RegisterEnumDescriptor(_HEALTHSTATUS_HEALTHSTATE)
56
57
58_NULLMESSAGE = _descriptor.Descriptor(
59 name='NullMessage',
60 full_name='voltha.NullMessage',
61 filename=None,
62 file=DESCRIPTOR,
63 containing_type=None,
64 fields=[
65 ],
66 extensions=[
67 ],
68 nested_types=[],
69 enum_types=[
70 ],
71 options=None,
72 is_extendable=False,
73 syntax='proto3',
74 extension_ranges=[],
75 oneofs=[
76 ],
77 serialized_start=73,
78 serialized_end=86,
79)
80
81
82_HEALTHSTATUS = _descriptor.Descriptor(
83 name='HealthStatus',
84 full_name='voltha.HealthStatus',
85 filename=None,
86 file=DESCRIPTOR,
87 containing_type=None,
88 fields=[
89 _descriptor.FieldDescriptor(
90 name='state', full_name='voltha.HealthStatus.state', index=0,
91 number=1, type=14, cpp_type=8, label=1,
92 has_default_value=False, default_value=0,
93 message_type=None, enum_type=None, containing_type=None,
94 is_extension=False, extension_scope=None,
95 options=None),
96 ],
97 extensions=[
98 ],
99 nested_types=[],
100 enum_types=[
101 _HEALTHSTATUS_HEALTHSTATE,
102 ],
103 options=None,
104 is_extendable=False,
105 syntax='proto3',
106 extension_ranges=[],
107 oneofs=[
108 ],
109 serialized_start=88,
110 serialized_end=206,
111)
112
113
114_ADDRESS = _descriptor.Descriptor(
115 name='Address',
116 full_name='voltha.Address',
117 filename=None,
118 file=DESCRIPTOR,
119 containing_type=None,
120 fields=[
121 _descriptor.FieldDescriptor(
122 name='id', full_name='voltha.Address.id', index=0,
123 number=7, type=9, cpp_type=9, label=1,
124 has_default_value=False, default_value=_b("").decode('utf-8'),
125 message_type=None, enum_type=None, containing_type=None,
126 is_extension=False, extension_scope=None,
127 options=None),
128 _descriptor.FieldDescriptor(
129 name='street', full_name='voltha.Address.street', index=1,
130 number=1, type=9, cpp_type=9, label=1,
131 has_default_value=False, default_value=_b("").decode('utf-8'),
132 message_type=None, enum_type=None, containing_type=None,
133 is_extension=False, extension_scope=None,
134 options=None),
135 _descriptor.FieldDescriptor(
136 name='street2', full_name='voltha.Address.street2', index=2,
137 number=2, type=9, cpp_type=9, label=1,
138 has_default_value=False, default_value=_b("").decode('utf-8'),
139 message_type=None, enum_type=None, containing_type=None,
140 is_extension=False, extension_scope=None,
141 options=None),
142 _descriptor.FieldDescriptor(
143 name='street3', full_name='voltha.Address.street3', index=3,
144 number=3, type=9, cpp_type=9, label=1,
145 has_default_value=False, default_value=_b("").decode('utf-8'),
146 message_type=None, enum_type=None, containing_type=None,
147 is_extension=False, extension_scope=None,
148 options=None),
149 _descriptor.FieldDescriptor(
150 name='city', full_name='voltha.Address.city', index=4,
151 number=4, type=9, cpp_type=9, label=1,
152 has_default_value=False, default_value=_b("").decode('utf-8'),
153 message_type=None, enum_type=None, containing_type=None,
154 is_extension=False, extension_scope=None,
155 options=None),
156 _descriptor.FieldDescriptor(
157 name='state', full_name='voltha.Address.state', index=5,
158 number=5, type=9, cpp_type=9, label=1,
159 has_default_value=False, default_value=_b("").decode('utf-8'),
160 message_type=None, enum_type=None, containing_type=None,
161 is_extension=False, extension_scope=None,
162 options=None),
163 _descriptor.FieldDescriptor(
164 name='zip', full_name='voltha.Address.zip', index=6,
165 number=6, type=13, cpp_type=3, label=1,
166 has_default_value=False, default_value=0,
167 message_type=None, enum_type=None, containing_type=None,
168 is_extension=False, extension_scope=None,
169 options=None),
170 ],
171 extensions=[
172 ],
173 nested_types=[],
174 enum_types=[
175 ],
176 options=None,
177 is_extendable=False,
178 syntax='proto3',
179 extension_ranges=[],
180 oneofs=[
181 ],
182 serialized_start=208,
183 serialized_end=321,
184)
185
186
187_ADDRESSES = _descriptor.Descriptor(
188 name='Addresses',
189 full_name='voltha.Addresses',
190 filename=None,
191 file=DESCRIPTOR,
192 containing_type=None,
193 fields=[
194 _descriptor.FieldDescriptor(
195 name='addresses', full_name='voltha.Addresses.addresses', index=0,
196 number=1, type=11, cpp_type=10, label=3,
197 has_default_value=False, default_value=[],
198 message_type=None, enum_type=None, containing_type=None,
199 is_extension=False, extension_scope=None,
200 options=None),
201 ],
202 extensions=[
203 ],
204 nested_types=[],
205 enum_types=[
206 ],
207 options=None,
208 is_extendable=False,
209 syntax='proto3',
210 extension_ranges=[],
211 oneofs=[
212 ],
213 serialized_start=323,
214 serialized_end=370,
215)
216
217
218_MORECOMPLEX = _descriptor.Descriptor(
219 name='MoreComplex',
220 full_name='voltha.MoreComplex',
221 filename=None,
222 file=DESCRIPTOR,
223 containing_type=None,
224 fields=[
225 _descriptor.FieldDescriptor(
226 name='health', full_name='voltha.MoreComplex.health', index=0,
227 number=1, type=11, cpp_type=10, label=1,
228 has_default_value=False, default_value=None,
229 message_type=None, enum_type=None, containing_type=None,
230 is_extension=False, extension_scope=None,
231 options=None),
232 _descriptor.FieldDescriptor(
233 name='foo_counter', full_name='voltha.MoreComplex.foo_counter', index=1,
234 number=2, type=5, cpp_type=1, label=1,
235 has_default_value=False, default_value=0,
236 message_type=None, enum_type=None, containing_type=None,
237 is_extension=False, extension_scope=None,
238 options=None),
239 _descriptor.FieldDescriptor(
240 name='name', full_name='voltha.MoreComplex.name', index=2,
241 number=3, type=9, cpp_type=9, label=1,
242 has_default_value=False, default_value=_b("").decode('utf-8'),
243 message_type=None, enum_type=None, containing_type=None,
244 is_extension=False, extension_scope=None,
245 options=None),
246 _descriptor.FieldDescriptor(
247 name='children', full_name='voltha.MoreComplex.children', index=3,
248 number=4, type=11, cpp_type=10, label=3,
249 has_default_value=False, default_value=[],
250 message_type=None, enum_type=None, containing_type=None,
251 is_extension=False, extension_scope=None,
252 options=None),
253 _descriptor.FieldDescriptor(
254 name='address', full_name='voltha.MoreComplex.address', index=4,
255 number=5, type=11, cpp_type=10, label=1,
256 has_default_value=False, default_value=None,
257 message_type=None, enum_type=None, containing_type=None,
258 is_extension=False, extension_scope=None,
259 options=None),
260 ],
261 extensions=[
262 ],
263 nested_types=[],
264 enum_types=[
265 ],
266 options=None,
267 is_extendable=False,
268 syntax='proto3',
269 extension_ranges=[],
270 oneofs=[
271 ],
272 serialized_start=373,
273 serialized_end=532,
274)
275
276
277_ID = _descriptor.Descriptor(
278 name='ID',
279 full_name='voltha.ID',
280 filename=None,
281 file=DESCRIPTOR,
282 containing_type=None,
283 fields=[
284 _descriptor.FieldDescriptor(
285 name='id', full_name='voltha.ID.id', index=0,
286 number=1, type=9, cpp_type=9, label=1,
287 has_default_value=False, default_value=_b("").decode('utf-8'),
288 message_type=None, enum_type=None, containing_type=None,
289 is_extension=False, extension_scope=None,
290 options=None),
291 ],
292 extensions=[
293 ],
294 nested_types=[],
295 enum_types=[
296 ],
297 options=None,
298 is_extendable=False,
299 syntax='proto3',
300 extension_ranges=[],
301 oneofs=[
302 ],
303 serialized_start=534,
304 serialized_end=550,
305)
306
307
308_SUBSCRIBER = _descriptor.Descriptor(
309 name='Subscriber',
310 full_name='voltha.Subscriber',
311 filename=None,
312 file=DESCRIPTOR,
313 containing_type=None,
314 fields=[
315 _descriptor.FieldDescriptor(
316 name='id', full_name='voltha.Subscriber.id', index=0,
317 number=1, type=9, cpp_type=9, label=1,
318 has_default_value=False, default_value=_b("").decode('utf-8'),
319 message_type=None, enum_type=None, containing_type=None,
320 is_extension=False, extension_scope=None,
321 options=None),
322 ],
323 extensions=[
324 ],
325 nested_types=[],
326 enum_types=[
327 ],
328 options=None,
329 is_extendable=False,
330 syntax='proto3',
331 extension_ranges=[],
332 oneofs=[
333 ],
334 serialized_start=552,
335 serialized_end=576,
336)
337
338
339_SUBSCRIBERS = _descriptor.Descriptor(
340 name='Subscribers',
341 full_name='voltha.Subscribers',
342 filename=None,
343 file=DESCRIPTOR,
344 containing_type=None,
345 fields=[
346 _descriptor.FieldDescriptor(
347 name='items', full_name='voltha.Subscribers.items', index=0,
348 number=1, type=11, cpp_type=10, label=3,
349 has_default_value=False, default_value=[],
350 message_type=None, enum_type=None, containing_type=None,
351 is_extension=False, extension_scope=None,
352 options=None),
353 ],
354 extensions=[
355 ],
356 nested_types=[],
357 enum_types=[
358 ],
359 options=None,
360 is_extendable=False,
361 syntax='proto3',
362 extension_ranges=[],
363 oneofs=[
364 ],
365 serialized_start=578,
366 serialized_end=626,
367)
368
369
370_LOGICALDEVICE = _descriptor.Descriptor(
371 name='LogicalDevice',
372 full_name='voltha.LogicalDevice',
373 filename=None,
374 file=DESCRIPTOR,
375 containing_type=None,
376 fields=[
377 _descriptor.FieldDescriptor(
378 name='id', full_name='voltha.LogicalDevice.id', index=0,
379 number=1, type=9, cpp_type=9, label=1,
380 has_default_value=False, default_value=_b("").decode('utf-8'),
381 message_type=None, enum_type=None, containing_type=None,
382 is_extension=False, extension_scope=None,
383 options=None),
384 _descriptor.FieldDescriptor(
385 name='datapath_id', full_name='voltha.LogicalDevice.datapath_id', index=1,
386 number=2, type=4, cpp_type=4, label=1,
387 has_default_value=False, default_value=0,
388 message_type=None, enum_type=None, containing_type=None,
389 is_extension=False, extension_scope=None,
390 options=None),
391 _descriptor.FieldDescriptor(
392 name='desc', full_name='voltha.LogicalDevice.desc', index=2,
393 number=3, type=11, cpp_type=10, label=1,
394 has_default_value=False, default_value=None,
395 message_type=None, enum_type=None, containing_type=None,
396 is_extension=False, extension_scope=None,
397 options=None),
398 ],
399 extensions=[
400 ],
401 nested_types=[],
402 enum_types=[
403 ],
404 options=None,
405 is_extendable=False,
406 syntax='proto3',
407 extension_ranges=[],
408 oneofs=[
409 ],
410 serialized_start=628,
411 serialized_end=713,
412)
413
414
415_LOGICALDEVICES = _descriptor.Descriptor(
416 name='LogicalDevices',
417 full_name='voltha.LogicalDevices',
418 filename=None,
419 file=DESCRIPTOR,
420 containing_type=None,
421 fields=[
422 _descriptor.FieldDescriptor(
423 name='items', full_name='voltha.LogicalDevices.items', index=0,
424 number=1, type=11, cpp_type=10, label=3,
425 has_default_value=False, default_value=[],
426 message_type=None, enum_type=None, containing_type=None,
427 is_extension=False, extension_scope=None,
428 options=None),
429 ],
430 extensions=[
431 ],
432 nested_types=[],
433 enum_types=[
434 ],
435 options=None,
436 is_extendable=False,
437 syntax='proto3',
438 extension_ranges=[],
439 oneofs=[
440 ],
441 serialized_start=715,
442 serialized_end=769,
443)
444
445
446_LOGICALPORTS = _descriptor.Descriptor(
447 name='LogicalPorts',
448 full_name='voltha.LogicalPorts',
449 filename=None,
450 file=DESCRIPTOR,
451 containing_type=None,
452 fields=[
453 _descriptor.FieldDescriptor(
454 name='items', full_name='voltha.LogicalPorts.items', index=0,
455 number=1, type=11, cpp_type=10, label=3,
456 has_default_value=False, default_value=[],
457 message_type=None, enum_type=None, containing_type=None,
458 is_extension=False, extension_scope=None,
459 options=None),
460 ],
461 extensions=[
462 ],
463 nested_types=[],
464 enum_types=[
465 ],
466 options=None,
467 is_extendable=False,
468 syntax='proto3',
469 extension_ranges=[],
470 oneofs=[
471 ],
472 serialized_start=771,
473 serialized_end=823,
474)
475
476
477_LOGICALDEVICEDETAILS = _descriptor.Descriptor(
478 name='LogicalDeviceDetails',
479 full_name='voltha.LogicalDeviceDetails',
480 filename=None,
481 file=DESCRIPTOR,
482 containing_type=None,
483 fields=[
484 _descriptor.FieldDescriptor(
485 name='id', full_name='voltha.LogicalDeviceDetails.id', index=0,
486 number=1, type=9, cpp_type=9, label=1,
487 has_default_value=False, default_value=_b("").decode('utf-8'),
488 message_type=None, enum_type=None, containing_type=None,
489 is_extension=False, extension_scope=None,
490 options=None),
491 _descriptor.FieldDescriptor(
492 name='datapath_id', full_name='voltha.LogicalDeviceDetails.datapath_id', index=1,
493 number=2, type=4, cpp_type=4, label=1,
494 has_default_value=False, default_value=0,
495 message_type=None, enum_type=None, containing_type=None,
496 is_extension=False, extension_scope=None,
497 options=None),
498 _descriptor.FieldDescriptor(
499 name='desc', full_name='voltha.LogicalDeviceDetails.desc', index=2,
500 number=3, type=11, cpp_type=10, label=1,
501 has_default_value=False, default_value=None,
502 message_type=None, enum_type=None, containing_type=None,
503 is_extension=False, extension_scope=None,
504 options=None),
505 _descriptor.FieldDescriptor(
506 name='switch_features', full_name='voltha.LogicalDeviceDetails.switch_features', index=3,
507 number=4, type=11, cpp_type=10, label=1,
508 has_default_value=False, default_value=None,
509 message_type=None, enum_type=None, containing_type=None,
510 is_extension=False, extension_scope=None,
511 options=None),
512 ],
513 extensions=[
514 ],
515 nested_types=[],
516 enum_types=[
517 ],
518 options=None,
519 is_extendable=False,
520 syntax='proto3',
521 extension_ranges=[],
522 oneofs=[
523 ],
524 serialized_start=826,
525 serialized_end=977,
526)
527
528
529_FLOWTABLEUPDATE = _descriptor.Descriptor(
530 name='FlowTableUpdate',
531 full_name='voltha.FlowTableUpdate',
532 filename=None,
533 file=DESCRIPTOR,
534 containing_type=None,
535 fields=[
536 _descriptor.FieldDescriptor(
537 name='id', full_name='voltha.FlowTableUpdate.id', index=0,
538 number=1, type=9, cpp_type=9, label=1,
539 has_default_value=False, default_value=_b("").decode('utf-8'),
540 message_type=None, enum_type=None, containing_type=None,
541 is_extension=False, extension_scope=None,
542 options=None),
543 _descriptor.FieldDescriptor(
544 name='flow_mod', full_name='voltha.FlowTableUpdate.flow_mod', index=1,
545 number=2, type=11, cpp_type=10, label=1,
546 has_default_value=False, default_value=None,
547 message_type=None, enum_type=None, containing_type=None,
548 is_extension=False, extension_scope=None,
549 options=None),
550 ],
551 extensions=[
552 ],
553 nested_types=[],
554 enum_types=[
555 ],
556 options=None,
557 is_extendable=False,
558 syntax='proto3',
559 extension_ranges=[],
560 oneofs=[
561 ],
562 serialized_start=979,
563 serialized_end=1053,
564)
565
566
Zsolt Haraszti8a774382016-10-24 18:25:54 -0700567_GROUPTABLEUPDATE = _descriptor.Descriptor(
568 name='GroupTableUpdate',
569 full_name='voltha.GroupTableUpdate',
570 filename=None,
571 file=DESCRIPTOR,
572 containing_type=None,
573 fields=[
574 _descriptor.FieldDescriptor(
575 name='id', full_name='voltha.GroupTableUpdate.id', index=0,
576 number=1, type=9, cpp_type=9, label=1,
577 has_default_value=False, default_value=_b("").decode('utf-8'),
578 message_type=None, enum_type=None, containing_type=None,
579 is_extension=False, extension_scope=None,
580 options=None),
581 _descriptor.FieldDescriptor(
582 name='group_mod', full_name='voltha.GroupTableUpdate.group_mod', index=1,
583 number=2, type=11, cpp_type=10, label=1,
584 has_default_value=False, default_value=None,
585 message_type=None, enum_type=None, containing_type=None,
586 is_extension=False, extension_scope=None,
587 options=None),
588 ],
589 extensions=[
590 ],
591 nested_types=[],
592 enum_types=[
593 ],
594 options=None,
595 is_extendable=False,
596 syntax='proto3',
597 extension_ranges=[],
598 oneofs=[
599 ],
600 serialized_start=1055,
601 serialized_end=1132,
602)
603
604
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700605_FLOWS = _descriptor.Descriptor(
606 name='Flows',
607 full_name='voltha.Flows',
608 filename=None,
609 file=DESCRIPTOR,
610 containing_type=None,
611 fields=[
612 _descriptor.FieldDescriptor(
613 name='items', full_name='voltha.Flows.items', index=0,
614 number=1, type=11, cpp_type=10, label=3,
615 has_default_value=False, default_value=[],
616 message_type=None, enum_type=None, containing_type=None,
617 is_extension=False, extension_scope=None,
618 options=None),
619 ],
620 extensions=[
621 ],
622 nested_types=[],
623 enum_types=[
624 ],
625 options=None,
626 is_extendable=False,
627 syntax='proto3',
628 extension_ranges=[],
629 oneofs=[
630 ],
Zsolt Haraszti8a774382016-10-24 18:25:54 -0700631 serialized_start=1134,
632 serialized_end=1185,
633)
634
635
636_FLOWGROUPS = _descriptor.Descriptor(
637 name='FlowGroups',
638 full_name='voltha.FlowGroups',
639 filename=None,
640 file=DESCRIPTOR,
641 containing_type=None,
642 fields=[
643 _descriptor.FieldDescriptor(
644 name='items', full_name='voltha.FlowGroups.items', index=0,
645 number=1, type=11, cpp_type=10, label=3,
646 has_default_value=False, default_value=[],
647 message_type=None, enum_type=None, containing_type=None,
648 is_extension=False, extension_scope=None,
649 options=None),
650 ],
651 extensions=[
652 ],
653 nested_types=[],
654 enum_types=[
655 ],
656 options=None,
657 is_extendable=False,
658 syntax='proto3',
659 extension_ranges=[],
660 oneofs=[
661 ],
662 serialized_start=1187,
663 serialized_end=1244,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700664)
665
666_HEALTHSTATUS.fields_by_name['state'].enum_type = _HEALTHSTATUS_HEALTHSTATE
667_HEALTHSTATUS_HEALTHSTATE.containing_type = _HEALTHSTATUS
668_ADDRESSES.fields_by_name['addresses'].message_type = _ADDRESS
669_MORECOMPLEX.fields_by_name['health'].message_type = _HEALTHSTATUS
670_MORECOMPLEX.fields_by_name['children'].message_type = _MORECOMPLEX
671_MORECOMPLEX.fields_by_name['address'].message_type = _ADDRESS
672_SUBSCRIBERS.fields_by_name['items'].message_type = _SUBSCRIBER
673_LOGICALDEVICE.fields_by_name['desc'].message_type = openflow__13__pb2._OFP_DESC
674_LOGICALDEVICES.fields_by_name['items'].message_type = _LOGICALDEVICE
675_LOGICALPORTS.fields_by_name['items'].message_type = openflow__13__pb2._OFP_PORT
676_LOGICALDEVICEDETAILS.fields_by_name['desc'].message_type = openflow__13__pb2._OFP_DESC
677_LOGICALDEVICEDETAILS.fields_by_name['switch_features'].message_type = openflow__13__pb2._OFP_SWITCH_FEATURES
678_FLOWTABLEUPDATE.fields_by_name['flow_mod'].message_type = openflow__13__pb2._OFP_FLOW_MOD
Zsolt Haraszti8a774382016-10-24 18:25:54 -0700679_GROUPTABLEUPDATE.fields_by_name['group_mod'].message_type = openflow__13__pb2._OFP_GROUP_MOD
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700680_FLOWS.fields_by_name['items'].message_type = openflow__13__pb2._OFP_FLOW_STATS
Zsolt Haraszti8a774382016-10-24 18:25:54 -0700681_FLOWGROUPS.fields_by_name['items'].message_type = openflow__13__pb2._OFP_GROUP_ENTRY
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700682DESCRIPTOR.message_types_by_name['NullMessage'] = _NULLMESSAGE
683DESCRIPTOR.message_types_by_name['HealthStatus'] = _HEALTHSTATUS
684DESCRIPTOR.message_types_by_name['Address'] = _ADDRESS
685DESCRIPTOR.message_types_by_name['Addresses'] = _ADDRESSES
686DESCRIPTOR.message_types_by_name['MoreComplex'] = _MORECOMPLEX
687DESCRIPTOR.message_types_by_name['ID'] = _ID
688DESCRIPTOR.message_types_by_name['Subscriber'] = _SUBSCRIBER
689DESCRIPTOR.message_types_by_name['Subscribers'] = _SUBSCRIBERS
690DESCRIPTOR.message_types_by_name['LogicalDevice'] = _LOGICALDEVICE
691DESCRIPTOR.message_types_by_name['LogicalDevices'] = _LOGICALDEVICES
692DESCRIPTOR.message_types_by_name['LogicalPorts'] = _LOGICALPORTS
693DESCRIPTOR.message_types_by_name['LogicalDeviceDetails'] = _LOGICALDEVICEDETAILS
694DESCRIPTOR.message_types_by_name['FlowTableUpdate'] = _FLOWTABLEUPDATE
Zsolt Haraszti8a774382016-10-24 18:25:54 -0700695DESCRIPTOR.message_types_by_name['GroupTableUpdate'] = _GROUPTABLEUPDATE
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700696DESCRIPTOR.message_types_by_name['Flows'] = _FLOWS
Zsolt Haraszti8a774382016-10-24 18:25:54 -0700697DESCRIPTOR.message_types_by_name['FlowGroups'] = _FLOWGROUPS
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700698
699NullMessage = _reflection.GeneratedProtocolMessageType('NullMessage', (_message.Message,), dict(
700 DESCRIPTOR = _NULLMESSAGE,
701 __module__ = 'voltha_pb2'
702 # @@protoc_insertion_point(class_scope:voltha.NullMessage)
703 ))
704_sym_db.RegisterMessage(NullMessage)
705
706HealthStatus = _reflection.GeneratedProtocolMessageType('HealthStatus', (_message.Message,), dict(
707 DESCRIPTOR = _HEALTHSTATUS,
708 __module__ = 'voltha_pb2'
709 # @@protoc_insertion_point(class_scope:voltha.HealthStatus)
710 ))
711_sym_db.RegisterMessage(HealthStatus)
712
713Address = _reflection.GeneratedProtocolMessageType('Address', (_message.Message,), dict(
714 DESCRIPTOR = _ADDRESS,
715 __module__ = 'voltha_pb2'
716 # @@protoc_insertion_point(class_scope:voltha.Address)
717 ))
718_sym_db.RegisterMessage(Address)
719
720Addresses = _reflection.GeneratedProtocolMessageType('Addresses', (_message.Message,), dict(
721 DESCRIPTOR = _ADDRESSES,
722 __module__ = 'voltha_pb2'
723 # @@protoc_insertion_point(class_scope:voltha.Addresses)
724 ))
725_sym_db.RegisterMessage(Addresses)
726
727MoreComplex = _reflection.GeneratedProtocolMessageType('MoreComplex', (_message.Message,), dict(
728 DESCRIPTOR = _MORECOMPLEX,
729 __module__ = 'voltha_pb2'
730 # @@protoc_insertion_point(class_scope:voltha.MoreComplex)
731 ))
732_sym_db.RegisterMessage(MoreComplex)
733
734ID = _reflection.GeneratedProtocolMessageType('ID', (_message.Message,), dict(
735 DESCRIPTOR = _ID,
736 __module__ = 'voltha_pb2'
737 # @@protoc_insertion_point(class_scope:voltha.ID)
738 ))
739_sym_db.RegisterMessage(ID)
740
741Subscriber = _reflection.GeneratedProtocolMessageType('Subscriber', (_message.Message,), dict(
742 DESCRIPTOR = _SUBSCRIBER,
743 __module__ = 'voltha_pb2'
744 # @@protoc_insertion_point(class_scope:voltha.Subscriber)
745 ))
746_sym_db.RegisterMessage(Subscriber)
747
748Subscribers = _reflection.GeneratedProtocolMessageType('Subscribers', (_message.Message,), dict(
749 DESCRIPTOR = _SUBSCRIBERS,
750 __module__ = 'voltha_pb2'
751 # @@protoc_insertion_point(class_scope:voltha.Subscribers)
752 ))
753_sym_db.RegisterMessage(Subscribers)
754
755LogicalDevice = _reflection.GeneratedProtocolMessageType('LogicalDevice', (_message.Message,), dict(
756 DESCRIPTOR = _LOGICALDEVICE,
757 __module__ = 'voltha_pb2'
758 # @@protoc_insertion_point(class_scope:voltha.LogicalDevice)
759 ))
760_sym_db.RegisterMessage(LogicalDevice)
761
762LogicalDevices = _reflection.GeneratedProtocolMessageType('LogicalDevices', (_message.Message,), dict(
763 DESCRIPTOR = _LOGICALDEVICES,
764 __module__ = 'voltha_pb2'
765 # @@protoc_insertion_point(class_scope:voltha.LogicalDevices)
766 ))
767_sym_db.RegisterMessage(LogicalDevices)
768
769LogicalPorts = _reflection.GeneratedProtocolMessageType('LogicalPorts', (_message.Message,), dict(
770 DESCRIPTOR = _LOGICALPORTS,
771 __module__ = 'voltha_pb2'
772 # @@protoc_insertion_point(class_scope:voltha.LogicalPorts)
773 ))
774_sym_db.RegisterMessage(LogicalPorts)
775
776LogicalDeviceDetails = _reflection.GeneratedProtocolMessageType('LogicalDeviceDetails', (_message.Message,), dict(
777 DESCRIPTOR = _LOGICALDEVICEDETAILS,
778 __module__ = 'voltha_pb2'
779 # @@protoc_insertion_point(class_scope:voltha.LogicalDeviceDetails)
780 ))
781_sym_db.RegisterMessage(LogicalDeviceDetails)
782
783FlowTableUpdate = _reflection.GeneratedProtocolMessageType('FlowTableUpdate', (_message.Message,), dict(
784 DESCRIPTOR = _FLOWTABLEUPDATE,
785 __module__ = 'voltha_pb2'
786 # @@protoc_insertion_point(class_scope:voltha.FlowTableUpdate)
787 ))
788_sym_db.RegisterMessage(FlowTableUpdate)
789
Zsolt Haraszti8a774382016-10-24 18:25:54 -0700790GroupTableUpdate = _reflection.GeneratedProtocolMessageType('GroupTableUpdate', (_message.Message,), dict(
791 DESCRIPTOR = _GROUPTABLEUPDATE,
792 __module__ = 'voltha_pb2'
793 # @@protoc_insertion_point(class_scope:voltha.GroupTableUpdate)
794 ))
795_sym_db.RegisterMessage(GroupTableUpdate)
796
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700797Flows = _reflection.GeneratedProtocolMessageType('Flows', (_message.Message,), dict(
798 DESCRIPTOR = _FLOWS,
799 __module__ = 'voltha_pb2'
800 # @@protoc_insertion_point(class_scope:voltha.Flows)
801 ))
802_sym_db.RegisterMessage(Flows)
803
Zsolt Haraszti8a774382016-10-24 18:25:54 -0700804FlowGroups = _reflection.GeneratedProtocolMessageType('FlowGroups', (_message.Message,), dict(
805 DESCRIPTOR = _FLOWGROUPS,
806 __module__ = 'voltha_pb2'
807 # @@protoc_insertion_point(class_scope:voltha.FlowGroups)
808 ))
809_sym_db.RegisterMessage(FlowGroups)
810
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700811
812DESCRIPTOR.has_options = True
813DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\023org.opencord.volthaB\014VolthaProtos\252\002\026Opencord.Voltha.Voltha'))
814import grpc
815from grpc.beta import implementations as beta_implementations
816from grpc.beta import interfaces as beta_interfaces
817from grpc.framework.common import cardinality
818from grpc.framework.interfaces.face import utilities as face_utilities
819
820
821class HealthServiceStub(object):
822 """Health related services
823 """
824
825 def __init__(self, channel):
826 """Constructor.
827
828 Args:
829 channel: A grpc.Channel.
830 """
831 self.GetHealthStatus = channel.unary_unary(
832 '/voltha.HealthService/GetHealthStatus',
833 request_serializer=NullMessage.SerializeToString,
834 response_deserializer=HealthStatus.FromString,
835 )
836
837
838class HealthServiceServicer(object):
839 """Health related services
840 """
841
842 def GetHealthStatus(self, request, context):
843 """Return current health status of a Voltha instance
844 """
845 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
846 context.set_details('Method not implemented!')
847 raise NotImplementedError('Method not implemented!')
848
849
850def add_HealthServiceServicer_to_server(servicer, server):
851 rpc_method_handlers = {
852 'GetHealthStatus': grpc.unary_unary_rpc_method_handler(
853 servicer.GetHealthStatus,
854 request_deserializer=NullMessage.FromString,
855 response_serializer=HealthStatus.SerializeToString,
856 ),
857 }
858 generic_handler = grpc.method_handlers_generic_handler(
859 'voltha.HealthService', rpc_method_handlers)
860 server.add_generic_rpc_handlers((generic_handler,))
861
862
863class BetaHealthServiceServicer(object):
864 """Health related services
865 """
866 def GetHealthStatus(self, request, context):
867 """Return current health status of a Voltha instance
868 """
869 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
870
871
872class BetaHealthServiceStub(object):
873 """Health related services
874 """
875 def GetHealthStatus(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
876 """Return current health status of a Voltha instance
877 """
878 raise NotImplementedError()
879 GetHealthStatus.future = None
880
881
882def beta_create_HealthService_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None):
883 request_deserializers = {
884 ('voltha.HealthService', 'GetHealthStatus'): NullMessage.FromString,
885 }
886 response_serializers = {
887 ('voltha.HealthService', 'GetHealthStatus'): HealthStatus.SerializeToString,
888 }
889 method_implementations = {
890 ('voltha.HealthService', 'GetHealthStatus'): face_utilities.unary_unary_inline(servicer.GetHealthStatus),
891 }
892 server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout)
893 return beta_implementations.server(method_implementations, options=server_options)
894
895
896def beta_create_HealthService_stub(channel, host=None, metadata_transformer=None, pool=None, pool_size=None):
897 request_serializers = {
898 ('voltha.HealthService', 'GetHealthStatus'): NullMessage.SerializeToString,
899 }
900 response_deserializers = {
901 ('voltha.HealthService', 'GetHealthStatus'): HealthStatus.FromString,
902 }
903 cardinalities = {
904 'GetHealthStatus': cardinality.Cardinality.UNARY_UNARY,
905 }
906 stub_options = beta_implementations.stub_options(host=host, metadata_transformer=metadata_transformer, request_serializers=request_serializers, response_deserializers=response_deserializers, thread_pool=pool, thread_pool_size=pool_size)
907 return beta_implementations.dynamic_stub(channel, 'voltha.HealthService', cardinalities, options=stub_options)
908
909
910class VolthaLogicalLayerStub(object):
911
912 def __init__(self, channel):
913 """Constructor.
914
915 Args:
916 channel: A grpc.Channel.
917 """
918 self.ListLogicalDevices = channel.unary_unary(
919 '/voltha.VolthaLogicalLayer/ListLogicalDevices',
920 request_serializer=NullMessage.SerializeToString,
921 response_deserializer=LogicalDevices.FromString,
922 )
923 self.GetLogicalDevice = channel.unary_unary(
924 '/voltha.VolthaLogicalLayer/GetLogicalDevice',
925 request_serializer=ID.SerializeToString,
926 response_deserializer=LogicalDeviceDetails.FromString,
927 )
928 self.ListLogicalDevicePorts = channel.unary_unary(
929 '/voltha.VolthaLogicalLayer/ListLogicalDevicePorts',
930 request_serializer=ID.SerializeToString,
931 response_deserializer=LogicalPorts.FromString,
932 )
933 self.UpdateFlowTable = channel.unary_unary(
934 '/voltha.VolthaLogicalLayer/UpdateFlowTable',
935 request_serializer=FlowTableUpdate.SerializeToString,
936 response_deserializer=NullMessage.FromString,
937 )
938 self.ListDeviceFlows = channel.unary_unary(
939 '/voltha.VolthaLogicalLayer/ListDeviceFlows',
940 request_serializer=ID.SerializeToString,
941 response_deserializer=Flows.FromString,
942 )
Zsolt Haraszti8a774382016-10-24 18:25:54 -0700943 self.UpdateGroupTable = channel.unary_unary(
944 '/voltha.VolthaLogicalLayer/UpdateGroupTable',
945 request_serializer=GroupTableUpdate.SerializeToString,
946 response_deserializer=NullMessage.FromString,
947 )
948 self.ListDeviceFlowGroups = channel.unary_unary(
949 '/voltha.VolthaLogicalLayer/ListDeviceFlowGroups',
950 request_serializer=ID.SerializeToString,
951 response_deserializer=FlowGroups.FromString,
952 )
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -0700953 self.CreateSubscriber = channel.unary_unary(
954 '/voltha.VolthaLogicalLayer/CreateSubscriber',
955 request_serializer=Subscriber.SerializeToString,
956 response_deserializer=Subscriber.FromString,
957 )
958 self.GetSubscriber = channel.unary_unary(
959 '/voltha.VolthaLogicalLayer/GetSubscriber',
960 request_serializer=ID.SerializeToString,
961 response_deserializer=Subscriber.FromString,
962 )
963 self.UpdateSubscriber = channel.unary_unary(
964 '/voltha.VolthaLogicalLayer/UpdateSubscriber',
965 request_serializer=Subscriber.SerializeToString,
966 response_deserializer=Subscriber.FromString,
967 )
968 self.DeleteSubscriber = channel.unary_unary(
969 '/voltha.VolthaLogicalLayer/DeleteSubscriber',
970 request_serializer=ID.SerializeToString,
971 response_deserializer=NullMessage.FromString,
972 )
973 self.ListSubscribers = channel.unary_unary(
974 '/voltha.VolthaLogicalLayer/ListSubscribers',
975 request_serializer=NullMessage.SerializeToString,
976 response_deserializer=Subscribers.FromString,
977 )
978
979
980class VolthaLogicalLayerServicer(object):
981
982 def ListLogicalDevices(self, request, context):
983 """List logical devices owned by this Voltha instance
984 """
985 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
986 context.set_details('Method not implemented!')
987 raise NotImplementedError('Method not implemented!')
988
989 def GetLogicalDevice(self, request, context):
990 """Get detailed info on logical device owned by this Voltha instance
991 """
992 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
993 context.set_details('Method not implemented!')
994 raise NotImplementedError('Method not implemented!')
995
996 def ListLogicalDevicePorts(self, request, context):
997 """List ports of a logical device
998 """
999 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1000 context.set_details('Method not implemented!')
1001 raise NotImplementedError('Method not implemented!')
1002
1003 def UpdateFlowTable(self, request, context):
1004 """Update flow table for device
1005 """
1006 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1007 context.set_details('Method not implemented!')
1008 raise NotImplementedError('Method not implemented!')
1009
1010 def ListDeviceFlows(self, request, context):
1011 """List all flows of a logical device
1012 """
1013 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1014 context.set_details('Method not implemented!')
1015 raise NotImplementedError('Method not implemented!')
1016
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001017 def UpdateGroupTable(self, request, context):
1018 """Update group tabel for device
1019 """
1020 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1021 context.set_details('Method not implemented!')
1022 raise NotImplementedError('Method not implemented!')
1023
1024 def ListDeviceFlowGroups(self, request, context):
1025 """List all flow groups of a logical device
1026 """
1027 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1028 context.set_details('Method not implemented!')
1029 raise NotImplementedError('Method not implemented!')
1030
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001031 def CreateSubscriber(self, request, context):
1032 """Create a subscriber record
1033 """
1034 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1035 context.set_details('Method not implemented!')
1036 raise NotImplementedError('Method not implemented!')
1037
1038 def GetSubscriber(self, request, context):
1039 """Return an subscriber by ID
1040 """
1041 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1042 context.set_details('Method not implemented!')
1043 raise NotImplementedError('Method not implemented!')
1044
1045 def UpdateSubscriber(self, request, context):
1046 """Update an existing subscriber record by ID
1047 """
1048 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1049 context.set_details('Method not implemented!')
1050 raise NotImplementedError('Method not implemented!')
1051
1052 def DeleteSubscriber(self, request, context):
1053 """Delete a subscriber record by ID
1054 """
1055 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1056 context.set_details('Method not implemented!')
1057 raise NotImplementedError('Method not implemented!')
1058
1059 def ListSubscribers(self, request, context):
1060 """List subscribers
1061 """
1062 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1063 context.set_details('Method not implemented!')
1064 raise NotImplementedError('Method not implemented!')
1065
1066
1067def add_VolthaLogicalLayerServicer_to_server(servicer, server):
1068 rpc_method_handlers = {
1069 'ListLogicalDevices': grpc.unary_unary_rpc_method_handler(
1070 servicer.ListLogicalDevices,
1071 request_deserializer=NullMessage.FromString,
1072 response_serializer=LogicalDevices.SerializeToString,
1073 ),
1074 'GetLogicalDevice': grpc.unary_unary_rpc_method_handler(
1075 servicer.GetLogicalDevice,
1076 request_deserializer=ID.FromString,
1077 response_serializer=LogicalDeviceDetails.SerializeToString,
1078 ),
1079 'ListLogicalDevicePorts': grpc.unary_unary_rpc_method_handler(
1080 servicer.ListLogicalDevicePorts,
1081 request_deserializer=ID.FromString,
1082 response_serializer=LogicalPorts.SerializeToString,
1083 ),
1084 'UpdateFlowTable': grpc.unary_unary_rpc_method_handler(
1085 servicer.UpdateFlowTable,
1086 request_deserializer=FlowTableUpdate.FromString,
1087 response_serializer=NullMessage.SerializeToString,
1088 ),
1089 'ListDeviceFlows': grpc.unary_unary_rpc_method_handler(
1090 servicer.ListDeviceFlows,
1091 request_deserializer=ID.FromString,
1092 response_serializer=Flows.SerializeToString,
1093 ),
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001094 'UpdateGroupTable': grpc.unary_unary_rpc_method_handler(
1095 servicer.UpdateGroupTable,
1096 request_deserializer=GroupTableUpdate.FromString,
1097 response_serializer=NullMessage.SerializeToString,
1098 ),
1099 'ListDeviceFlowGroups': grpc.unary_unary_rpc_method_handler(
1100 servicer.ListDeviceFlowGroups,
1101 request_deserializer=ID.FromString,
1102 response_serializer=FlowGroups.SerializeToString,
1103 ),
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001104 'CreateSubscriber': grpc.unary_unary_rpc_method_handler(
1105 servicer.CreateSubscriber,
1106 request_deserializer=Subscriber.FromString,
1107 response_serializer=Subscriber.SerializeToString,
1108 ),
1109 'GetSubscriber': grpc.unary_unary_rpc_method_handler(
1110 servicer.GetSubscriber,
1111 request_deserializer=ID.FromString,
1112 response_serializer=Subscriber.SerializeToString,
1113 ),
1114 'UpdateSubscriber': grpc.unary_unary_rpc_method_handler(
1115 servicer.UpdateSubscriber,
1116 request_deserializer=Subscriber.FromString,
1117 response_serializer=Subscriber.SerializeToString,
1118 ),
1119 'DeleteSubscriber': grpc.unary_unary_rpc_method_handler(
1120 servicer.DeleteSubscriber,
1121 request_deserializer=ID.FromString,
1122 response_serializer=NullMessage.SerializeToString,
1123 ),
1124 'ListSubscribers': grpc.unary_unary_rpc_method_handler(
1125 servicer.ListSubscribers,
1126 request_deserializer=NullMessage.FromString,
1127 response_serializer=Subscribers.SerializeToString,
1128 ),
1129 }
1130 generic_handler = grpc.method_handlers_generic_handler(
1131 'voltha.VolthaLogicalLayer', rpc_method_handlers)
1132 server.add_generic_rpc_handlers((generic_handler,))
1133
1134
1135class BetaVolthaLogicalLayerServicer(object):
1136 def ListLogicalDevices(self, request, context):
1137 """List logical devices owned by this Voltha instance
1138 """
1139 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1140 def GetLogicalDevice(self, request, context):
1141 """Get detailed info on logical device owned by this Voltha instance
1142 """
1143 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1144 def ListLogicalDevicePorts(self, request, context):
1145 """List ports of a logical device
1146 """
1147 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1148 def UpdateFlowTable(self, request, context):
1149 """Update flow table for device
1150 """
1151 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1152 def ListDeviceFlows(self, request, context):
1153 """List all flows of a logical device
1154 """
1155 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001156 def UpdateGroupTable(self, request, context):
1157 """Update group tabel for device
1158 """
1159 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1160 def ListDeviceFlowGroups(self, request, context):
1161 """List all flow groups of a logical device
1162 """
1163 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001164 def CreateSubscriber(self, request, context):
1165 """Create a subscriber record
1166 """
1167 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1168 def GetSubscriber(self, request, context):
1169 """Return an subscriber by ID
1170 """
1171 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1172 def UpdateSubscriber(self, request, context):
1173 """Update an existing subscriber record by ID
1174 """
1175 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1176 def DeleteSubscriber(self, request, context):
1177 """Delete a subscriber record by ID
1178 """
1179 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1180 def ListSubscribers(self, request, context):
1181 """List subscribers
1182 """
1183 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1184
1185
1186class BetaVolthaLogicalLayerStub(object):
1187 def ListLogicalDevices(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1188 """List logical devices owned by this Voltha instance
1189 """
1190 raise NotImplementedError()
1191 ListLogicalDevices.future = None
1192 def GetLogicalDevice(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1193 """Get detailed info on logical device owned by this Voltha instance
1194 """
1195 raise NotImplementedError()
1196 GetLogicalDevice.future = None
1197 def ListLogicalDevicePorts(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1198 """List ports of a logical device
1199 """
1200 raise NotImplementedError()
1201 ListLogicalDevicePorts.future = None
1202 def UpdateFlowTable(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1203 """Update flow table for device
1204 """
1205 raise NotImplementedError()
1206 UpdateFlowTable.future = None
1207 def ListDeviceFlows(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1208 """List all flows of a logical device
1209 """
1210 raise NotImplementedError()
1211 ListDeviceFlows.future = None
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001212 def UpdateGroupTable(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1213 """Update group tabel for device
1214 """
1215 raise NotImplementedError()
1216 UpdateGroupTable.future = None
1217 def ListDeviceFlowGroups(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1218 """List all flow groups of a logical device
1219 """
1220 raise NotImplementedError()
1221 ListDeviceFlowGroups.future = None
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001222 def CreateSubscriber(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1223 """Create a subscriber record
1224 """
1225 raise NotImplementedError()
1226 CreateSubscriber.future = None
1227 def GetSubscriber(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1228 """Return an subscriber by ID
1229 """
1230 raise NotImplementedError()
1231 GetSubscriber.future = None
1232 def UpdateSubscriber(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1233 """Update an existing subscriber record by ID
1234 """
1235 raise NotImplementedError()
1236 UpdateSubscriber.future = None
1237 def DeleteSubscriber(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1238 """Delete a subscriber record by ID
1239 """
1240 raise NotImplementedError()
1241 DeleteSubscriber.future = None
1242 def ListSubscribers(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1243 """List subscribers
1244 """
1245 raise NotImplementedError()
1246 ListSubscribers.future = None
1247
1248
1249def beta_create_VolthaLogicalLayer_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None):
1250 request_deserializers = {
1251 ('voltha.VolthaLogicalLayer', 'CreateSubscriber'): Subscriber.FromString,
1252 ('voltha.VolthaLogicalLayer', 'DeleteSubscriber'): ID.FromString,
1253 ('voltha.VolthaLogicalLayer', 'GetLogicalDevice'): ID.FromString,
1254 ('voltha.VolthaLogicalLayer', 'GetSubscriber'): ID.FromString,
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001255 ('voltha.VolthaLogicalLayer', 'ListDeviceFlowGroups'): ID.FromString,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001256 ('voltha.VolthaLogicalLayer', 'ListDeviceFlows'): ID.FromString,
1257 ('voltha.VolthaLogicalLayer', 'ListLogicalDevicePorts'): ID.FromString,
1258 ('voltha.VolthaLogicalLayer', 'ListLogicalDevices'): NullMessage.FromString,
1259 ('voltha.VolthaLogicalLayer', 'ListSubscribers'): NullMessage.FromString,
1260 ('voltha.VolthaLogicalLayer', 'UpdateFlowTable'): FlowTableUpdate.FromString,
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001261 ('voltha.VolthaLogicalLayer', 'UpdateGroupTable'): GroupTableUpdate.FromString,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001262 ('voltha.VolthaLogicalLayer', 'UpdateSubscriber'): Subscriber.FromString,
1263 }
1264 response_serializers = {
1265 ('voltha.VolthaLogicalLayer', 'CreateSubscriber'): Subscriber.SerializeToString,
1266 ('voltha.VolthaLogicalLayer', 'DeleteSubscriber'): NullMessage.SerializeToString,
1267 ('voltha.VolthaLogicalLayer', 'GetLogicalDevice'): LogicalDeviceDetails.SerializeToString,
1268 ('voltha.VolthaLogicalLayer', 'GetSubscriber'): Subscriber.SerializeToString,
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001269 ('voltha.VolthaLogicalLayer', 'ListDeviceFlowGroups'): FlowGroups.SerializeToString,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001270 ('voltha.VolthaLogicalLayer', 'ListDeviceFlows'): Flows.SerializeToString,
1271 ('voltha.VolthaLogicalLayer', 'ListLogicalDevicePorts'): LogicalPorts.SerializeToString,
1272 ('voltha.VolthaLogicalLayer', 'ListLogicalDevices'): LogicalDevices.SerializeToString,
1273 ('voltha.VolthaLogicalLayer', 'ListSubscribers'): Subscribers.SerializeToString,
1274 ('voltha.VolthaLogicalLayer', 'UpdateFlowTable'): NullMessage.SerializeToString,
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001275 ('voltha.VolthaLogicalLayer', 'UpdateGroupTable'): NullMessage.SerializeToString,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001276 ('voltha.VolthaLogicalLayer', 'UpdateSubscriber'): Subscriber.SerializeToString,
1277 }
1278 method_implementations = {
1279 ('voltha.VolthaLogicalLayer', 'CreateSubscriber'): face_utilities.unary_unary_inline(servicer.CreateSubscriber),
1280 ('voltha.VolthaLogicalLayer', 'DeleteSubscriber'): face_utilities.unary_unary_inline(servicer.DeleteSubscriber),
1281 ('voltha.VolthaLogicalLayer', 'GetLogicalDevice'): face_utilities.unary_unary_inline(servicer.GetLogicalDevice),
1282 ('voltha.VolthaLogicalLayer', 'GetSubscriber'): face_utilities.unary_unary_inline(servicer.GetSubscriber),
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001283 ('voltha.VolthaLogicalLayer', 'ListDeviceFlowGroups'): face_utilities.unary_unary_inline(servicer.ListDeviceFlowGroups),
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001284 ('voltha.VolthaLogicalLayer', 'ListDeviceFlows'): face_utilities.unary_unary_inline(servicer.ListDeviceFlows),
1285 ('voltha.VolthaLogicalLayer', 'ListLogicalDevicePorts'): face_utilities.unary_unary_inline(servicer.ListLogicalDevicePorts),
1286 ('voltha.VolthaLogicalLayer', 'ListLogicalDevices'): face_utilities.unary_unary_inline(servicer.ListLogicalDevices),
1287 ('voltha.VolthaLogicalLayer', 'ListSubscribers'): face_utilities.unary_unary_inline(servicer.ListSubscribers),
1288 ('voltha.VolthaLogicalLayer', 'UpdateFlowTable'): face_utilities.unary_unary_inline(servicer.UpdateFlowTable),
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001289 ('voltha.VolthaLogicalLayer', 'UpdateGroupTable'): face_utilities.unary_unary_inline(servicer.UpdateGroupTable),
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001290 ('voltha.VolthaLogicalLayer', 'UpdateSubscriber'): face_utilities.unary_unary_inline(servicer.UpdateSubscriber),
1291 }
1292 server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout)
1293 return beta_implementations.server(method_implementations, options=server_options)
1294
1295
1296def beta_create_VolthaLogicalLayer_stub(channel, host=None, metadata_transformer=None, pool=None, pool_size=None):
1297 request_serializers = {
1298 ('voltha.VolthaLogicalLayer', 'CreateSubscriber'): Subscriber.SerializeToString,
1299 ('voltha.VolthaLogicalLayer', 'DeleteSubscriber'): ID.SerializeToString,
1300 ('voltha.VolthaLogicalLayer', 'GetLogicalDevice'): ID.SerializeToString,
1301 ('voltha.VolthaLogicalLayer', 'GetSubscriber'): ID.SerializeToString,
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001302 ('voltha.VolthaLogicalLayer', 'ListDeviceFlowGroups'): ID.SerializeToString,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001303 ('voltha.VolthaLogicalLayer', 'ListDeviceFlows'): ID.SerializeToString,
1304 ('voltha.VolthaLogicalLayer', 'ListLogicalDevicePorts'): ID.SerializeToString,
1305 ('voltha.VolthaLogicalLayer', 'ListLogicalDevices'): NullMessage.SerializeToString,
1306 ('voltha.VolthaLogicalLayer', 'ListSubscribers'): NullMessage.SerializeToString,
1307 ('voltha.VolthaLogicalLayer', 'UpdateFlowTable'): FlowTableUpdate.SerializeToString,
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001308 ('voltha.VolthaLogicalLayer', 'UpdateGroupTable'): GroupTableUpdate.SerializeToString,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001309 ('voltha.VolthaLogicalLayer', 'UpdateSubscriber'): Subscriber.SerializeToString,
1310 }
1311 response_deserializers = {
1312 ('voltha.VolthaLogicalLayer', 'CreateSubscriber'): Subscriber.FromString,
1313 ('voltha.VolthaLogicalLayer', 'DeleteSubscriber'): NullMessage.FromString,
1314 ('voltha.VolthaLogicalLayer', 'GetLogicalDevice'): LogicalDeviceDetails.FromString,
1315 ('voltha.VolthaLogicalLayer', 'GetSubscriber'): Subscriber.FromString,
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001316 ('voltha.VolthaLogicalLayer', 'ListDeviceFlowGroups'): FlowGroups.FromString,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001317 ('voltha.VolthaLogicalLayer', 'ListDeviceFlows'): Flows.FromString,
1318 ('voltha.VolthaLogicalLayer', 'ListLogicalDevicePorts'): LogicalPorts.FromString,
1319 ('voltha.VolthaLogicalLayer', 'ListLogicalDevices'): LogicalDevices.FromString,
1320 ('voltha.VolthaLogicalLayer', 'ListSubscribers'): Subscribers.FromString,
1321 ('voltha.VolthaLogicalLayer', 'UpdateFlowTable'): NullMessage.FromString,
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001322 ('voltha.VolthaLogicalLayer', 'UpdateGroupTable'): NullMessage.FromString,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001323 ('voltha.VolthaLogicalLayer', 'UpdateSubscriber'): Subscriber.FromString,
1324 }
1325 cardinalities = {
1326 'CreateSubscriber': cardinality.Cardinality.UNARY_UNARY,
1327 'DeleteSubscriber': cardinality.Cardinality.UNARY_UNARY,
1328 'GetLogicalDevice': cardinality.Cardinality.UNARY_UNARY,
1329 'GetSubscriber': cardinality.Cardinality.UNARY_UNARY,
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001330 'ListDeviceFlowGroups': cardinality.Cardinality.UNARY_UNARY,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001331 'ListDeviceFlows': cardinality.Cardinality.UNARY_UNARY,
1332 'ListLogicalDevicePorts': cardinality.Cardinality.UNARY_UNARY,
1333 'ListLogicalDevices': cardinality.Cardinality.UNARY_UNARY,
1334 'ListSubscribers': cardinality.Cardinality.UNARY_UNARY,
1335 'UpdateFlowTable': cardinality.Cardinality.UNARY_UNARY,
Zsolt Haraszti8a774382016-10-24 18:25:54 -07001336 'UpdateGroupTable': cardinality.Cardinality.UNARY_UNARY,
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -07001337 'UpdateSubscriber': cardinality.Cardinality.UNARY_UNARY,
1338 }
1339 stub_options = beta_implementations.stub_options(host=host, metadata_transformer=metadata_transformer, request_serializers=request_serializers, response_deserializers=response_deserializers, thread_pool=pool, thread_pool_size=pool_size)
1340 return beta_implementations.dynamic_stub(channel, 'voltha.VolthaLogicalLayer', cardinalities, options=stub_options)
1341
1342
1343class ExampleServiceStub(object):
1344 """(placeholder) This is an example service
1345 """
1346
1347 def __init__(self, channel):
1348 """Constructor.
1349
1350 Args:
1351 channel: A grpc.Channel.
1352 """
1353 self.CreateAddress = channel.unary_unary(
1354 '/voltha.ExampleService/CreateAddress',
1355 request_serializer=Address.SerializeToString,
1356 response_deserializer=Address.FromString,
1357 )
1358 self.GetAddress = channel.unary_unary(
1359 '/voltha.ExampleService/GetAddress',
1360 request_serializer=ID.SerializeToString,
1361 response_deserializer=Address.FromString,
1362 )
1363 self.UpdateAddress = channel.unary_unary(
1364 '/voltha.ExampleService/UpdateAddress',
1365 request_serializer=Address.SerializeToString,
1366 response_deserializer=Address.FromString,
1367 )
1368 self.DeleteAddress = channel.unary_unary(
1369 '/voltha.ExampleService/DeleteAddress',
1370 request_serializer=ID.SerializeToString,
1371 response_deserializer=NullMessage.FromString,
1372 )
1373 self.ListAddresses = channel.unary_unary(
1374 '/voltha.ExampleService/ListAddresses',
1375 request_serializer=NullMessage.SerializeToString,
1376 response_deserializer=Addresses.FromString,
1377 )
1378
1379
1380class ExampleServiceServicer(object):
1381 """(placeholder) This is an example service
1382 """
1383
1384 def CreateAddress(self, request, context):
1385 """Create an address record
1386 """
1387 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1388 context.set_details('Method not implemented!')
1389 raise NotImplementedError('Method not implemented!')
1390
1391 def GetAddress(self, request, context):
1392 """Return an address by ID
1393 """
1394 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1395 context.set_details('Method not implemented!')
1396 raise NotImplementedError('Method not implemented!')
1397
1398 def UpdateAddress(self, request, context):
1399 """Update an existing address record by ID
1400 """
1401 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1402 context.set_details('Method not implemented!')
1403 raise NotImplementedError('Method not implemented!')
1404
1405 def DeleteAddress(self, request, context):
1406 """Delete an address record by ID
1407 """
1408 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1409 context.set_details('Method not implemented!')
1410 raise NotImplementedError('Method not implemented!')
1411
1412 def ListAddresses(self, request, context):
1413 """Return a bit more complex objects
1414 """
1415 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1416 context.set_details('Method not implemented!')
1417 raise NotImplementedError('Method not implemented!')
1418
1419
1420def add_ExampleServiceServicer_to_server(servicer, server):
1421 rpc_method_handlers = {
1422 'CreateAddress': grpc.unary_unary_rpc_method_handler(
1423 servicer.CreateAddress,
1424 request_deserializer=Address.FromString,
1425 response_serializer=Address.SerializeToString,
1426 ),
1427 'GetAddress': grpc.unary_unary_rpc_method_handler(
1428 servicer.GetAddress,
1429 request_deserializer=ID.FromString,
1430 response_serializer=Address.SerializeToString,
1431 ),
1432 'UpdateAddress': grpc.unary_unary_rpc_method_handler(
1433 servicer.UpdateAddress,
1434 request_deserializer=Address.FromString,
1435 response_serializer=Address.SerializeToString,
1436 ),
1437 'DeleteAddress': grpc.unary_unary_rpc_method_handler(
1438 servicer.DeleteAddress,
1439 request_deserializer=ID.FromString,
1440 response_serializer=NullMessage.SerializeToString,
1441 ),
1442 'ListAddresses': grpc.unary_unary_rpc_method_handler(
1443 servicer.ListAddresses,
1444 request_deserializer=NullMessage.FromString,
1445 response_serializer=Addresses.SerializeToString,
1446 ),
1447 }
1448 generic_handler = grpc.method_handlers_generic_handler(
1449 'voltha.ExampleService', rpc_method_handlers)
1450 server.add_generic_rpc_handlers((generic_handler,))
1451
1452
1453class BetaExampleServiceServicer(object):
1454 """(placeholder) This is an example service
1455 """
1456 def CreateAddress(self, request, context):
1457 """Create an address record
1458 """
1459 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1460 def GetAddress(self, request, context):
1461 """Return an address by ID
1462 """
1463 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1464 def UpdateAddress(self, request, context):
1465 """Update an existing address record by ID
1466 """
1467 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1468 def DeleteAddress(self, request, context):
1469 """Delete an address record by ID
1470 """
1471 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1472 def ListAddresses(self, request, context):
1473 """Return a bit more complex objects
1474 """
1475 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1476
1477
1478class BetaExampleServiceStub(object):
1479 """(placeholder) This is an example service
1480 """
1481 def CreateAddress(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1482 """Create an address record
1483 """
1484 raise NotImplementedError()
1485 CreateAddress.future = None
1486 def GetAddress(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1487 """Return an address by ID
1488 """
1489 raise NotImplementedError()
1490 GetAddress.future = None
1491 def UpdateAddress(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1492 """Update an existing address record by ID
1493 """
1494 raise NotImplementedError()
1495 UpdateAddress.future = None
1496 def DeleteAddress(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1497 """Delete an address record by ID
1498 """
1499 raise NotImplementedError()
1500 DeleteAddress.future = None
1501 def ListAddresses(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1502 """Return a bit more complex objects
1503 """
1504 raise NotImplementedError()
1505 ListAddresses.future = None
1506
1507
1508def beta_create_ExampleService_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None):
1509 request_deserializers = {
1510 ('voltha.ExampleService', 'CreateAddress'): Address.FromString,
1511 ('voltha.ExampleService', 'DeleteAddress'): ID.FromString,
1512 ('voltha.ExampleService', 'GetAddress'): ID.FromString,
1513 ('voltha.ExampleService', 'ListAddresses'): NullMessage.FromString,
1514 ('voltha.ExampleService', 'UpdateAddress'): Address.FromString,
1515 }
1516 response_serializers = {
1517 ('voltha.ExampleService', 'CreateAddress'): Address.SerializeToString,
1518 ('voltha.ExampleService', 'DeleteAddress'): NullMessage.SerializeToString,
1519 ('voltha.ExampleService', 'GetAddress'): Address.SerializeToString,
1520 ('voltha.ExampleService', 'ListAddresses'): Addresses.SerializeToString,
1521 ('voltha.ExampleService', 'UpdateAddress'): Address.SerializeToString,
1522 }
1523 method_implementations = {
1524 ('voltha.ExampleService', 'CreateAddress'): face_utilities.unary_unary_inline(servicer.CreateAddress),
1525 ('voltha.ExampleService', 'DeleteAddress'): face_utilities.unary_unary_inline(servicer.DeleteAddress),
1526 ('voltha.ExampleService', 'GetAddress'): face_utilities.unary_unary_inline(servicer.GetAddress),
1527 ('voltha.ExampleService', 'ListAddresses'): face_utilities.unary_unary_inline(servicer.ListAddresses),
1528 ('voltha.ExampleService', 'UpdateAddress'): face_utilities.unary_unary_inline(servicer.UpdateAddress),
1529 }
1530 server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout)
1531 return beta_implementations.server(method_implementations, options=server_options)
1532
1533
1534def beta_create_ExampleService_stub(channel, host=None, metadata_transformer=None, pool=None, pool_size=None):
1535 request_serializers = {
1536 ('voltha.ExampleService', 'CreateAddress'): Address.SerializeToString,
1537 ('voltha.ExampleService', 'DeleteAddress'): ID.SerializeToString,
1538 ('voltha.ExampleService', 'GetAddress'): ID.SerializeToString,
1539 ('voltha.ExampleService', 'ListAddresses'): NullMessage.SerializeToString,
1540 ('voltha.ExampleService', 'UpdateAddress'): Address.SerializeToString,
1541 }
1542 response_deserializers = {
1543 ('voltha.ExampleService', 'CreateAddress'): Address.FromString,
1544 ('voltha.ExampleService', 'DeleteAddress'): NullMessage.FromString,
1545 ('voltha.ExampleService', 'GetAddress'): Address.FromString,
1546 ('voltha.ExampleService', 'ListAddresses'): Addresses.FromString,
1547 ('voltha.ExampleService', 'UpdateAddress'): Address.FromString,
1548 }
1549 cardinalities = {
1550 'CreateAddress': cardinality.Cardinality.UNARY_UNARY,
1551 'DeleteAddress': cardinality.Cardinality.UNARY_UNARY,
1552 'GetAddress': cardinality.Cardinality.UNARY_UNARY,
1553 'ListAddresses': cardinality.Cardinality.UNARY_UNARY,
1554 'UpdateAddress': cardinality.Cardinality.UNARY_UNARY,
1555 }
1556 stub_options = beta_implementations.stub_options(host=host, metadata_transformer=metadata_transformer, request_serializers=request_serializers, response_deserializers=response_deserializers, thread_pool=pool, thread_pool_size=pool_size)
1557 return beta_implementations.dynamic_stub(channel, 'voltha.ExampleService', cardinalities, options=stub_options)
1558
1559
1560class OpenFlowStub(object):
1561
1562 def __init__(self, channel):
1563 """Constructor.
1564
1565 Args:
1566 channel: A grpc.Channel.
1567 """
1568 self.GetHello = channel.unary_unary(
1569 '/voltha.OpenFlow/GetHello',
1570 request_serializer=openflow__13__pb2.ofp_hello.SerializeToString,
1571 response_deserializer=openflow__13__pb2.ofp_hello.FromString,
1572 )
1573 self.EchoRequest = channel.unary_unary(
1574 '/voltha.OpenFlow/EchoRequest',
1575 request_serializer=openflow__13__pb2.ofp_header.SerializeToString,
1576 response_deserializer=openflow__13__pb2.ofp_header.FromString,
1577 )
1578 self.ExperimenterRequest = channel.unary_unary(
1579 '/voltha.OpenFlow/ExperimenterRequest',
1580 request_serializer=openflow__13__pb2.ofp_experimenter_header.SerializeToString,
1581 response_deserializer=openflow__13__pb2.ofp_experimenter_header.FromString,
1582 )
1583 self.GetSwitchFeatures = channel.unary_unary(
1584 '/voltha.OpenFlow/GetSwitchFeatures',
1585 request_serializer=openflow__13__pb2.ofp_header.SerializeToString,
1586 response_deserializer=openflow__13__pb2.ofp_switch_features.FromString,
1587 )
1588 self.GetSwitchConfig = channel.unary_unary(
1589 '/voltha.OpenFlow/GetSwitchConfig',
1590 request_serializer=openflow__13__pb2.ofp_header.SerializeToString,
1591 response_deserializer=openflow__13__pb2.ofp_switch_config.FromString,
1592 )
1593 self.SetConfig = channel.unary_unary(
1594 '/voltha.OpenFlow/SetConfig',
1595 request_serializer=openflow__13__pb2.ofp_switch_config.SerializeToString,
1596 response_deserializer=openflow__13__pb2.ofp_header.FromString,
1597 )
1598 self.ReceivePacketInMessages = channel.unary_stream(
1599 '/voltha.OpenFlow/ReceivePacketInMessages',
1600 request_serializer=openflow__13__pb2.ofp_header.SerializeToString,
1601 response_deserializer=openflow__13__pb2.ofp_packet_in.FromString,
1602 )
1603 self.SendPacketOutMessages = channel.unary_unary(
1604 '/voltha.OpenFlow/SendPacketOutMessages',
1605 request_serializer=openflow__13__pb2.ofp_packet_out.SerializeToString,
1606 response_deserializer=openflow__13__pb2.ofp_header.FromString,
1607 )
1608
1609
1610class OpenFlowServicer(object):
1611
1612 def GetHello(self, request, context):
1613 """
1614 Hello message handshake, initiated by the client (controller)
1615 TODO http option
1616 """
1617 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1618 context.set_details('Method not implemented!')
1619 raise NotImplementedError('Method not implemented!')
1620
1621 def EchoRequest(self, request, context):
1622 """
1623 Echo request / reply, initiated by the client (controller)
1624 TODO http option
1625 """
1626 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1627 context.set_details('Method not implemented!')
1628 raise NotImplementedError('Method not implemented!')
1629
1630 def ExperimenterRequest(self, request, context):
1631 """
1632 Experimental (extension) RPC
1633 TODO http option
1634 """
1635 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1636 context.set_details('Method not implemented!')
1637 raise NotImplementedError('Method not implemented!')
1638
1639 def GetSwitchFeatures(self, request, context):
1640 """
1641 Get Switch Features
1642 TODO http option
1643 """
1644 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1645 context.set_details('Method not implemented!')
1646 raise NotImplementedError('Method not implemented!')
1647
1648 def GetSwitchConfig(self, request, context):
1649 """
1650 Get Switch Config
1651 TODO http option
1652 """
1653 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1654 context.set_details('Method not implemented!')
1655 raise NotImplementedError('Method not implemented!')
1656
1657 def SetConfig(self, request, context):
1658 """
1659 Set Config
1660 TODO http option
1661 """
1662 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1663 context.set_details('Method not implemented!')
1664 raise NotImplementedError('Method not implemented!')
1665
1666 def ReceivePacketInMessages(self, request, context):
1667 """
1668 Receive Packet-In messages
1669 TODO http option
1670 """
1671 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1672 context.set_details('Method not implemented!')
1673 raise NotImplementedError('Method not implemented!')
1674
1675 def SendPacketOutMessages(self, request, context):
1676 """
1677 Send Packet-Out messages
1678 TODO http option
1679 """
1680 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1681 context.set_details('Method not implemented!')
1682 raise NotImplementedError('Method not implemented!')
1683
1684
1685def add_OpenFlowServicer_to_server(servicer, server):
1686 rpc_method_handlers = {
1687 'GetHello': grpc.unary_unary_rpc_method_handler(
1688 servicer.GetHello,
1689 request_deserializer=openflow__13__pb2.ofp_hello.FromString,
1690 response_serializer=openflow__13__pb2.ofp_hello.SerializeToString,
1691 ),
1692 'EchoRequest': grpc.unary_unary_rpc_method_handler(
1693 servicer.EchoRequest,
1694 request_deserializer=openflow__13__pb2.ofp_header.FromString,
1695 response_serializer=openflow__13__pb2.ofp_header.SerializeToString,
1696 ),
1697 'ExperimenterRequest': grpc.unary_unary_rpc_method_handler(
1698 servicer.ExperimenterRequest,
1699 request_deserializer=openflow__13__pb2.ofp_experimenter_header.FromString,
1700 response_serializer=openflow__13__pb2.ofp_experimenter_header.SerializeToString,
1701 ),
1702 'GetSwitchFeatures': grpc.unary_unary_rpc_method_handler(
1703 servicer.GetSwitchFeatures,
1704 request_deserializer=openflow__13__pb2.ofp_header.FromString,
1705 response_serializer=openflow__13__pb2.ofp_switch_features.SerializeToString,
1706 ),
1707 'GetSwitchConfig': grpc.unary_unary_rpc_method_handler(
1708 servicer.GetSwitchConfig,
1709 request_deserializer=openflow__13__pb2.ofp_header.FromString,
1710 response_serializer=openflow__13__pb2.ofp_switch_config.SerializeToString,
1711 ),
1712 'SetConfig': grpc.unary_unary_rpc_method_handler(
1713 servicer.SetConfig,
1714 request_deserializer=openflow__13__pb2.ofp_switch_config.FromString,
1715 response_serializer=openflow__13__pb2.ofp_header.SerializeToString,
1716 ),
1717 'ReceivePacketInMessages': grpc.unary_stream_rpc_method_handler(
1718 servicer.ReceivePacketInMessages,
1719 request_deserializer=openflow__13__pb2.ofp_header.FromString,
1720 response_serializer=openflow__13__pb2.ofp_packet_in.SerializeToString,
1721 ),
1722 'SendPacketOutMessages': grpc.unary_unary_rpc_method_handler(
1723 servicer.SendPacketOutMessages,
1724 request_deserializer=openflow__13__pb2.ofp_packet_out.FromString,
1725 response_serializer=openflow__13__pb2.ofp_header.SerializeToString,
1726 ),
1727 }
1728 generic_handler = grpc.method_handlers_generic_handler(
1729 'voltha.OpenFlow', rpc_method_handlers)
1730 server.add_generic_rpc_handlers((generic_handler,))
1731
1732
1733class BetaOpenFlowServicer(object):
1734 def GetHello(self, request, context):
1735 """
1736 Hello message handshake, initiated by the client (controller)
1737 TODO http option
1738 """
1739 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1740 def EchoRequest(self, request, context):
1741 """
1742 Echo request / reply, initiated by the client (controller)
1743 TODO http option
1744 """
1745 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1746 def ExperimenterRequest(self, request, context):
1747 """
1748 Experimental (extension) RPC
1749 TODO http option
1750 """
1751 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1752 def GetSwitchFeatures(self, request, context):
1753 """
1754 Get Switch Features
1755 TODO http option
1756 """
1757 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1758 def GetSwitchConfig(self, request, context):
1759 """
1760 Get Switch Config
1761 TODO http option
1762 """
1763 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1764 def SetConfig(self, request, context):
1765 """
1766 Set Config
1767 TODO http option
1768 """
1769 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1770 def ReceivePacketInMessages(self, request, context):
1771 """
1772 Receive Packet-In messages
1773 TODO http option
1774 """
1775 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1776 def SendPacketOutMessages(self, request, context):
1777 """
1778 Send Packet-Out messages
1779 TODO http option
1780 """
1781 context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)
1782
1783
1784class BetaOpenFlowStub(object):
1785 def GetHello(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1786 """
1787 Hello message handshake, initiated by the client (controller)
1788 TODO http option
1789 """
1790 raise NotImplementedError()
1791 GetHello.future = None
1792 def EchoRequest(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1793 """
1794 Echo request / reply, initiated by the client (controller)
1795 TODO http option
1796 """
1797 raise NotImplementedError()
1798 EchoRequest.future = None
1799 def ExperimenterRequest(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1800 """
1801 Experimental (extension) RPC
1802 TODO http option
1803 """
1804 raise NotImplementedError()
1805 ExperimenterRequest.future = None
1806 def GetSwitchFeatures(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1807 """
1808 Get Switch Features
1809 TODO http option
1810 """
1811 raise NotImplementedError()
1812 GetSwitchFeatures.future = None
1813 def GetSwitchConfig(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1814 """
1815 Get Switch Config
1816 TODO http option
1817 """
1818 raise NotImplementedError()
1819 GetSwitchConfig.future = None
1820 def SetConfig(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1821 """
1822 Set Config
1823 TODO http option
1824 """
1825 raise NotImplementedError()
1826 SetConfig.future = None
1827 def ReceivePacketInMessages(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1828 """
1829 Receive Packet-In messages
1830 TODO http option
1831 """
1832 raise NotImplementedError()
1833 def SendPacketOutMessages(self, request, timeout, metadata=None, with_call=False, protocol_options=None):
1834 """
1835 Send Packet-Out messages
1836 TODO http option
1837 """
1838 raise NotImplementedError()
1839 SendPacketOutMessages.future = None
1840
1841
1842def beta_create_OpenFlow_server(servicer, pool=None, pool_size=None, default_timeout=None, maximum_timeout=None):
1843 request_deserializers = {
1844 ('voltha.OpenFlow', 'EchoRequest'): openflow__13__pb2.ofp_header.FromString,
1845 ('voltha.OpenFlow', 'ExperimenterRequest'): openflow__13__pb2.ofp_experimenter_header.FromString,
1846 ('voltha.OpenFlow', 'GetHello'): openflow__13__pb2.ofp_hello.FromString,
1847 ('voltha.OpenFlow', 'GetSwitchConfig'): openflow__13__pb2.ofp_header.FromString,
1848 ('voltha.OpenFlow', 'GetSwitchFeatures'): openflow__13__pb2.ofp_header.FromString,
1849 ('voltha.OpenFlow', 'ReceivePacketInMessages'): openflow__13__pb2.ofp_header.FromString,
1850 ('voltha.OpenFlow', 'SendPacketOutMessages'): openflow__13__pb2.ofp_packet_out.FromString,
1851 ('voltha.OpenFlow', 'SetConfig'): openflow__13__pb2.ofp_switch_config.FromString,
1852 }
1853 response_serializers = {
1854 ('voltha.OpenFlow', 'EchoRequest'): openflow__13__pb2.ofp_header.SerializeToString,
1855 ('voltha.OpenFlow', 'ExperimenterRequest'): openflow__13__pb2.ofp_experimenter_header.SerializeToString,
1856 ('voltha.OpenFlow', 'GetHello'): openflow__13__pb2.ofp_hello.SerializeToString,
1857 ('voltha.OpenFlow', 'GetSwitchConfig'): openflow__13__pb2.ofp_switch_config.SerializeToString,
1858 ('voltha.OpenFlow', 'GetSwitchFeatures'): openflow__13__pb2.ofp_switch_features.SerializeToString,
1859 ('voltha.OpenFlow', 'ReceivePacketInMessages'): openflow__13__pb2.ofp_packet_in.SerializeToString,
1860 ('voltha.OpenFlow', 'SendPacketOutMessages'): openflow__13__pb2.ofp_header.SerializeToString,
1861 ('voltha.OpenFlow', 'SetConfig'): openflow__13__pb2.ofp_header.SerializeToString,
1862 }
1863 method_implementations = {
1864 ('voltha.OpenFlow', 'EchoRequest'): face_utilities.unary_unary_inline(servicer.EchoRequest),
1865 ('voltha.OpenFlow', 'ExperimenterRequest'): face_utilities.unary_unary_inline(servicer.ExperimenterRequest),
1866 ('voltha.OpenFlow', 'GetHello'): face_utilities.unary_unary_inline(servicer.GetHello),
1867 ('voltha.OpenFlow', 'GetSwitchConfig'): face_utilities.unary_unary_inline(servicer.GetSwitchConfig),
1868 ('voltha.OpenFlow', 'GetSwitchFeatures'): face_utilities.unary_unary_inline(servicer.GetSwitchFeatures),
1869 ('voltha.OpenFlow', 'ReceivePacketInMessages'): face_utilities.unary_stream_inline(servicer.ReceivePacketInMessages),
1870 ('voltha.OpenFlow', 'SendPacketOutMessages'): face_utilities.unary_unary_inline(servicer.SendPacketOutMessages),
1871 ('voltha.OpenFlow', 'SetConfig'): face_utilities.unary_unary_inline(servicer.SetConfig),
1872 }
1873 server_options = beta_implementations.server_options(request_deserializers=request_deserializers, response_serializers=response_serializers, thread_pool=pool, thread_pool_size=pool_size, default_timeout=default_timeout, maximum_timeout=maximum_timeout)
1874 return beta_implementations.server(method_implementations, options=server_options)
1875
1876
1877def beta_create_OpenFlow_stub(channel, host=None, metadata_transformer=None, pool=None, pool_size=None):
1878 request_serializers = {
1879 ('voltha.OpenFlow', 'EchoRequest'): openflow__13__pb2.ofp_header.SerializeToString,
1880 ('voltha.OpenFlow', 'ExperimenterRequest'): openflow__13__pb2.ofp_experimenter_header.SerializeToString,
1881 ('voltha.OpenFlow', 'GetHello'): openflow__13__pb2.ofp_hello.SerializeToString,
1882 ('voltha.OpenFlow', 'GetSwitchConfig'): openflow__13__pb2.ofp_header.SerializeToString,
1883 ('voltha.OpenFlow', 'GetSwitchFeatures'): openflow__13__pb2.ofp_header.SerializeToString,
1884 ('voltha.OpenFlow', 'ReceivePacketInMessages'): openflow__13__pb2.ofp_header.SerializeToString,
1885 ('voltha.OpenFlow', 'SendPacketOutMessages'): openflow__13__pb2.ofp_packet_out.SerializeToString,
1886 ('voltha.OpenFlow', 'SetConfig'): openflow__13__pb2.ofp_switch_config.SerializeToString,
1887 }
1888 response_deserializers = {
1889 ('voltha.OpenFlow', 'EchoRequest'): openflow__13__pb2.ofp_header.FromString,
1890 ('voltha.OpenFlow', 'ExperimenterRequest'): openflow__13__pb2.ofp_experimenter_header.FromString,
1891 ('voltha.OpenFlow', 'GetHello'): openflow__13__pb2.ofp_hello.FromString,
1892 ('voltha.OpenFlow', 'GetSwitchConfig'): openflow__13__pb2.ofp_switch_config.FromString,
1893 ('voltha.OpenFlow', 'GetSwitchFeatures'): openflow__13__pb2.ofp_switch_features.FromString,
1894 ('voltha.OpenFlow', 'ReceivePacketInMessages'): openflow__13__pb2.ofp_packet_in.FromString,
1895 ('voltha.OpenFlow', 'SendPacketOutMessages'): openflow__13__pb2.ofp_header.FromString,
1896 ('voltha.OpenFlow', 'SetConfig'): openflow__13__pb2.ofp_header.FromString,
1897 }
1898 cardinalities = {
1899 'EchoRequest': cardinality.Cardinality.UNARY_UNARY,
1900 'ExperimenterRequest': cardinality.Cardinality.UNARY_UNARY,
1901 'GetHello': cardinality.Cardinality.UNARY_UNARY,
1902 'GetSwitchConfig': cardinality.Cardinality.UNARY_UNARY,
1903 'GetSwitchFeatures': cardinality.Cardinality.UNARY_UNARY,
1904 'ReceivePacketInMessages': cardinality.Cardinality.UNARY_STREAM,
1905 'SendPacketOutMessages': cardinality.Cardinality.UNARY_UNARY,
1906 'SetConfig': cardinality.Cardinality.UNARY_UNARY,
1907 }
1908 stub_options = beta_implementations.stub_options(host=host, metadata_transformer=metadata_transformer, request_serializers=request_serializers, response_deserializers=response_deserializers, thread_pool=pool, thread_pool_size=pool_size)
1909 return beta_implementations.dynamic_stub(channel, 'voltha.OpenFlow', cardinalities, options=stub_options)
1910# @@protoc_insertion_point(module_scope)