|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
21 namespace bridge_domain_cmds {
30 , m_learning_mode(lmode)
31 , m_arp_term_mode(amode)
32 , m_arp_ufwd_mode(aumode)
34 , m_uu_flood_mode(uufmode)
35 , m_mac_age_mode(mmode)
48 msg_t req(
con.ctx(), std::ref(*
this));
50 auto& payload = req.get_request().get_payload();
52 payload.flood = m_flood_mode.
value();
53 payload.uu_flood = m_uu_flood_mode.
value();
55 payload.learn = m_learning_mode.
value();
56 payload.arp_term = m_arp_term_mode.
value();
57 payload.arp_ufwd = m_arp_ufwd_mode.
value();
58 payload.mac_age = m_mac_age_mode.
value();
89 msg_t req(
con.ctx(), std::ref(*
this));
91 auto& payload = req.get_request().get_payload();
106 std::ostringstream s;
127 auto& payload =
m_dump->get_request().get_payload();
140 return (
"bridge-domain-dump");
Bridge Domain ARP termination mode.
vapi::Bridge_domain_dump msg_t
A cmd class that Dumps all the bridge domains.
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.
Bridge Domain ARP Unicast Forward mode.
The VPP Object Model (VOM) library.
const static rc_t OK
The HW write was successfull.
Bridge Domain flood mode.
A cmd class that Delete an Bridge-Domain.
DEFINE_VAPI_MSG_IDS_L2_API_JSON
delete_cmd(HW::item< uint32_t > &item)
Constructor.
A base class for all RPC commands to VPP.
HW::item< uint32_t > & m_hw_item
A reference to an object's HW::item that the command will update.
std::unique_ptr< vapi::Bridge_domain_dump > m_dump
The VAPI event registration.
int value() const
Return the value of the enum - same as integer conversion.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
bool operator==(const delete_cmd &i) const
Comparison operator - only used for UT.
A representation of the connection to VPP.
std::string to_string() const
convert to string format for debug purposes
rc_t wait()
Wait for the issue of the command to complete.
bool operator==(const create_cmd &i) const
Comparison operator - only used for UT.
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
vapi::Bridge_domain_add_del msg_t
convenient typedef
T & data()
Return the data read/written.
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.
rc_t issue(connection &con)
Issue the command to VPP/HW.
std::string to_string() const
convert to string format for debug purposes
create_cmd(HW::item< uint32_t > &item, const bridge_domain::learning_mode_t &lmode, const bridge_domain::arp_term_mode_t &amode, const bridge_domain::arp_ufwd_mode_t &aumode, const bridge_domain::flood_mode_t &fmode, const bridge_domain::uu_flood_mode_t &uufmode, const bridge_domain::mac_age_mode_t &mmode)
Constructor.
Bridge Domain Learning mode.
Error codes that VPP will return during a HW write.
Bridge Domain Unknown Unicast Flood mode.
A command class that creates an Bridge-Domain.
bool operator==(const dump_cmd &i) const
Comparison operator - only used for UT.
Bridge Domain MAC aging mode.