blob: 2ed891449bd876e895bc7a35a2f2b1969b8fd9a6 [file] [log] [blame]
khenaidooabad44c2018-08-03 16:58:35 -04001syntax = "proto3";
2
3option go_package = "github.com/opencord/voltha-go/protos/voltha";
4
5package voltha;
6
7import "google/protobuf/empty.proto";
8import "openflow_13.proto";
9
10
11message PonSimDeviceInfo {
12 int32 nni_port = 1;
13 repeated int32 uni_ports = 2;
14}
15
16message FlowTable {
17 int32 port = 1; // Used to address right device
18 repeated openflow_13.ofp_flow_stats flows = 2;
19}
20
21message PonSimFrame {
22 string id = 1;
23 bytes payload = 2;
24}
25
26message PonSimPacketCounter {
27 string name = 1;
28 int64 value = 2;
29}
30
31message PonSimPortMetrics {
32 string port_name = 1;
33 repeated PonSimPacketCounter packets = 2;
34}
35
36message PonSimMetrics {
37 string device = 1;
38 repeated PonSimPortMetrics metrics = 2;
39}
40
41service PonSim {
42 rpc SendFrame(PonSimFrame)
43 returns (google.protobuf.Empty) {}
44
45 rpc ReceiveFrames(google.protobuf.Empty)
46 returns (stream PonSimFrame) {}
47
48 rpc GetDeviceInfo(google.protobuf.Empty)
49 returns(PonSimDeviceInfo) {}
50
51 rpc UpdateFlowTable(FlowTable)
52 returns(google.protobuf.Empty) {}
53
54 rpc GetStats(google.protobuf.Empty)
55 returns(PonSimMetrics) {}
56
57}