FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
VOM::gbp_endpoint Class Reference

A GBP Enpoint (i.e. More...

+ Inheritance diagram for VOM::gbp_endpoint:
+ Collaboration diagram for VOM::gbp_endpoint:

Data Structures

struct  flags_t
 Endpoint flags. More...
 

Public Types

typedef std::pair< interface::key_t, mac_address_tkey_t
 The key for a GBP endpoint; interface and IP. More...
 

Public Member Functions

 gbp_endpoint (const interface &itf, const std::vector< boost::asio::ip::address > &ip_addr, const mac_address_t &mac, const gbp_endpoint_group &epg, const flags_t &flags=flags_t::NONE)
 Construct a GBP endpoint. More...
 
 gbp_endpoint (const gbp_endpoint &r)
 Copy Construct. More...
 
 ~gbp_endpoint ()
 Destructor. More...
 
const key_t key () const
 Return the object's key. More...
 
bool operator== (const gbp_endpoint &bdae) const
 comparison operator More...
 
std::shared_ptr< gbp_endpointsingular () 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...
 

Static Public Member Functions

static std::shared_ptr< gbp_endpointfind (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_endpoint >
 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 GBP Enpoint (i.e.

a VM)

Definition at line 30 of file gbp_endpoint.hpp.

Member Typedef Documentation

◆ key_t

The key for a GBP endpoint; interface and IP.

Definition at line 54 of file gbp_endpoint.hpp.

Constructor & Destructor Documentation

◆ gbp_endpoint() [1/2]

VOM::gbp_endpoint::gbp_endpoint ( const interface itf,
const std::vector< boost::asio::ip::address > &  ip_addr,
const mac_address_t mac,
const gbp_endpoint_group epg,
const flags_t flags = flags_t::NONE 
)

Construct a GBP endpoint.

Definition at line 38 of file gbp_endpoint.cpp.

◆ gbp_endpoint() [2/2]

VOM::gbp_endpoint::gbp_endpoint ( const gbp_endpoint r)

Copy Construct.

Definition at line 53 of file gbp_endpoint.cpp.

◆ ~gbp_endpoint()

VOM::gbp_endpoint::~gbp_endpoint ( )

Destructor.

Definition at line 63 of file gbp_endpoint.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ dump()

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

Dump all bridge_domain-doamin into the stream provided.

Definition at line 142 of file gbp_endpoint.cpp.

+ Here is the call graph for this function:

◆ find()

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

Find the instnace of the bridge_domain domain in the OM.

Definition at line 130 of file gbp_endpoint.cpp.

◆ key()

const gbp_endpoint::key_t VOM::gbp_endpoint::key ( ) const

Return the object's key.

Definition at line 70 of file gbp_endpoint.cpp.

+ Here is the caller graph for this function:

◆ operator==()

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

comparison operator

Definition at line 76 of file gbp_endpoint.cpp.

+ Here is the call graph for this function:

◆ replay()

void VOM::gbp_endpoint::replay ( void  )
virtual

replay the object to create it in hardware

Implements VOM::object_base.

Definition at line 92 of file gbp_endpoint.cpp.

+ Here is the call graph for this function:

◆ singular()

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

Return the matching 'singular instance'.

Definition at line 136 of file gbp_endpoint.cpp.

◆ to_string()

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

Convert to string for debugging.

Implements VOM::object_base.

Definition at line 101 of file gbp_endpoint.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ OM

friend class OM
friend

Definition at line 159 of file gbp_endpoint.hpp.

◆ singular_db< key_t, gbp_endpoint >

friend class singular_db< key_t, gbp_endpoint >
friend

It's the singular_db class that calls replay()

Definition at line 164 of file gbp_endpoint.hpp.


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