blob: 6a887684f9b8c3b4990757f8370779048a6f578f [file] [log] [blame]
Shravan Ambatibb6b4452016-05-04 13:25:28 -07001syntax = "proto3";
2option java_package = "org.onosproject.grpc.net";
3
4
5import "Device.proto";
6import "Port.proto";
7
8package DeviceEvent;
9
10// Corresponds to org.onosproject.net.device.DeviceEvent.
11message DeviceNotification {
12 Device.DeviceCore device = 1;
13 DeviceEventType deviceEventType = 2;
14 Port.PortCore port = 3;
15}
16
17enum 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