blob: 87b5e499a8fc849271a478a6643e513d0504eb35 [file] [log] [blame]
Matteo Scandoloc9306e42016-08-04 16:24:30 -07001namespace 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
22namespace cpp sswitch_runtime
23namespace py sswitch_runtime
24
25service 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}