blob: 87b5e499a8fc849271a478a6643e513d0504eb35 [file] [log] [blame]
namespace java org.p4.bmv2.thrift
/* Copyright 2013-present Barefoot Networks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Antonin Bas (antonin@barefootnetworks.com)
*
*/
namespace cpp sswitch_runtime
namespace py sswitch_runtime
service SimpleSwitch {
i32 mirroring_mapping_add(1:i32 mirror_id, 2:i32 egress_port);
i32 mirroring_mapping_delete(1:i32 mirror_id);
i32 mirroring_mapping_get_egress_port(1:i32 mirror_id);
i32 set_egress_queue_depth(1:i32 depth_pkts);
i32 set_egress_queue_rate(1:i64 rate_pps);
oneway void push_packet(1:i32 port, 2:binary packet);
bool ping();
}