aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2018-04-05 13:13:01 +0200
committerNeale Ranns <nranns@cisco.com>2018-04-13 13:29:55 +0000
commit6fc740bbdd2dd739c9ecf83206460c595efa22bc (patch)
treebc051902360ebc21825bac52a5d7810b1f44eb72
parentd3b96ef0d75889f09dc51efb89e5123cdbe7ffe8 (diff)
VOM: Get vhost-user type from name
Adopt nova naming convention for vhost-user interfaces. Change-Id: If70f0828106bf594eb11d4f0ed2898a35ec0af15 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> (cherry picked from commit 47cca9b0f2a406a4494e646c4c4cd37abb47053a)
-rw-r--r--src/vpp-api/vom/interface_types.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vpp-api/vom/interface_types.cpp b/src/vpp-api/vom/interface_types.cpp
index 1272302d383..911282d51b1 100644
--- 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;