HIGUCHI Yuta | 15653fd | 2015-11-09 11:05:09 -0800 | [diff] [blame] | 1 | syntax = "proto3"; |
HIGUCHI Yuta | e3e9063 | 2016-05-11 16:44:01 -0700 | [diff] [blame] | 2 | option java_package = "org.onosproject.grpc.net"; |
HIGUCHI Yuta | 15653fd | 2015-11-09 11:05:09 -0800 | [diff] [blame] | 3 | |
HIGUCHI Yuta | 15653fd | 2015-11-09 11:05:09 -0800 | [diff] [blame] | 4 | package Device; |
| 5 | |
| 6 | enum DeviceType { |
| 7 | OTHER = 0; |
| 8 | SWITCH = 1; |
| 9 | ROUTER = 2; |
| 10 | ROADM = 3; |
| 11 | OTN = 4; |
| 12 | ROADM_OTN = 5; |
| 13 | FIREWALL = 6; |
| 14 | BALANCER = 7; |
| 15 | IPS = 8; |
| 16 | IDS = 9; |
| 17 | CONTROLLER = 10; |
| 18 | VIRTUAL = 11; |
| 19 | FIBER_SWITCH = 12; |
| 20 | MICROWAVE = 13; |
| 21 | } |
| 22 | |
| 23 | message DeviceDescription { |
| 24 | string device_Uri = 1; |
| 25 | DeviceType type = 2; |
| 26 | string manufacturer = 3; |
| 27 | string hw_version = 4; |
| 28 | string sw_version = 5; |
| 29 | string serial_number = 6; |
| 30 | string chassis_id = 7; |
| 31 | map<string, string> annotations = 8; |
| 32 | } |
| 33 | |
| 34 | enum MastershipRole { |
| 35 | NONE = 0; |
| 36 | MASTER = 1; |
| 37 | STANDBY = 2; |
| 38 | } |