GBP V2
[vpp.git] / src / vpp-api / vom / interface_types.cpp
index 1272302..139bdd5 100644 (file)
@@ -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;
@@ -50,7 +51,8 @@ interface::type_t::from_string(const std::string& str)
     return interface::type_t::ETHERNET;
   } else if (str.find("vxlan") != std::string::npos) {
     return interface::type_t::VXLAN;
-  } else if (str.find("loop") != std::string::npos) {
+  } else if ((str.find("loop") != std::string::npos) ||
+             (str.find("recirc") != std::string::npos)) {
     return interface::type_t::LOOPBACK;
   } else if (str.find("host-") != std::string::npos) {
     return interface::type_t::AFPACKET;