|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
46 if ((str.find(
"Virtual") != std::string::npos) ||
47 (str.find(
"vhost") != std::string::npos) ||
48 (str.find(
"vhu") != std::string::npos) ||
49 (str.find(
"vhost-user") != std::string::npos)) {
51 }
else if (str.find(
"bond") != std::string::npos) {
53 }
else if (str.find(
"dpdk") != std::string::npos) {
55 }
else if (str.find(
"VXLAN") != std::string::npos) {
57 }
else if ((str.find(
"Loopback") != std::string::npos) ||
58 (str.find(
"recirc") != std::string::npos)) {
60 }
else if (str.find(
"af-packet") != 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(
"virtio") != 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)
82 interface::oper_state_t::oper_state_t(
int v,
const std::string& s)
86 interface::admin_state_t::admin_state_t(
int v,
const std::string& s)
87 : enum_base<
interface::admin_state_t>(v, s)
90 interface::stats_type_t::stats_type_t(
int v,
const std::string& s)
91 : enum_base<
interface::stats_type_t>(v, s)
94 interface::admin_state_t
const static type_t BVI
A brideged Virtual interface (aka SVI or IRB)
static oper_state_t from_int(uint8_t val)
Convert VPP's numerical value to enum type.
The VPP Object Model (VOM) library.
const static type_t VXLAN
VXLAN interface.
static type_t from_string(const std::string &str)
Convert VPP's name of the interface to a type.
const static type_t LOCAL
Local interface type (specific to VPP)
const static type_t LOOPBACK
loopback interface type
const static type_t BOND
bond interface type
const static type_t PIPE
pipe-parent type
const static stats_type_t DETAILED
const static type_t ETHERNET
Ethernet interface type.
A template base class for all enum types.
const static oper_state_t UP
Operational UP state.
A representation of an interface in VPP.
const static type_t AFPACKET
AF-Packet interface type.
const static type_t VHOST
vhost-user interface type
static admin_state_t from_int(uint8_t val)
Convert VPP's numerical value to enum type.
interface(const std::string &name, type_t type, admin_state_t state, const std::string &tag="")
Construct a new object matching the desried state.
const static type_t TAPV2
TAPv2 interface type.
const static admin_state_t DOWN
Admin DOWN state.
The oper state of the interface.
const static type_t UNKNOWN
Unknown type.
const static stats_type_t NORMAL
const static type_t PIPE_END
pipe-end type
const static admin_state_t UP
Admin UP state.
const static oper_state_t DOWN
Operational DOWN state.