FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
VOM::gbp_bridge_domain Class Reference

A entry in the ARP termination table of a Bridge Domain. More...

+ Inheritance diagram for VOM::gbp_bridge_domain:
+ Collaboration diagram for VOM::gbp_bridge_domain:

Data Structures

struct  flags_t
 

Public Types

typedef bridge_domain::key_t key_t
 The key for a bridge_domain is the pair of EPG-IDs. More...
 

Public Member Functions

 gbp_bridge_domain (const bridge_domain &bd, const gbp_route_domain &rd, const interface &bvi, const flags_t &flags=flags_t::NONE)
 Construct a GBP bridge_domain. More...
 
 gbp_bridge_domain (const bridge_domain &bd, const gbp_route_domain &rd, const interface &bvi, const interface &uu_fwd, const interface &bm_flood, const flags_t &flags=flags_t::NONE)
 
 gbp_bridge_domain (const bridge_domain &bd, const gbp_route_domain &rd, const std::shared_ptr< interface > bvi, const std::shared_ptr< interface > uu_fwd, const std::shared_ptr< interface > bm_flood, const flags_t &flags=flags_t::NONE)
 
 gbp_bridge_domain (const bridge_domain &bd, const gbp_route_domain &rd, const interface &bvi, const std::shared_ptr< interface > uu_fwd, const std::shared_ptr< interface > bm_flood, const flags_t &flags=flags_t::NONE)
 
 gbp_bridge_domain (const gbp_bridge_domain &r)
 Copy Construct. More...
 
 ~gbp_bridge_domain ()
 Destructor. More...
 
const key_t key () const
 Return the object's key. More...
 
uint32_t id () const
 Return the bridge domain's VPP ID. More...
 
bool operator== (const gbp_bridge_domain &bdae) const
 comparison operator More...
 
std::shared_ptr< gbp_bridge_domainsingular () const
 Return the matching 'singular instance'. More...
 
void replay (void)
 replay the object to create it in hardware More...
 
std::string to_string () const
 Convert to string for debugging. More...
 
const std::shared_ptr< bridge_domainget_bridge_domain () const
 
const std::shared_ptr< interfaceget_bvi () const
 

Static Public Member Functions

static std::shared_ptr< gbp_bridge_domainfind (const key_t &k)
 Find the instnace of the bridge_domain domain in the OM. More...
 
static void dump (std::ostream &os)
 Dump all bridge_domain-doamin into the stream provided. More...
 

Friends

class OM
 
class singular_db< key_t, gbp_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...
 

Detailed Description

A entry in the ARP termination table of a Bridge Domain.

Definition at line 29 of file gbp_bridge_domain.hpp.

Member Typedef Documentation

◆ key_t

The key for a bridge_domain is the pair of EPG-IDs.

Definition at line 35 of file gbp_bridge_domain.hpp.

Constructor & Destructor Documentation

◆ gbp_bridge_domain() [1/5]

VOM::gbp_bridge_domain::gbp_bridge_domain ( const bridge_domain bd,
const gbp_route_domain rd,
const interface bvi,
const flags_t flags = flags_t::NONE 
)

Construct a GBP bridge_domain.

Construct a new object matching the desried state.

Definition at line 53 of file gbp_bridge_domain.cpp.

◆ gbp_bridge_domain() [2/5]

VOM::gbp_bridge_domain::gbp_bridge_domain ( const bridge_domain bd,
const gbp_route_domain rd,
const interface bvi,
const interface uu_fwd,
const interface bm_flood,
const flags_t flags = flags_t::NONE 
)

Definition at line 67 of file gbp_bridge_domain.cpp.

◆ gbp_bridge_domain() [3/5]

VOM::gbp_bridge_domain::gbp_bridge_domain ( const bridge_domain bd,
const gbp_route_domain rd,
const std::shared_ptr< interface bvi,
const std::shared_ptr< interface uu_fwd,
const std::shared_ptr< interface bm_flood,
const flags_t flags = flags_t::NONE 
)

Definition at line 83 of file gbp_bridge_domain.cpp.

◆ gbp_bridge_domain() [4/5]

VOM::gbp_bridge_domain::gbp_bridge_domain ( const bridge_domain bd,
const gbp_route_domain rd,
const interface bvi,
const std::shared_ptr< interface uu_fwd,
const std::shared_ptr< interface bm_flood,
const flags_t flags = flags_t::NONE 
)

Definition at line 105 of file gbp_bridge_domain.cpp.

◆ gbp_bridge_domain() [5/5]

VOM::gbp_bridge_domain::gbp_bridge_domain ( const gbp_bridge_domain r)

Copy Construct.

Definition at line 125 of file gbp_bridge_domain.cpp.

◆ ~gbp_bridge_domain()

VOM::gbp_bridge_domain::~gbp_bridge_domain ( )

Destructor.

Definition at line 209 of file gbp_bridge_domain.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ dump()

void VOM::gbp_bridge_domain::dump ( std::ostream &  os)
static

Dump all bridge_domain-doamin into the stream provided.

Definition at line 267 of file gbp_bridge_domain.cpp.

+ Here is the call graph for this function:

◆ find()

std::shared_ptr< gbp_bridge_domain > VOM::gbp_bridge_domain::find ( const key_t k)
static

Find the instnace of the bridge_domain domain in the OM.

Definition at line 235 of file gbp_bridge_domain.cpp.

+ Here is the call graph for this function:

◆ get_bridge_domain()

const std::shared_ptr< bridge_domain > VOM::gbp_bridge_domain::get_bridge_domain ( ) const

Definition at line 149 of file gbp_bridge_domain.cpp.

◆ get_bvi()

const std::shared_ptr< interface > VOM::gbp_bridge_domain::get_bvi ( ) const

Definition at line 155 of file gbp_bridge_domain.cpp.

◆ id()

uint32_t VOM::gbp_bridge_domain::id ( ) const

Return the bridge domain's VPP ID.

Definition at line 143 of file gbp_bridge_domain.cpp.

◆ key()

const gbp_bridge_domain::key_t VOM::gbp_bridge_domain::key ( ) const

Return the object's key.

Definition at line 137 of file gbp_bridge_domain.cpp.

+ Here is the caller graph for this function:

◆ operator==()

bool VOM::gbp_bridge_domain::operator== ( const gbp_bridge_domain bdae) const

comparison operator

Definition at line 161 of file gbp_bridge_domain.cpp.

◆ replay()

void VOM::gbp_bridge_domain::replay ( void  )
virtual

replay the object to create it in hardware

Implements VOM::object_base.

Definition at line 199 of file gbp_bridge_domain.cpp.

+ Here is the call graph for this function:

◆ singular()

std::shared_ptr< gbp_bridge_domain > VOM::gbp_bridge_domain::singular ( ) const

Return the matching 'singular instance'.

Definition at line 261 of file gbp_bridge_domain.cpp.

◆ to_string()

std::string VOM::gbp_bridge_domain::to_string ( ) const
virtual

Convert to string for debugging.

Implements VOM::object_base.

Definition at line 218 of file gbp_bridge_domain.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ OM

friend class OM
friend

Definition at line 181 of file gbp_bridge_domain.hpp.

◆ singular_db< key_t, gbp_bridge_domain >

friend class singular_db< key_t, gbp_bridge_domain >
friend

It's the singular_db class that calls replay()

Definition at line 186 of file gbp_bridge_domain.hpp.


The documentation for this class was generated from the following files: