|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
20 namespace gbp_vxlan_cmds {
23 const boost::asio::ip::address_v4&
src,
38 msg_t req(
con.ctx(), std::ref(*
this));
40 auto& payload = req.get_request().get_payload();
42 payload.tunnel.vni = m_vni;
43 payload.tunnel.bd_rd_id = m_bd_rd;
48 to_api(m_src, payload.tunnel.src);
65 <<
" bd/rd:" << m_bd_rd;
79 msg_t req(
con.ctx(), std::ref(*
this));
81 auto& payload = req.get_request().get_payload();
127 return (
"gbp-vxlan-dump");
vapi::Gbp_vxlan_tunnel_dump msg_t
rc_t wait()
Wait on the commands promise.
void set(const rc_t &rc)
Set the HW return code - should only be called from the family of Command objects.
The VPP Object Model (VOM) library.
const static rc_t OK
The HW write was successfull.
@ GBP_VXLAN_TUNNEL_MODE_L2
std::string to_string() const
convert to string format for debug purposes
HW::item< handle_t > & m_hw_item
A reference to an object's HW::item that the command will update.
std::unique_ptr< vapi::Gbp_vxlan_tunnel_dump > m_dump
The VAPI event registration.
void insert_interface()
add the created interface to the DB
std::string to_string() const
convert to string format for debug purposes
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
A representation of the connection to VPP.
rc_t issue(connection &con)
Issue the command to VPP/HW.
rc_t wait()
Wait for the issue of the command to complete.
A cmd class that Dumps all the bridge domains.
A representation of an interface in VPP.
const static rc_t NOOP
The HW write/update action was/has not been attempted.
rc_t issue(connection &con)
Issue the command to VPP/HW.
std::string to_string() const
convert to string format for debug purposes
A command class that creates an Bridge-Domain.
create_cmd(HW::item< handle_t > &item, const std::string &name, const boost::asio::ip::address_v4 &src, uint32_t vni, bool is_l2, uint32_t bd_rd)
Constructor.
vapi_enum_ip_neighbor_flags to_api(const neighbour::flags_t &f)
vapi::Gbp_vxlan_tunnel_add msg_t
convenient typedef
rc_t rc() const
Get the HW return code.
void remove_interface()
remove the deleted interface from the DB
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.
A cmd class that Delete an Bridge-Domain.
Error codes that VPP will return during a HW write.
@ GBP_VXLAN_TUNNEL_MODE_L3
delete_cmd(HW::item< handle_t > &item, uint32_t vni)
Constructor.
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.