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 <<
"]";
const mac_address_t & mac() const
uint32_t priority() const
Getters.
const route::prefix_t & src_ip() const
std::string to_string() const
convert to string format for debug purposes
std::string to_string() const
convert to string format for debug purposes
An ACL rule is the building block of an ACL.
const mac_address_t & mac_mask() const
const action_t & action() const
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.
The VPP Object Model (VOM) library.
bool operator==(const l2_rule &rule) const
comparison operator (for testing)
bool operator<(const l2_rule &rule) const
less-than operator
const std::string & to_string() const
convert to string format for debug purposes
Type def of a Ethernet address.