47 if ((str.find(
"Virtual") != std::string::npos) ||
48 (str.find(
"vhost") != std::string::npos) ||
49 (str.find(
"vhu") != std::string::npos)) {
51 }
else if (str.find(
"Bond") != std::string::npos) {
53 }
else if (str.find(
"Ethernet") != std::string::npos) {
55 }
else if (str.find(
"vxlan") != std::string::npos) {
57 }
else if ((str.find(
"loop") != std::string::npos) ||
58 (str.find(
"recirc") != std::string::npos)) {
60 }
else if (str.find(
"host-") != std::string::npos) {
62 }
else if (str.find(
"local") != std::string::npos) {
64 }
else if ((str.find(
"tapcli") != std::string::npos) ||
65 (str.find(
"tuntap") != std::string::npos)) {
67 }
else if (str.find(
"tap") != std::string::npos) {
69 }
else if (str.find(
"bvi") != std::string::npos) {
71 }
else if (str.find(
"pipe") != std::string::npos) {
78 interface::type_t::type_t(
int v,
const std::string& s)
83 interface::oper_state_t::oper_state_t(
int v,
const std::string& s)
88 interface::admin_state_t::admin_state_t(
int v,
const std::string& s)
93 interface::stats_type_t::stats_type_t(
int v,
const std::string& s)
static const type_t AFPACKET
AF-Packet interface type.
A template base class for all enum types.
static const type_t BOND
bond interface type
static const stats_type_t NORMAL
static const type_t PIPE
pipe-parent type
static const oper_state_t UP
Operational UP state.
static const stats_type_t DETAILED
The oper state of the interface.
static const type_t LOCAL
Local interface type (specific to VPP)
static const type_t ETHERNET
Ethernet interface type.
static const oper_state_t DOWN
Operational DOWN state.
static const type_t PIPE_END
pipe-end type
static admin_state_t from_int(uint8_t val)
Convert VPP's numerical value to enum type.
The admin state of the interface.
static type_t from_string(const std::string &str)
Convert VPP's name of the interface to a type.
static const type_t UNKNOWN
Unknown type.
static oper_state_t from_int(uint8_t val)
Convert VPP's numerical value to enum type.
static const type_t VXLAN
VXLAN interface.
The VPP Object Model (VOM) library.
static const admin_state_t UP
Admin UP state.
static const type_t BVI
A brideged Virtual interface (aka SVI or IRB)
static const admin_state_t DOWN
Admin DOWN state.
static const type_t TAP
TAP interface type.
static const type_t TAPV2
TAPv2 interface type.
static const type_t LOOPBACK
loopback interface type
static const type_t VHOST
vhost-user interface type