Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
GBP Endpoint Learning
[vpp.git]
/
extras
/
vom
/
vom
/
interface_factory.cpp
diff --git
a/extras/vom/vom/interface_factory.cpp
b/extras/vom/vom/interface_factory.cpp
index
f442513
..
fd135f5
100644
(file)
--- a/
extras/vom/vom/interface_factory.cpp
+++ b/
extras/vom/vom/interface_factory.cpp
@@
-38,6
+38,10
@@
interface_factory::new_interface(const vapi_payload_sw_interface_details& vd)
l2_address_t l2_address(vd.l2_address, vd.l2_address_length);
std::string tag = "";
l2_address_t l2_address(vd.l2_address, vd.l2_address_length);
std::string tag = "";
+ if (interface::type_t::UNKNOWN == type) {
+ return sp;
+ }
+
sp = interface::find(hdl);
if (sp) {
sp->set(state);
sp = interface::find(hdl);
if (sp) {
sp->set(state);