46 if ((str.find(
"Virtual") != std::string::npos) ||
47 (str.find(
"vhost") != std::string::npos) ||
48 (str.find(
"vhu") != std::string::npos)) {
50 }
else if (str.find(
"Bond") != std::string::npos) {
52 }
else if (str.find(
"Ethernet") != std::string::npos) {
54 }
else if (str.find(
"vxlan") != std::string::npos) {
56 }
else if ((str.find(
"loop") != std::string::npos) ||
57 (str.find(
"recirc") != std::string::npos)) {
59 }
else if (str.find(
"host-") != std::string::npos) {
61 }
else if (str.find(
"local") != std::string::npos) {
63 }
else if ((str.find(
"tapcli") != std::string::npos) ||
64 (str.find(
"tuntap") != std::string::npos)) {
66 }
else if (str.find(
"tap") != std::string::npos) {
68 }
else if (str.find(
"bvi") != std::string::npos) {
70 }
else if (str.find(
"pipe") != std::string::npos) {
77 interface::type_t::type_t(
int v,
const std::string& s)
82 interface::oper_state_t::oper_state_t(
int v,
const std::string& s)
87 interface::admin_state_t::admin_state_t(
int v,
const std::string& s)
92 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 TAPV2
TAPv2 interface type.
static const type_t LOOPBACK
loopback interface type
static const type_t VHOST
vhost-user interface type