28 : m_priority(priority)
32 , m_mac_mask(mac_mask)
39 return (other.m_priority < m_priority);
45 return ((m_action == rule.m_action) && (m_src_ip == rule.m_src_ip) &&
46 (m_mac == rule.m_mac) && (m_mac_mask == rule.m_mac_mask));
55 <<
"priority:" << m_priority <<
" action:" << m_action.
to_string()
56 <<
" ip:" << m_src_ip.
to_string() <<
" mac:" << m_mac
57 <<
" mac-mask:" << m_mac_mask <<
"]";
std::string to_string() const
convert to string format for debug purposes
const action_t & action() const
const mac_address_t & mac_mask() const
An ACL rule is the building block of an ACL.
bool operator==(const l2_rule &rule) const
comparison operator (for testing)
uint32_t priority() const
Getters.
const std::string & to_string() const
convert to string format for debug purposes
l2_rule(uint32_t priority, const action_t &action, const route::prefix_t &ip, const mac_address_t &mac, const mac_address_t &mac_mask)
Construct a new object matching the desried state.
const route::prefix_t & src_ip() const
bool operator<(const l2_rule &rule) const
less-than operator
The VPP Object Model (VOM) library.
vl_api_mac_event_action_t action
std::string to_string() const
convert to string format for debug purposes
Type def of a Ethernet address.
const mac_address_t & mac() const