blob: e58aaaafb7bff55bdef237f1dc7d88f97042f20c [file] [log] [blame]
khenaidoo4c6543e2021-10-19 17:25:58 -04001syntax = "proto3";
2
3option go_package = "github.com/opencord/voltha-protos/v5/go/core_adapter";
4option java_package = "org.opencord.voltha.core_adapter";
5
6import "voltha_protos/common.proto";
7import "voltha_protos/voltha.proto";
8import "voltha_protos/openflow_13.proto";
9import "voltha_protos/adapter.proto";
10import "voltha_protos/device.proto";
11import "voltha_protos/extensions.proto";
12import "voltha_protos/omci_test.proto";
13
14package core_adapter;
15
16// Core-Adapter messages
17
18message AdapterRegistration {
19 adapter.Adapter adapter = 1;
20 device.DeviceTypes dTypes = 2;
21}
22
23message ChildDeviceFilter {
24 string parent_id = 1;
25 string serial_number = 2;
26 uint32 onu_id = 3;
27 uint32 parent_port_no = 4;
28}
29
30message PortFilter {
31 string device_id = 1;
32 uint32 port = 2;
33 device.Port.PortType port_type = 3;
34}
35
36message DeviceDiscovery {
37 string parent_id = 1;
38 uint32 parent_port_no = 2;
39 string child_device_type = 3;
40 uint32 channel_id = 4;
41 string vendor_id = 5;
42 string serial_number = 6;
43 uint32 onu_id = 7;
44}
45
46message DeviceStateFilter {
47 string device_id = 1;
48 string parent_device_id = 2;
49 common.OperStatus.Types oper_status = 3;
50 common.ConnectStatus.Types conn_status = 4;
51}
52
53message PortState {
54 string device_id = 1;
55 device.Port.PortType port_type = 2;
56 uint32 port_no = 3;
57 common.OperStatus.Types oper_status = 4;
58}
59
60message PortStateFilter {
61 string device_id = 1;
62 uint32 port_type_filter = 2;
63 common.OperStatus.Types oper_status = 4;
64}
65
66message PacketIn {
67 string device_id = 1;
68 uint32 port = 2;
69 bytes packet = 3;
70}
71
72message PacketOut {
73 string device_id = 1;
74 uint32 egress_port_no = 2;
75 openflow_13.ofp_packet_out packet = 3;
76}
77
78message DeviceReason {
79 string device_id = 1;
80 string reason = 2;
81}
82
83message BulkFlows {
84 device.Device device = 1;
85 openflow_13.Flows flows = 2;
86 openflow_13.FlowGroups groups = 3;
87 openflow_13.FlowMetadata flow_metadata = 4;
88}
89
90message IncrementalFlows {
91 device.Device device = 1;
92 openflow_13.FlowChanges flows = 2;
93 openflow_13.FlowGroupChanges groups = 3;
94 openflow_13.FlowMetadata flow_metadata = 4;
95}
96
97message PmConfigsInfo {
98 string device_id = 1;
99 device.PmConfigs pm_configs = 2;
100}
101
102message SwitchCapability {
103 openflow_13.ofp_desc desc = 1;
104 openflow_13.ofp_switch_features switch_features = 2;
105}
106
107message ImageDownloadMessage {
108 device.Device device = 1;
109 device.ImageDownload image = 2;
110}
111
112message OMCITest {
113 device.Device device = 1;
114 omci.OmciTestRequest request = 2;
115}
116
117message SimulateAlarmMessage {
118 device.Device device = 1;
119 device.SimulateAlarmRequest request = 2;
120}
121
122message GetExtValueMessage {
123 device.Device parent_device = 1;
124 device.Device child_device = 2;
125 extension.ValueType.Type value_type=3;
126}
127
128message SetExtValueMessage {
129 device.Device device = 1;
130 extension.ValueSet value=3;
131}