Shravan Ambati | bb6b445 | 2016-05-04 13:25:28 -0700 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | option java_package = "org.onosproject.grpc.net"; |
| 3 | |
| 4 | |
| 5 | import "Device.proto"; |
| 6 | import "Port.proto"; |
| 7 | |
| 8 | package DeviceEvent; |
| 9 | |
| 10 | // Corresponds to org.onosproject.net.device.DeviceEvent. |
| 11 | message DeviceNotification { |
| 12 | Device.DeviceCore device = 1; |
| 13 | DeviceEventType deviceEventType = 2; |
| 14 | Port.PortCore port = 3; |
| 15 | } |
| 16 | |
| 17 | enum DeviceEventType { |
| 18 | DEVICE_ADDED = 0; |
| 19 | DEVICE_UPDATED = 1; |
| 20 | DEVICE_REMOVED = 2; |
| 21 | DEVICE_SUSPENDED = 3; |
| 22 | DEVICE_AVAILABILITY_CHANGED = 4; |
| 23 | PORT_ADDED = 5; |
| 24 | PORT_UPDATED = 6; |
| 25 | PORT_REMOVED = 7; |
| 26 | PORT_STATS_UPDATED = 8; |
| 27 | } |
| 28 | |