|
| | Switch (bool enable_swap=false) |
| | See SwitchWContexts::SwitchWContexts() More...
|
| |
| bool | field_exists (const std::string &header_name, const std::string &field_name) const |
| |
| std::unique_ptr< Packet > | new_packet_ptr (port_t ingress_port, packet_id_t id, int ingress_length, PacketBuffer &&buffer) |
| |
| Packet | new_packet (port_t ingress_port, packet_id_t id, int ingress_length, PacketBuffer &&buffer) |
| |
| Pipeline * | get_pipeline (const std::string &name) |
| |
| Parser * | get_parser (const std::string &name) |
| |
| Deparser * | get_deparser (const std::string &name) |
| |
| FieldList * | get_field_list (const p4object_id_t field_list_id) |
| |
| LearnEngineIface * | get_learn_engine () |
| | Obtain a pointer to the LearnEngine for this Switch instance. More...
|
| |
| ErrorCodeMap | get_error_codes () const |
| |
| template<typename T > |
| bool | add_component (std::shared_ptr< T > ptr) |
| |
| template<typename T > |
| std::shared_ptr< T > | get_component () |
| |
| bool | field_exists (cxt_id_t cxt_id, const std::string &header_name, const std::string &field_name) const |
| |
| std::unique_ptr< Packet > | new_packet_ptr (cxt_id_t cxt_id, port_t ingress_port, packet_id_t id, int ingress_length, PacketBuffer &&buffer) |
| | Construct and return a Packet instance for the given cxt_id. More...
|
| |
| Packet | new_packet (cxt_id_t cxt_id, port_t ingress_port, packet_id_t id, int ingress_length, PacketBuffer &&buffer) |
| |
| LearnEngineIface * | get_learn_engine (cxt_id_t cxt_id) |
| | Obtain a pointer to the LearnEngine for a given Context. More...
|
| |
| ConfigOptionMap | get_config_options (cxt_id_t cxt_id) const |
| |
| ErrorCodeMap | get_error_codes (cxt_id_t cxt_id) const |
| |
| | SwitchWContexts (size_t nb_cxts=1u, bool enable_swap=false) |
| |
| Context * | get_context (cxt_id_t cxt_id=0u) |
| |
| void | start_and_return () |
| |
| int | get_runtime_port () const |
| | Returns the Thrift port used for the runtime RPC server. More...
|
| |
| device_id_t | get_device_id () const |
| | Returns the device id for this switch instance. More...
|
| |
| std::string | get_notifications_addr () const |
| | Returns the nanomsg IPC address for this switch. More...
|
| |
| void | enable_config_swap () |
| | Enable JSON config swapping for the switch. More...
|
| |
| void | disable_config_swap () |
| | Disable JSON config swapping for the switch. More...
|
| |
| void | add_required_field (const std::string &header_name, const std::string &field_name) |
| |
| bool | field_exists (cxt_id_t cxt_id, const std::string &header_name, const std::string &field_name) const |
| |
| void | force_arith_field (const std::string &header_name, const std::string &field_name) |
| |
| void | force_arith_header (const std::string &header_name) |
| |
| bool | set_group_selector (cxt_id_t cxt_id, const std::string &act_prof_name, std::shared_ptr< ActionProfile::GroupSelectionIface > selector) |
| |
| size_t | get_nb_cxts () |
| | Get the number of contexts included in this switch. More...
|
| |
| int | init_from_command_line_options (int argc, char *argv[], TargetParserIface *tp=nullptr, std::shared_ptr< TransportIface > my_transport=nullptr, std::unique_ptr< DevMgrIface > my_dev_mgr=nullptr) |
| |
| int | init_from_options_parser (const OptionsParser &parser, std::shared_ptr< TransportIface > my_transport=nullptr, std::unique_ptr< DevMgrIface > my_dev_mgr=nullptr) |
| |
| template<typename T > |
| std::shared_ptr< T > | get_component () |
| |
| template<typename T > |
| std::shared_ptr< T > | get_cxt_component (cxt_id_t cxt_id) |
| |
| int | swap_requested () |
| |
| int | do_swap () |
| |
| void | block_until_no_more_packets () |
| |
| std::unique_ptr< Packet > | new_packet_ptr (cxt_id_t cxt_id, port_t ingress_port, packet_id_t id, int ingress_length, PacketBuffer &&buffer) |
| | Construct and return a Packet instance for the given cxt_id. More...
|
| |
| Packet | new_packet (cxt_id_t cxt_id, port_t ingress_port, packet_id_t id, int ingress_length, PacketBuffer &&buffer) |
| | Construct and return a Packet instance for the given cxt_id. More...
|
| |
| LearnEngineIface * | get_learn_engine (cxt_id_t cxt_id) |
| | Obtain a pointer to the LearnEngine for a given Context. More...
|
| |
| ConfigOptionMap | get_config_options (cxt_id_t cxt_id) const |
| |
| ErrorCodeMap | get_error_codes (cxt_id_t cxt_id) const |
| |
| void | transmit_fn (port_t port_num, const char *buffer, int len) |
| | Transmits a data packet out of port port_num. More...
|
| |
| ReturnCode | register_status_cb (const PortStatus &type, const PortStatusCb &port_cb) |
| |
Convenience subclass of SwitchWContexts for targets with a single Context. This is the base class for the standard simple switch target implementation.