Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 3 | option go_package = "github.com/opencord/voltha-protos/v5/go/inter_container"; |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 4 | option java_package = "org.opencord.voltha"; |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 5 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 6 | import "voltha_protos/common.proto"; |
| 7 | import "voltha_protos/voltha.proto"; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 8 | import "voltha_protos/openflow_13.proto"; |
Girish Gowdra | 9c3e1c8 | 2021-06-01 14:29:34 -0700 | [diff] [blame] | 9 | import "voltha_protos/tech_profile.proto"; |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 10 | import "voltha_protos/openolt.proto"; |
| 11 | import "voltha_protos/adapter.proto"; |
| 12 | import "voltha_protos/device.proto"; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 13 | |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 14 | package voltha; |
| 15 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 16 | // |
| 17 | // Core-Adapter messages |
| 18 | // **** |
| 19 | // **** |
| 20 | // **** |
| 21 | message AdapterRegistration { |
| 22 | Adapter adapter = 1; |
| 23 | DeviceTypes dTypes = 2; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 24 | } |
| 25 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 26 | message ChildDeviceFilter { |
| 27 | string parent_id = 1; |
| 28 | string serial_number = 2; |
| 29 | uint32 onu_id = 3; |
| 30 | uint32 parent_port_no = 4; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 31 | } |
| 32 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 33 | message PortFilter { |
| 34 | string device_id = 1; |
| 35 | uint32 port = 2; |
| 36 | Port.PortType port_type = 3; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 37 | } |
| 38 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 39 | message DeviceDiscovery { |
| 40 | string parent_id = 1; |
| 41 | uint32 parent_port_no = 2; |
| 42 | string child_device_type = 3; |
| 43 | uint32 channel_id = 4; |
| 44 | string vendor_id = 5; |
| 45 | string serial_number = 6; |
| 46 | uint32 onu_id = 7; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 47 | } |
| 48 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 49 | message DeviceStateFilter { |
| 50 | string device_id = 1; |
| 51 | string parent_device_id = 2; |
| 52 | common.OperStatus.Types oper_status = 3; |
| 53 | common.ConnectStatus.Types conn_status = 4; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 54 | } |
| 55 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 56 | message PortState { |
| 57 | string device_id = 1; |
| 58 | Port.PortType port_type = 2; |
| 59 | uint32 port_no = 3; |
| 60 | common.OperStatus.Types oper_status = 4; |
| 61 | } |
| 62 | |
| 63 | message PortStateFilter { |
| 64 | string device_id = 1; |
| 65 | uint32 port_type_filter = 2; |
| 66 | common.OperStatus.Types oper_status = 4; |
| 67 | } |
| 68 | |
| 69 | message PacketIn { |
| 70 | string device_id = 1; |
| 71 | uint32 port = 2; |
| 72 | bytes packet = 3; |
| 73 | } |
| 74 | |
| 75 | message PacketOut { |
| 76 | string device_id = 1; |
| 77 | uint32 egress_port_no = 2; |
| 78 | openflow_13.ofp_packet_out packet = 3; |
| 79 | } |
| 80 | |
| 81 | message DeviceReason { |
| 82 | string device_id = 1; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 83 | string reason = 2; |
| 84 | } |
| 85 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 86 | message BulkFlows { |
| 87 | Device device = 1; |
| 88 | openflow_13.Flows flows = 2; |
| 89 | openflow_13.FlowGroups groups = 3; |
| 90 | voltha.FlowMetadata flow_metadata = 4; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 91 | } |
| 92 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 93 | message IncrementalFlows { |
| 94 | Device device = 1; |
| 95 | openflow_13.FlowChanges flows = 2; |
| 96 | openflow_13.FlowGroupChanges groups = 3; |
| 97 | voltha.FlowMetadata flow_metadata = 4; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 98 | } |
| 99 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 100 | message PmConfigsInfo { |
| 101 | string device_id = 1; |
| 102 | PmConfigs pm_configs = 2; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 103 | } |
| 104 | |
| 105 | message SwitchCapability { |
| 106 | openflow_13.ofp_desc desc = 1; |
| 107 | openflow_13.ofp_switch_features switch_features = 2; |
| 108 | } |
| 109 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 110 | message ImageDownloadMessage { |
| 111 | Device device = 1; |
| 112 | ImageDownload image = 2; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 113 | } |
| 114 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 115 | message OMCITest { |
| 116 | Device device = 1; |
| 117 | OmciTestRequest request = 2; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 118 | } |
| 119 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 120 | message SimulateAlarmMessage { |
| 121 | Device device = 1; |
| 122 | SimulateAlarmRequest request = 2; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 123 | } |
| 124 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 125 | message GetExtValueMessage { |
| 126 | Device parent_device = 1; |
| 127 | Device child_device = 2; |
| 128 | common.ValueType.Type value_type=3; |
| 129 | } |
| 130 | |
| 131 | message SetExtValueMessage { |
| 132 | Device device = 1; |
| 133 | ValueSet value=3; |
| 134 | } |
| 135 | |
| 136 | // |
| 137 | // Inter-Adapter messages |
| 138 | // **** |
| 139 | // **** |
| 140 | // **** |
| 141 | |
| 142 | message OmciMessage { |
| 143 | bytes message = 1; |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 144 | common.ConnectStatus.Types connect_status = 2; |
Mahir Gunyel | 4b0dab2 | 2019-05-16 13:56:09 -0700 | [diff] [blame] | 145 | voltha.Device.ProxyAddress proxy_address = 3; |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 146 | string parent_device_id = 4; |
| 147 | string child_device_id = 5; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 148 | } |
| 149 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 150 | message TechProfileDownloadMessage { |
| 151 | string device_id = 1; |
| 152 | uint32 uni_id = 2; |
| 153 | string tp_instance_path = 3; |
Girish Gowdra | 9c3e1c8 | 2021-06-01 14:29:34 -0700 | [diff] [blame] | 154 | oneof tech_tp_instance { |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 155 | tech_profile.TechProfileInstance tp_instance = 4; // relevant for GPON, XGPON and XGS-PON technologies |
| 156 | tech_profile.EponTechProfileInstance epon_tp_instance = 5; // relevant for EPON technology |
Girish Gowdra | 9c3e1c8 | 2021-06-01 14:29:34 -0700 | [diff] [blame] | 157 | } |
Matt Jeanneret | 15249fa | 2019-04-12 20:25:31 -0400 | [diff] [blame] | 158 | } |
| 159 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 160 | message DeleteGemPortMessage { |
| 161 | string device_id = 1; |
| 162 | uint32 uni_id = 2; |
| 163 | string tp_instance_path = 3; |
| 164 | uint32 gem_port_id = 4; |
Girish Gowdra | 475e63e | 2019-11-20 16:42:59 +0530 | [diff] [blame] | 165 | } |
| 166 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 167 | message DeleteTcontMessage { |
| 168 | string device_id = 1; |
| 169 | uint32 uni_id = 2; |
| 170 | string tp_instance_path = 3; |
| 171 | uint32 alloc_id = 4; |
Girish Gowdra | 475e63e | 2019-11-20 16:42:59 +0530 | [diff] [blame] | 172 | } |
| 173 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 174 | message OnuIndicationMessage { |
| 175 | string device_id = 1; |
| 176 | openolt.OnuIndication onu_indication = 2; |
Zack Williams | 5220966 | 2019-02-07 10:15:31 -0700 | [diff] [blame] | 177 | } |
| 178 | |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 179 | message TechProfileInstanceRequestMessage { |
| 180 | string device_id = 1; |
| 181 | string tp_instance_path = 2; // technology profile instance path |
| 182 | string parent_device_id = 3; |
| 183 | uint32 parent_pon_port = 4; |
| 184 | uint32 onu_id = 5; |
| 185 | uint32 uni_id = 6; |
| 186 | } |