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>
This commit is contained in:
committed by
Neale Ranns
parent
79aafa142c
commit
47cca9b0f2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user