|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
19 namespace lldp_global_cmds {
25 , m_system_name(system_name)
27 , m_tx_interval(tx_interval)
33 return (m_system_name == other.m_system_name);
39 msg_t req(
con.ctx(), std::ref(*
this));
41 auto& payload = req.get_request().get_payload();
42 payload.tx_hold = m_tx_hold;
43 payload.tx_interval = m_tx_interval;
46 payload.system_name.buf, m_system_name.c_str(), m_system_name.length());
47 payload.system_name.length = m_system_name.length();
59 <<
" system_name:" << m_system_name <<
" tx-hold:" << m_tx_hold
60 <<
" tx-interval:" << m_tx_interval;
A command class that binds the LLDP global to the interface.
rc_t wait()
Wait on the commands promise.
The VPP Object Model (VOM) library.
A base class for all RPC commands to VPP.
config_cmd(HW::item< bool > &item, const std::string &system_name, uint32_t tx_hold, uint32_t tx_interval)
Constructor.
HW::item< bool > & m_hw_item
A reference to an object's HW::item that the command will update.
#define VAPI_CALL(_stmt)
Convenince wrapper macro for error handling in VAPI sends.
A representation of the connection to VPP.
std::string to_string() const
convert to string format for debug purposes
rc_t issue(connection &con)
Issue the command to VPP/HW.
vapi::Lldp_config msg_t
convenient typedef
bool operator==(const config_cmd &i) const
Comparison operator - only used for UT.
Error codes that VPP will return during a HW write.
std::string to_string() const
convert to string format for debug purposes