Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vom: Fix the l2 port type in bridge domain
[vpp.git]
/
extras
/
vom
/
vom
/
bridge_domain.cpp
diff --git
a/extras/vom/vom/bridge_domain.cpp
b/extras/vom/vom/bridge_domain.cpp
index
b8c89e1
..
a2cf656
100644
(file)
--- a/
extras/vom/vom/bridge_domain.cpp
+++ b/
extras/vom/vom/bridge_domain.cpp
@@
-209,6
+209,14
@@
bridge_domain::event_handler::handle_populate(const client_db::key_t& key)
*/
OM::commit(key, bd);
*/
OM::commit(key, bd);
+ std::shared_ptr<interface> uu_fwd_itf =
+ interface::find(payload.uu_fwd_sw_if_index);
+ if (uu_fwd_itf) {
+ l2_binding l2(*uu_fwd_itf, bd,
+ l2_binding::l2_port_type_t::L2_PORT_TYPE_UU_FWD);
+ OM::commit(key, l2);
+ }
+
/**
* For each interface in the BD construct an l2_binding
*/
/**
* For each interface in the BD construct an l2_binding
*/