Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
d3b96ef
)
VOM: Get vhost-user type from name
65/11765/1
author
Mohsin Kazmi
<
[email protected]
>
Thu, 5 Apr 2018 11:13:01 +0000
(13:13 +0200)
committer
Neale Ranns
<
[email protected]
>
Fri, 13 Apr 2018 13:29:55 +0000
(13:29 +0000)
Adopt nova naming convention for vhost-user interfaces.
Change-Id: If70f0828106bf594eb11d4f0ed2898a35ec0af15
Signed-off-by: Mohsin Kazmi <
[email protected]
>
(cherry picked from commit
47cca9b0f2a406a4494e646c4c4cd37abb47053a
)
src/vpp-api/vom/interface_types.cpp
patch
|
blob
|
history
diff --git
a/src/vpp-api/vom/interface_types.cpp
b/src/vpp-api/vom/interface_types.cpp
index
1272302
..
911282d
100644
(file)
--- a/
src/vpp-api/vom/interface_types.cpp
+++ b/
src/vpp-api/vom/interface_types.cpp
@@
-42,7
+42,8
@@
interface::type_t
interface::type_t::from_string(const std::string& str)
{
if ((str.find("Virtual") != std::string::npos) ||
- (str.find("vhost") != std::string::npos)) {
+ (str.find("vhost") != std::string::npos) ||
+ (str.find("vhu") != std::string::npos)) {
return interface::type_t::VHOST;
} else if (str.find("Bond") != std::string::npos) {
return interface::type_t::BOND;