FD.io VPP
v18.07-34-g55fbdb9
Vector Packet Processing
|
A base class for all object_base in the VPP object_base-Model. More...
Data Structures | |
struct | arp_term_mode_t |
Bridge Domain ARP termination mode. More... | |
struct | flood_mode_t |
Bridge Domain Learning mode. More... | |
struct | learning_mode_t |
Bridge Domain Learning mode. More... | |
struct | mac_age_mode_t |
Bridge Domain MAC aging mode. More... | |
Public Types | |
typedef uint32_t | key_t |
Key Type for Bridge Domains in the sigular DB. More... | |
Public Member Functions | |
bridge_domain (uint32_t id, const learning_mode_t &lmode=learning_mode_t::ON, const arp_term_mode_t &amode=arp_term_mode_t::ON, const flood_mode_t &fmode=flood_mode_t::ON, const mac_age_mode_t &mmode=mac_age_mode_t::OFF) | |
Construct a new object matching the desried state. More... | |
bridge_domain (const bridge_domain &o) | |
Copy Constructor. More... | |
~bridge_domain () | |
Destructor. More... | |
bool | operator== (const bridge_domain &b) const |
Comparison operator - for UT. More... | |
uint32_t | id () const |
Return the bridge domain's VPP ID. More... | |
const key_t & | key () const |
Return the bridge domain's key. More... | |
std::shared_ptr< bridge_domain > | singular () const |
Return the matchin 'singular' instance of the bridge-domain. More... | |
std::string | to_string (void) const |
convert to string format for debug purposes More... | |
Static Public Member Functions | |
static std::shared_ptr< bridge_domain > | find (const key_t &key) |
Static function to find the bridge_domain in the model. More... | |
static void | dump (std::ostream &os) |
Dump all bridge-doamin into the stream provided. More... | |
Static Public Attributes | |
static const uint32_t | DEFAULT_TABLE = 0 |
The value of the defaultbridge domain. More... | |
Friends | |
class | OM |
class | singular_db< key_t, bridge_domain > |
It's the singular_db class that calls replay() More... | |
Additional Inherited Members | |
Protected Member Functions inherited from VOM::object_base | |
object_base ()=default | |
Constructable by derived classes only. More... | |
virtual | ~object_base ()=default |
Destructor. More... | |
A base class for all object_base in the VPP object_base-Model.
provides the abstract interface.
Definition at line 31 of file bridge_domain.hpp.
typedef uint32_t VOM::bridge_domain::key_t |
Key Type for Bridge Domains in the sigular DB.
Definition at line 37 of file bridge_domain.hpp.
VOM::bridge_domain::bridge_domain | ( | uint32_t | id, |
const learning_mode_t & | lmode = learning_mode_t::ON , |
||
const arp_term_mode_t & | amode = arp_term_mode_t::ON , |
||
const flood_mode_t & | fmode = flood_mode_t::ON , |
||
const mac_age_mode_t & | mmode = mac_age_mode_t::OFF |
||
) |
Construct a new object matching the desried state.
Definition at line 71 of file bridge_domain.cpp.
VOM::bridge_domain::bridge_domain | ( | const bridge_domain & | o | ) |
Copy Constructor.
Definition at line 84 of file bridge_domain.cpp.
VOM::bridge_domain::~bridge_domain | ( | ) |
Destructor.
Definition at line 132 of file bridge_domain.cpp.
|
static |
Dump all bridge-doamin into the stream provided.
Definition at line 181 of file bridge_domain.cpp.
|
static |
Static function to find the bridge_domain in the model.
Definition at line 151 of file bridge_domain.cpp.
uint32_t VOM::bridge_domain::id | ( | ) | const |
Return the bridge domain's VPP ID.
Definition at line 100 of file bridge_domain.cpp.
const bridge_domain::key_t & VOM::bridge_domain::key | ( | ) | const |
Return the bridge domain's key.
Definition at line 94 of file bridge_domain.cpp.
bool VOM::bridge_domain::operator== | ( | const bridge_domain & | b | ) | const |
Comparison operator - for UT.
Definition at line 106 of file bridge_domain.cpp.
std::shared_ptr< bridge_domain > VOM::bridge_domain::singular | ( | ) | const |
Return the matchin 'singular' instance of the bridge-domain.
Definition at line 175 of file bridge_domain.cpp.
|
virtual |
convert to string format for debug purposes
Implements VOM::object_base.
Definition at line 141 of file bridge_domain.cpp.
|
friend |
Definition at line 207 of file bridge_domain.hpp.
|
friend |
It's the singular_db class that calls replay()
Definition at line 212 of file bridge_domain.hpp.
|
static |
The value of the defaultbridge domain.
Definition at line 102 of file bridge_domain.hpp.