summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vom/bridge_domain_entry.cpp
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2017-12-01 15:12:57 +0100
committerNeale Ranns <nranns@cisco.com>2017-12-02 17:11:50 +0000
commite2e9ce5cec3bacaa9445761d86ead2d582b46dca (patch)
treeb018cfd683a59b282a1fee4d0fefd5a66b1be98a /src/vpp-api/vom/bridge_domain_entry.cpp
parent91c6ef7cae2d20ca17a69003a44090614412c63f (diff)
VOM: l2fib: Add bvi flag support
Change-Id: I03d7508649e80a538fcf9541815e2c29224bc87a Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vpp-api/vom/bridge_domain_entry.cpp')
-rw-r--r--src/vpp-api/vom/bridge_domain_entry.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vpp-api/vom/bridge_domain_entry.cpp b/src/vpp-api/vom/bridge_domain_entry.cpp
index 9723bde4875..9ac5ceae87c 100644
--- a/src/vpp-api/vom/bridge_domain_entry.cpp
+++ b/src/vpp-api/vom/bridge_domain_entry.cpp
@@ -79,8 +79,8 @@ void
bridge_domain_entry::sweep()
{
if (m_hw) {
- HW::enqueue(
- new bridge_domain_entry_cmds::delete_cmd(m_hw, m_mac, m_bd->id()));
+ HW::enqueue(new bridge_domain_entry_cmds::delete_cmd(
+ m_hw, m_mac, m_bd->id(), interface::type_t::BVI == m_tx_itf->type()));
}
HW::write();
}
@@ -90,7 +90,8 @@ bridge_domain_entry::replay()
{
if (m_hw) {
HW::enqueue(new bridge_domain_entry_cmds::create_cmd(
- m_hw, m_mac, m_bd->id(), m_tx_itf->handle()));
+ m_hw, m_mac, m_bd->id(), m_tx_itf->handle(),
+ interface::type_t::BVI == m_tx_itf->type()));
}
}
std::string
@@ -111,7 +112,8 @@ bridge_domain_entry::update(const bridge_domain_entry& r)
*/
if (rc_t::OK != m_hw.rc()) {
HW::enqueue(new bridge_domain_entry_cmds::create_cmd(
- m_hw, m_mac, m_bd->id(), m_tx_itf->handle()));
+ m_hw, m_mac, m_bd->id(), m_tx_itf->handle(),
+ interface::type_t::BVI == m_tx_itf->type()));
}
}