Committed by
Carmelo Cascone
Removed files that were accidentally commited to BMv2 protocol
Change-Id: Id639d0f8d1b34bd7b82f30d5af2b79ee4630d354
Showing
5 changed files
with
0 additions
and
229 deletions
1 | -namespace java org.p4.bmv2.thrift | ||
2 | -namespace cpp cpservice | ||
3 | - | ||
4 | -service ControlPlaneService { | ||
5 | - | ||
6 | - bool ping(), | ||
7 | - | ||
8 | - oneway void packetIn(1: i32 port, 2: i64 reason, 3: i32 tableId, 4: i32 contextId, 5: binary packet), | ||
9 | - | ||
10 | - oneway void hello(1: i32 thriftServerPort, 2: i32 deviceId) | ||
11 | - | ||
12 | -} | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | -namespace java org.p4.bmv2.thrift | ||
2 | -/* Copyright 2013-present Barefoot Networks, Inc. | ||
3 | - * | ||
4 | - * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | - * you may not use this file except in compliance with the License. | ||
6 | - * You may obtain a copy of the License at | ||
7 | - * | ||
8 | - * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | - * | ||
10 | - * Unless required by applicable law or agreed to in writing, software | ||
11 | - * distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | - * See the License for the specific language governing permissions and | ||
14 | - * limitations under the License. | ||
15 | - */ | ||
16 | - | ||
17 | -/* | ||
18 | - * Antonin Bas (antonin@barefootnetworks.com) | ||
19 | - * | ||
20 | - */ | ||
21 | - | ||
22 | -namespace cpp bm_runtime.simple_pre | ||
23 | -namespace py bm_runtime.simple_pre | ||
24 | - | ||
25 | -typedef i32 BmMcMgrp | ||
26 | -typedef i32 BmMcRid | ||
27 | -typedef i32 BmMcMgrpHandle | ||
28 | -typedef i32 BmMcL1Handle | ||
29 | -typedef string BmMcPortMap // string of 0s and 1s | ||
30 | - | ||
31 | -enum McOperationErrorCode { | ||
32 | - TABLE_FULL = 1, | ||
33 | - INVALID_HANDLE = 2, | ||
34 | - INVALID_MGID = 3, | ||
35 | - INVALID_L1_HANDLE = 4, | ||
36 | - INVALID_L2_HANLDE = 5, | ||
37 | - ERROR = 6 | ||
38 | -} | ||
39 | - | ||
40 | -exception InvalidMcOperation { | ||
41 | - 1:McOperationErrorCode code | ||
42 | -} | ||
43 | - | ||
44 | -service SimplePre { | ||
45 | - | ||
46 | - BmMcMgrpHandle bm_mc_mgrp_create( | ||
47 | - 1:i32 cxt_id, | ||
48 | - 2:BmMcMgrp mgrp | ||
49 | - ) throws (1:InvalidMcOperation ouch), | ||
50 | - | ||
51 | - void bm_mc_mgrp_destroy( | ||
52 | - 1:i32 cxt_id, | ||
53 | - 2:BmMcMgrpHandle mgrp_handle | ||
54 | - ) throws (1:InvalidMcOperation ouch), | ||
55 | - | ||
56 | - BmMcL1Handle bm_mc_node_create( | ||
57 | - 1:i32 cxt_id, | ||
58 | - 2:BmMcRid rid | ||
59 | - 3:BmMcPortMap port_map | ||
60 | - ) throws (1:InvalidMcOperation ouch), | ||
61 | - | ||
62 | - void bm_mc_node_associate( | ||
63 | - 1:i32 cxt_id, | ||
64 | - 2:BmMcMgrpHandle mgrp_handle, | ||
65 | - 3:BmMcL1Handle l1_handle | ||
66 | - ) throws (1:InvalidMcOperation ouch), | ||
67 | - | ||
68 | - void bm_mc_node_dissociate( | ||
69 | - 1:i32 cxt_id, | ||
70 | - 2:BmMcMgrpHandle mgrp_handle, | ||
71 | - 3:BmMcL1Handle l1_handle | ||
72 | - ) throws (1:InvalidMcOperation ouch), | ||
73 | - | ||
74 | - void bm_mc_node_destroy( | ||
75 | - 1:i32 cxt_id, | ||
76 | - 2:BmMcL1Handle l1_handle | ||
77 | - ) throws (1:InvalidMcOperation ouch), | ||
78 | - | ||
79 | - void bm_mc_node_update( | ||
80 | - 1:i32 cxt_id, | ||
81 | - 2:BmMcL1Handle l1_handle, | ||
82 | - 3:BmMcPortMap port_map | ||
83 | - ) throws (1:InvalidMcOperation ouch), | ||
84 | -} |
1 | -namespace java org.p4.bmv2.thrift | ||
2 | -/* Copyright 2013-present Barefoot Networks, Inc. | ||
3 | - * | ||
4 | - * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | - * you may not use this file except in compliance with the License. | ||
6 | - * You may obtain a copy of the License at | ||
7 | - * | ||
8 | - * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | - * | ||
10 | - * Unless required by applicable law or agreed to in writing, software | ||
11 | - * distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | - * See the License for the specific language governing permissions and | ||
14 | - * limitations under the License. | ||
15 | - */ | ||
16 | - | ||
17 | -/* | ||
18 | - * Srikrishna Gopu (krishna@barefootnetworks.com) | ||
19 | - * Antonin Bas (antonin@barefootnetworks.com) | ||
20 | - * | ||
21 | - */ | ||
22 | - | ||
23 | -namespace cpp bm_runtime.simple_pre_lag | ||
24 | -namespace py bm_runtime.simple_pre_lag | ||
25 | - | ||
26 | -typedef i32 BmMcMgrp | ||
27 | -typedef i32 BmMcRid | ||
28 | -typedef i32 BmMcMgrpHandle | ||
29 | -typedef i32 BmMcL1Handle | ||
30 | -typedef i16 BmMcLagIndex | ||
31 | -typedef string BmMcPortMap // string of 0s and 1s | ||
32 | -typedef string BmMcLagMap // string of 0s and 1s | ||
33 | - | ||
34 | -enum McOperationErrorCode { | ||
35 | - TABLE_FULL = 1, | ||
36 | - INVALID_HANDLE = 2, | ||
37 | - INVALID_MGID = 3, | ||
38 | - INVALID_L1_HANDLE = 4, | ||
39 | - INVALID_L2_HANLDE = 5, | ||
40 | - ERROR = 6 | ||
41 | -} | ||
42 | - | ||
43 | -exception InvalidMcOperation { | ||
44 | - 1:McOperationErrorCode code | ||
45 | -} | ||
46 | - | ||
47 | -service SimplePreLAG { | ||
48 | - | ||
49 | - BmMcMgrpHandle bm_mc_mgrp_create( | ||
50 | - 1:i32 cxt_id, | ||
51 | - 2:BmMcMgrp mgrp | ||
52 | - ) throws (1:InvalidMcOperation ouch), | ||
53 | - | ||
54 | - void bm_mc_mgrp_destroy( | ||
55 | - 1:i32 cxt_id, | ||
56 | - 2:BmMcMgrpHandle mgrp_handle | ||
57 | - ) throws (1:InvalidMcOperation ouch), | ||
58 | - | ||
59 | - BmMcL1Handle bm_mc_node_create( | ||
60 | - 1:i32 cxt_id, | ||
61 | - 2:BmMcRid rid, | ||
62 | - 3:BmMcPortMap port_map, | ||
63 | - 4:BmMcLagMap lag_map | ||
64 | - ) throws (1:InvalidMcOperation ouch), | ||
65 | - | ||
66 | - void bm_mc_node_associate( | ||
67 | - 1:i32 cxt_id, | ||
68 | - 2:BmMcMgrpHandle mgrp_handle, | ||
69 | - 3:BmMcL1Handle l1_handle | ||
70 | - ) throws (1:InvalidMcOperation ouch), | ||
71 | - | ||
72 | - void bm_mc_node_dissociate( | ||
73 | - 1:i32 cxt_id, | ||
74 | - 2:BmMcMgrpHandle mgrp_handle, | ||
75 | - 3:BmMcL1Handle l1_handle | ||
76 | - ) throws (1:InvalidMcOperation ouch), | ||
77 | - | ||
78 | - void bm_mc_node_destroy( | ||
79 | - 1:i32 cxt_id, | ||
80 | - 2:BmMcL1Handle l1_handle | ||
81 | - ) throws (1:InvalidMcOperation ouch), | ||
82 | - | ||
83 | - void bm_mc_node_update( | ||
84 | - 1:i32 cxt_id, | ||
85 | - 2:BmMcL1Handle l1_handle, | ||
86 | - 3:BmMcPortMap port_map, | ||
87 | - 4:BmMcLagMap lag_map | ||
88 | - ) throws (1:InvalidMcOperation ouch), | ||
89 | - | ||
90 | - void bm_mc_set_lag_membership( | ||
91 | - 1:i32 cxt_id, | ||
92 | - 2:BmMcLagIndex lag_index, | ||
93 | - 3:BmMcPortMap port_map | ||
94 | - ) throws (1:InvalidMcOperation ouch), | ||
95 | -} |
1 | -namespace java org.p4.bmv2.thrift | ||
2 | -/* Copyright 2013-present Barefoot Networks, Inc. | ||
3 | - * | ||
4 | - * Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | - * you may not use this file except in compliance with the License. | ||
6 | - * You may obtain a copy of the License at | ||
7 | - * | ||
8 | - * http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | - * | ||
10 | - * Unless required by applicable law or agreed to in writing, software | ||
11 | - * distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | - * See the License for the specific language governing permissions and | ||
14 | - * limitations under the License. | ||
15 | - */ | ||
16 | - | ||
17 | -/* | ||
18 | - * Antonin Bas (antonin@barefootnetworks.com) | ||
19 | - * | ||
20 | - */ | ||
21 | - | ||
22 | -namespace cpp sswitch_runtime | ||
23 | -namespace py sswitch_runtime | ||
24 | - | ||
25 | -service SimpleSwitch { | ||
26 | - | ||
27 | - i32 mirroring_mapping_add(1:i32 mirror_id, 2:i32 egress_port); | ||
28 | - i32 mirroring_mapping_delete(1:i32 mirror_id); | ||
29 | - i32 mirroring_mapping_get_egress_port(1:i32 mirror_id); | ||
30 | - | ||
31 | - i32 set_egress_queue_depth(1:i32 depth_pkts); | ||
32 | - i32 set_egress_queue_rate(1:i64 rate_pps); | ||
33 | - | ||
34 | - oneway void push_packet(1:i32 port, 2:binary packet); | ||
35 | - | ||
36 | - bool ping(); | ||
37 | - | ||
38 | -} |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment