40 if (str.find(
"Ethernet") != std::string::npos) {
42 }
else if (str.find(
"vxlan") != std::string::npos) {
44 }
else if (str.find(
"loop") != std::string::npos) {
46 }
else if (str.find(
"host-") != std::string::npos) {
48 }
else if (str.find(
"local") != std::string::npos) {
50 }
else if (str.find(
"tap") != std::string::npos) {
52 }
else if (str.find(
"bvi") != std::string::npos) {
59 interface::type_t::type_t(
int v,
const std::string& s)
64 interface::oper_state_t::oper_state_t(
int v,
const std::string& s)
69 interface::admin_state_t::admin_state_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 oper_state_t UP
Operational UP state.
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