khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | option go_package = "github.com/opencord/voltha-protos/v5/go/core_adapter"; |
| 4 | option java_package = "org.opencord.voltha.core_adapter"; |
| 5 | |
| 6 | import "voltha_protos/common.proto"; |
| 7 | import "voltha_protos/voltha.proto"; |
| 8 | import "voltha_protos/openflow_13.proto"; |
| 9 | import "voltha_protos/adapter.proto"; |
| 10 | import "voltha_protos/device.proto"; |
| 11 | import "voltha_protos/extensions.proto"; |
| 12 | import "voltha_protos/omci_test.proto"; |
| 13 | |
| 14 | package core_adapter; |
| 15 | |
| 16 | // Core-Adapter messages |
| 17 | |
| 18 | message AdapterRegistration { |
| 19 | adapter.Adapter adapter = 1; |
| 20 | device.DeviceTypes dTypes = 2; |
| 21 | } |
| 22 | |
| 23 | message ChildDeviceFilter { |
| 24 | string parent_id = 1; |
| 25 | string serial_number = 2; |
| 26 | uint32 onu_id = 3; |
| 27 | uint32 parent_port_no = 4; |
| 28 | } |
| 29 | |
| 30 | message PortFilter { |
| 31 | string device_id = 1; |
| 32 | uint32 port = 2; |
| 33 | device.Port.PortType port_type = 3; |
| 34 | } |
| 35 | |
| 36 | message 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 | |
| 46 | message 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 | |
| 53 | message 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 | |
| 60 | message PortStateFilter { |
| 61 | string device_id = 1; |
| 62 | uint32 port_type_filter = 2; |
| 63 | common.OperStatus.Types oper_status = 4; |
| 64 | } |
| 65 | |
| 66 | message PacketIn { |
| 67 | string device_id = 1; |
| 68 | uint32 port = 2; |
| 69 | bytes packet = 3; |
| 70 | } |
| 71 | |
| 72 | message PacketOut { |
| 73 | string device_id = 1; |
| 74 | uint32 egress_port_no = 2; |
| 75 | openflow_13.ofp_packet_out packet = 3; |
| 76 | } |
| 77 | |
| 78 | message DeviceReason { |
| 79 | string device_id = 1; |
| 80 | string reason = 2; |
| 81 | } |
| 82 | |
| 83 | message 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 | |
| 90 | message 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 | |
| 97 | message PmConfigsInfo { |
| 98 | string device_id = 1; |
| 99 | device.PmConfigs pm_configs = 2; |
| 100 | } |
| 101 | |
| 102 | message SwitchCapability { |
| 103 | openflow_13.ofp_desc desc = 1; |
| 104 | openflow_13.ofp_switch_features switch_features = 2; |
| 105 | } |
| 106 | |
| 107 | message ImageDownloadMessage { |
| 108 | device.Device device = 1; |
| 109 | device.ImageDownload image = 2; |
| 110 | } |
| 111 | |
| 112 | message OMCITest { |
| 113 | device.Device device = 1; |
| 114 | omci.OmciTestRequest request = 2; |
| 115 | } |
| 116 | |
| 117 | message SimulateAlarmMessage { |
| 118 | device.Device device = 1; |
| 119 | device.SimulateAlarmRequest request = 2; |
| 120 | } |
| 121 | |
| 122 | message GetExtValueMessage { |
| 123 | device.Device parent_device = 1; |
| 124 | device.Device child_device = 2; |
| 125 | extension.ValueType.Type value_type=3; |
| 126 | } |
| 127 | |
| 128 | message SetExtValueMessage { |
| 129 | device.Device device = 1; |
| 130 | extension.ValueSet value=3; |
| 131 | } |