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; |
| 15 | } |
| 16 | |
| 17 | message RegistrationReply { |
| 18 | string id = 1; |
| 19 | |
| 20 | enum Status { |
| 21 | REGISTERED = 0; |
| 22 | FAILED = 1; |
| 23 | UNAVAILABLE = 2; |
| 24 | } |
| 25 | |
| 26 | Status status = 2; |
| 27 | string status_message = 3; |
| 28 | |
| 29 | string parent_address = 4; |
| 30 | int32 parent_port = 5; |
| 31 | int32 assigned_port = 6; |
| 32 | } |