Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | option go_package = "github.com/opencord/voltha/protos/go/ponsim"; |
| 4 | |
| 5 | package ponsim; |
| 6 | |
| 7 | service PonSimOlt { |
| 8 | rpc Register (RegistrationRequest) returns (RegistrationReply) {} |
| 9 | } |
| 10 | |
| 11 | message RegistrationRequest { |
| 12 | string id = 1; |
| 13 | string address = 2; |
| 14 | int32 port = 3; |
Andy Bavier | ea82b46 | 2018-07-27 16:48:13 -0700 | [diff] [blame] | 15 | string serial_number = 4; |
Stephane Barbarie | 3559506 | 2018-02-08 08:34:39 -0500 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | message RegistrationReply { |
| 19 | string id = 1; |
| 20 | |
| 21 | enum Status { |
| 22 | REGISTERED = 0; |
| 23 | FAILED = 1; |
| 24 | UNAVAILABLE = 2; |
| 25 | } |
| 26 | |
| 27 | Status status = 2; |
| 28 | string status_message = 3; |
| 29 | |
| 30 | string parent_address = 4; |
| 31 | int32 parent_port = 5; |
| 32 | int32 assigned_port = 6; |
| 33 | } |