44 if ((str.find(
"Virtual") != std::string::npos) ||
45 (str.find(
"vhost") != std::string::npos) ||
46 (str.find(
"vhu") != std::string::npos)) {
48 }
else if (str.find(
"Bond") != std::string::npos) {
50 }
else if (str.find(
"Ethernet") != std::string::npos) {
52 }
else if (str.find(
"vxlan") != std::string::npos) {
54 }
else if (str.find(
"loop") != std::string::npos) {
56 }
else if (str.find(
"host-") != std::string::npos) {
58 }
else if (str.find(
"local") != std::string::npos) {
60 }
else if (str.find(
"tap") != std::string::npos) {
62 }
else if (str.find(
"bvi") != std::string::npos) {
69 interface::type_t::type_t(
int v,
const std::string& s)
74 interface::oper_state_t::oper_state_t(
int v,
const std::string& s)
79 interface::admin_state_t::admin_state_t(
int v,
const std::string& s)
84 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 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 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
Unkown 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 LOOPBACK
loopback interface type
static const type_t VHOST
vhost-user interface type