28 std::shared_ptr<binding_cmds::l2_dump_cmd>
cmd =
29 std::make_shared<binding_cmds::l2_dump_cmd>();
34 for (
auto& record : *cmd) {
35 auto& payload = record.get_payload();
39 for (
int ii = 0; ii < payload.count; ii++) {
40 std::shared_ptr<l2_list> acl =
l2_list::find(payload.acls[ii]);
53 std::shared_ptr<binding_cmds::l3_dump_cmd>
cmd =
54 std::make_shared<binding_cmds::l3_dump_cmd>();
59 for (
auto& record : *cmd) {
60 auto& payload = record.get_payload();
63 uint8_t n_input = payload.n_input;
65 for (
int ii = 0; ii < payload.count; ii++) {
66 std::shared_ptr<l3_list> acl =
l3_list::find(payload.acls[ii]);
82 l3_binding::update(
const binding& obj)
86 m_binding, m_direction, m_itf->handle(), m_acl->handle()));
93 l3_binding::sweep(
void)
97 m_binding, m_direction, m_itf->handle(), m_acl->handle()));
104 l3_binding::replay(
void)
108 m_binding, m_direction, m_itf->handle(), m_acl->handle()));
114 l2_binding::update(
const binding& obj)
118 m_binding, m_direction, m_itf->handle(), m_acl->handle()));
125 l2_binding::sweep(
void)
129 m_binding, m_direction, m_itf->handle(), m_acl->handle()));
136 l2_binding::replay(
void)
140 m_binding, m_direction, m_itf->handle(), m_acl->handle()));
147 const std::pair<direction_t, interface::key_t>& key)
149 os <<
"[" << key.first.to_string() <<
" " << key.second <<
"]";
A command class that binds the ACL to the interface.
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
static std::shared_ptr< interface > find(const handle_t &h)
The the singular instance of the interface in the DB by handle.
static rc_t write()
Write/Execute all commands hitherto enqueued.
static const direction_t INPUT
Permit Direction.
static std::shared_ptr< list > find(const handle_t &handle)
A command class that binds the ACL to the interface.
static rc_t commit(const client_db::key_t &key, const OBJ &obj)
Make the State in VPP reflect the expressed desired state.
static void enqueue(cmd *f)
Enqueue A command for execution.
std::ostream & operator<<(std::ostream &os, const std::pair< direction_t, interface::key_t > &key)
The VPP Object Model (VOM) library.
A representation of a method call to VPP.
static const direction_t OUTPUT
Deny Direction.
A binding between an ACL and an interface.