19 namespace gbp_bridge_domain_cmds {
34 (m_bvi == other.m_bvi) && (m_uu_fwd == other.m_uu_fwd));
40 msg_t req(con.
ctx(), std::ref(*
this));
42 auto& payload = req.get_request().get_payload();
45 payload.bd.bvi_sw_if_index = m_bvi.
value();
46 payload.bd.uu_fwd_sw_if_index = m_uu_fwd.
value();
77 msg_t req(con.
ctx(), std::ref(*
this));
79 auto& payload = req.get_request().get_payload();
109 m_dump.reset(
new msg_t(con.
ctx(), std::ref(*
this)));
121 return (
"gbp-bridge-domain-dump");
static const rc_t NOOP
The HW write/update action was/has not been attempted.
rc_t issue(connection &con)
Issue the command to VPP/HW.
uint32_t value() const
get the value of the handle
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
A cmd class that Delete an Bridge-Domain.
Error codes that VPP will return during a HW write.
std::string to_string() const
convert to string format for debug purposes
A cmd class that Dumps all the bridge domains.
rc_t wait()
Wait on the commands promise.
T & data()
Return the data read/written.
std::string to_string() const
convert to string format for debug purposes
std::string to_string() const
convert to string format for debug purposes
A command class that creates an Bridge-Domain.
rc_t issue(connection &con)
Issue the command to VPP/HW.
bool operator==(const delete_cmd &i) const
Comparison operator - only used for UT.
A representation of the connection to VPP.
rc_t issue(connection &con)
Issue the command to VPP/HW.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
A base class for all RPC commands to VPP.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
A type declaration of an interface handle in VPP.
delete_cmd(HW::item< uint32_t > &item)
Constructor.
static const rc_t OK
The HW write was successfull.
vapi::Connection & ctx()
Retrun the VAPI context the commands will use.
The VPP Object Model (VOM) library.
void set(const rc_t &rc)
Set the HW return code - should only be called from the family of Command objects.
create_cmd(HW::item< uint32_t > &item, const handle_t bvi, const handle_t uu_fwd)
Constructor.
std::string to_string() const
convert to string format for debug purposes
HW::item< uint32_t > & m_hw_item
A reference to an object's HW::item that the command will update.
HW::item< uint32_t > & item()
return the HW item the command updates
vapi::Gbp_bridge_domain_add msg_t
convenient typedef
std::string to_string() const
convert to string format for debug purposes