blob: f834aa10c788aa7238cba53f0e67bb9364ace0cf [file] [log] [blame]
Shravan Ambatibb6b4452016-05-04 13:25:28 -07001syntax = "proto3";
2option java_package = "org.onosproject.grpc.net";
3
4
Aaron Kruglikove630fb12017-04-24 13:05:26 -07005import "models/Device.proto";
6import "models/Port.proto";
Shravan Ambatibb6b4452016-05-04 13:25:28 -07007
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