X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Finterface_types.cpp;h=73400373743ee42f3dfc4274ab3c1214332a67d9;hb=208c29aac523231af2420a95ba7e5d361698780b;hp=b20a38571465ae420a7fb77ed1f4f752e630ea92;hpb=4faab21a75a208d83c184bd424938c4dbf6b38e4;p=vpp.git diff --git a/extras/vom/vom/interface_types.cpp b/extras/vom/vom/interface_types.cpp index b20a3857146..73400373743 100644 --- a/extras/vom/vom/interface_types.cpp +++ b/extras/vom/vom/interface_types.cpp @@ -29,6 +29,8 @@ const interface::type_t interface::type_t::TAP(7, "TAP"); const interface::type_t interface::type_t::TAPV2(8, "TAPV2"); const interface::type_t interface::type_t::VHOST(9, "VHOST"); const interface::type_t interface::type_t::BOND(10, "Bond"); +const interface::type_t interface::type_t::PIPE(11, "Pipe"); +const interface::type_t interface::type_t::PIPE_END(12, "Pipe-end"); const interface::oper_state_t interface::oper_state_t::DOWN(0, "down"); const interface::oper_state_t interface::oper_state_t::UP(1, "up"); @@ -66,6 +68,8 @@ interface::type_t::from_string(const std::string& str) return interface::type_t::TAPV2; } else if (str.find("bvi") != std::string::npos) { return interface::type_t::BVI; + } else if (str.find("pipe") != std::string::npos) { + return interface::type_t::PIPE; } return interface::type_t::UNKNOWN;