OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ErmVpnTable Class Reference

#include <ermvpn_table.h>

Inheritance diagram for ErmVpnTable:
Collaboration diagram for ErmVpnTable:

Classes

struct  RequestKey
 

Public Member Functions

 ErmVpnTable (DB *db, const std::string &name)
 
virtual std::unique_ptr< DBEntryAllocEntry (const DBRequestKey *key) const
 
virtual std::unique_ptr< DBEntryAllocEntryStr (const std::string &key) const
 
virtual Address::Family family () const
 
bool IsMaster () const
 
virtual bool IsVpnTable () const
 
virtual size_t Hash (const DBEntry *entry) const
 
virtual size_t Hash (const DBRequestKey *key) const
 
size_t Hash (const Ip4Address &group) const
 
virtual int PartitionCount () const
 
virtual BgpRouteRouteReplicate (BgpServer *server, BgpTable *src_table, BgpRoute *src_rt, const BgpPath *path, ExtCommunityPtr ptr)
 
virtual bool Export (RibOut *ribout, Route *route, const RibPeerSet &peerset, UpdateInfoSList &info_slist)
 
size_t HashFunction (const ErmVpnPrefix &prefix) const
 
bool IsGlobalTreeRootRoute (ErmVpnRoute *rt) const
 
const ErmVpnRouteFindRoute (const ErmVpnPrefix &prefix) const
 
ErmVpnRouteFindRoute (const ErmVpnPrefix &prefix)
 
void CreateTreeManager ()
 
void DestroyTreeManager ()
 
McastTreeManagerGetTreeManager ()
 
const McastTreeManagerGetTreeManager () const
 
virtual void set_routing_instance (RoutingInstance *rtinstance)
 
const McastTreeManagertree_manager () const
 
McastTreeManagertree_manager ()
 
void CreateMvpnProjectManager ()
 
void DestroyMvpnProjectManager ()
 
MvpnProjectManagermvpn_project_manager ()
 
const MvpnProjectManagermvpn_project_manager () const
 
void GetMvpnSourceAddress (ErmVpnRoute *ermvpn_route, Ip4Address *address) const
 
- Public Member Functions inherited from BgpTable
 BgpTable (DB *db, const std::string &name)
 
 ~BgpTable ()
 
const RibOutMapribout_map ()
 
RibOutRibOutFind (const RibExportPolicy &policy)
 
RibOutRibOutLocate (BgpUpdateSender *sender, const RibExportPolicy &policy)
 
void RibOutDelete (const RibExportPolicy &policy)
 
virtual bool IsRoutingPolicySupported () const
 
virtual bool IsRouteAggregationSupported () const
 
void CheckAggregatorAttr (BgpAttr *attr) const
 
void CreateAsPath4Byte (BgpAttr *attr, as_t local_as) const
 
void CreateAsPath2Byte (BgpAttr *attr) const
 
void CreateAs4Path (BgpAttr *attr) const
 
bool Has4ByteAsn (BgpAttr *attr) const
 
void PrependAsToAsPath4Byte (BgpAttr *attr, as_t asn) const
 
void PrependAsToAsPath2Byte (BgpAttr *attr, as_t asn) const
 
void PrependAsToAsPath2Byte (BgpAttr *attr, as2_t asn) const
 
void PrependAsToAs4Path (BgpAttr *attr, as_t asn) const
 
UpdateInfoGetUpdateInfo (RibOut *ribout, BgpRoute *route, const RibPeerSet &peerset)
 
void ProcessDefaultTunnelEncapsulation (const RibOut *ribout, ExtCommunityDB *extcomm_db, BgpAttr *attr) const
 
virtual void UpdateSecondaryTablesForReplication (BgpRoute *rt, TableSet *secondary_tables)
 
void ManagedDelete ()
 
virtual void RetryDelete ()
 
void Shutdown ()
 
virtual bool MayDelete () const
 
bool IsDeleted () const
 
virtual PathResolverCreatePathResolver ()
 
void LocatePathResolver ()
 
void DestroyPathResolver ()
 
RoutingInstancerouting_instance ()
 
const RoutingInstancerouting_instance () const
 
BgpServerserver ()
 
const BgpServerserver () const
 
PathResolverpath_resolver ()
 
const PathResolverpath_resolver () const
 
LifetimeActordeleter ()
 
const LifetimeActordeleter () const
 
size_t GetPendingRiboutsCount (size_t *markers) const
 
void UpdatePathCount (const BgpPath *path, int count)
 
const uint64_t GetPrimaryPathCount () const
 
const uint64_t GetSecondaryPathCount () const
 
const uint64_t GetInfeasiblePathCount () const
 
const uint64_t GetStalePathCount () const
 
const uint64_t GetLlgrStalePathCount () const
 
void UpdateStalePathCount (int count)
 
void UpdateLlgrStalePathCount (int count)
 
bool IsAggregateRoute (const BgpRoute *route) const
 
bool IsContributingRoute (const BgpRoute *route) const
 
bool DeletePath (DBTablePartBase *root, BgpRoute *rt, BgpPath *path)
 
virtual void Input (DBTablePartition *root, DBClient *client, DBRequest *req)
 
bool InputCommon (DBTablePartBase *root, BgpRoute *rt, BgpPath *path, const IPeer *peer, DBRequest *req, DBRequest::DBOperation oper, BgpAttrPtr attrs, uint32_t path_id, uint32_t flags, uint32_t label, uint32_t l3_label)
 
void InputCommonPostProcess (DBTablePartBase *root, BgpRoute *rt, bool notify_rt)
 
void FillRibOutStatisticsInfo (std::vector< ShowRibOutStatistics > *sros_list) const
 
virtual BgpAttrPtr GetAttributes (BgpRoute *rt, BgpAttrPtr attrp, const IPeer *peer)
 
- Public Member Functions inherited from RouteTable
 RouteTable (DB *db, const std::string &name)
 
- Public Member Functions inherited from DBTable
 DBTable (DB *db, const std::string &name)
 
virtual ~DBTable ()
 
void Init ()
 
virtual DBTablePartitionAllocPartition (int index)
 
virtual DBEntryAdd (const DBRequest *req)
 
virtual bool OnChange (DBEntry *entry, const DBRequest *req)
 
virtual bool Delete (DBEntry *entry, const DBRequest *req)
 
void NotifyAllEntries ()
 
DBEntryFind (const DBEntry *entry)
 
const DBEntryFind (const DBEntry *entry) const
 
DBEntryFind (const DBRequestKey *key, int id=-1)
 
const DBEntryFind (const DBRequestKey *key, int id=-1) const
 
DBEntryFindNoLock (const DBEntry *entry)
 
DBEntryFindNoLock (const DBRequestKey *key)
 
virtual DBTablePartBaseGetTablePartition (const DBRequestKey *key)
 
virtual const DBTablePartBaseGetTablePartition (const DBRequestKey *key) const
 
virtual DBTablePartBaseGetTablePartition (const DBEntryBase *entry)
 
virtual const DBTablePartBaseGetTablePartition (const DBEntryBase *entry) const
 
virtual DBTablePartBaseGetTablePartition (const int index)
 
virtual const DBTablePartBaseGetTablePartition (const int index) const
 
virtual void Change (DBEntryBase *entry)
 
virtual size_t Size () const
 
DBTableWalkRef AllocWalker (WalkFn walk_fn, WalkCompleteFn walk_complete)
 
void ReleaseWalker (DBTableWalkRef &walk)
 
void WalkTable (DBTableWalkRef walk)
 
void WalkAgain (DBTableWalkRef walk)
 
void SetWalkIterationToYield (int count)
 
int GetWalkIterationToYield ()
 
void SetWalkTaskId (int task_id)
 
int GetWalkerTaskId ()
 
- Public Member Functions inherited from DBTableBase
 DBTableBase (DB *db, const std::string &name)
 
virtual ~DBTableBase ()
 
bool Enqueue (DBRequest *req)
 
void EnqueueRemove (DBEntryBase *db_entry)
 
virtual void AddRemoveCallback (const DBEntryBase *entry, bool add) const
 
ListenerId Register (ChangeCallback callback, const std::string &name="unspecified")
 
void Unregister (ListenerId listener)
 
void RunNotify (DBTablePartBase *tpart, DBEntryBase *entry)
 
void AddToDBStateCount (ListenerId listener, int count)
 
uint64_t GetDBStateCount (ListenerId listener)
 
bool empty () const
 
DBdatabase ()
 
const DBdatabase () const
 
const std::string & name () const
 
bool HasListeners () const
 
size_t GetListenerCount () const
 
void FillListeners (std::vector< ShowTableListener > *listeners) const
 
uint64_t enqueue_count () const
 
void incr_enqueue_count ()
 
void reset_enqueue_count ()
 
uint64_t input_count () const
 
void incr_input_count ()
 
void reset_input_count ()
 
uint64_t notify_count () const
 
void incr_notify_count ()
 
void reset_notify_count ()
 
bool HasWalkers () const
 
uint64_t walker_count () const
 
void incr_walker_count ()
 
uint64_t decr_walker_count ()
 
uint64_t walk_request_count () const
 
uint64_t walk_complete_count () const
 
uint64_t walk_cancel_count () const
 
uint64_t walk_again_count () const
 
uint64_t walk_count () const
 
void incr_walk_request_count ()
 
void incr_walk_complete_count ()
 
void incr_walk_cancel_count ()
 
void incr_walk_again_count ()
 
void incr_walk_count ()
 

Static Public Member Functions

static DBTableBaseCreateTable (DB *db, const std::string &name)
 
- Static Public Member Functions inherited from BgpTable
static bool PathSelection (const Path &path1, const Path &path2)
 
- Static Public Member Functions inherited from DBTable
static void DBStateClear (DBTable *table, ListenerId id)
 

Static Public Attributes

static const int kPartitionCount = 1
 
- Static Public Attributes inherited from DBTable
static const int kIterationToYield = 256
 
- Static Public Attributes inherited from DBTableBase
static const int kInvalidId = -1
 

Private Member Functions

virtual BgpRouteTableFind (DBTablePartition *rtp, const DBRequestKey *prefix)
 
 DISALLOW_COPY_AND_ASSIGN (ErmVpnTable)
 

Private Attributes

McastTreeManagertree_manager_
 
MvpnProjectManagermvpn_project_manager_
 

Friends

class BgpMulticastTest
 

Additional Inherited Members

- Public Types inherited from BgpTable
typedef std::map
< RibExportPolicy, RibOut * > 
RibOutMap
 
typedef std::set< BgpTable * > TableSet
 
- Public Types inherited from DBTable
typedef boost::intrusive_ptr
< DBTableWalk
DBTableWalkRef
 
typedef boost::function< bool(DBTablePartBase
*, DBEntryBase *)> 
WalkFn
 
typedef boost::function< void(DBTableWalkRef,
DBTableBase *)> 
WalkCompleteFn
 
- Public Types inherited from DBTableBase
typedef boost::function< void(DBTablePartBase
*, DBEntryBase *)> 
ChangeCallback
 
typedef int ListenerId
 

Detailed Description

Definition at line 19 of file ermvpn_table.h.

Constructor & Destructor Documentation

ErmVpnTable::ErmVpnTable ( DB db,
const std::string &  name 
)

Definition at line 24 of file ermvpn_table.cc.

Member Function Documentation

unique_ptr< DBEntry > ErmVpnTable::AllocEntry ( const DBRequestKey key) const
virtual

Implements DBTable.

Definition at line 28 of file ermvpn_table.cc.

unique_ptr< DBEntry > ErmVpnTable::AllocEntryStr ( const std::string &  key) const
virtual

Implements BgpTable.

Definition at line 35 of file ermvpn_table.cc.

Here is the call graph for this function:

void ErmVpnTable::CreateMvpnProjectManager ( )

Definition at line 216 of file ermvpn_table.cc.

Here is the call graph for this function:

DBTableBase * ErmVpnTable::CreateTable ( DB db,
const std::string &  name 
)
static

Definition at line 66 of file ermvpn_table.cc.

Here is the call graph for this function:

void ErmVpnTable::CreateTreeManager ( )

Definition at line 186 of file ermvpn_table.cc.

Here is the call graph for this function:

void ErmVpnTable::DestroyMvpnProjectManager ( )

Definition at line 225 of file ermvpn_table.cc.

Here is the call graph for this function:

void ErmVpnTable::DestroyTreeManager ( )

Definition at line 195 of file ermvpn_table.cc.

Here is the call graph for this function:

ErmVpnTable::DISALLOW_COPY_AND_ASSIGN ( ErmVpnTable  )
private
bool ErmVpnTable::Export ( RibOut ribout,
Route route,
const RibPeerSet peerset,
UpdateInfoSList info_slist 
)
virtual

Implements BgpTable.

Definition at line 150 of file ermvpn_table.cc.

Here is the call graph for this function:

virtual Address::Family ErmVpnTable::family ( ) const
inlinevirtual

Implements BgpTable.

Definition at line 37 of file ermvpn_table.h.

const ErmVpnRoute * ErmVpnTable::FindRoute ( const ErmVpnPrefix prefix) const

Definition at line 244 of file ermvpn_table.cc.

ErmVpnRoute * ErmVpnTable::FindRoute ( const ErmVpnPrefix prefix)

Definition at line 237 of file ermvpn_table.cc.

Here is the call graph for this function:

void ErmVpnTable::GetMvpnSourceAddress ( ErmVpnRoute ermvpn_route,
Ip4Address address 
) const

Definition at line 249 of file ermvpn_table.cc.

Here is the call graph for this function:

McastTreeManager * ErmVpnTable::GetTreeManager ( )

Definition at line 202 of file ermvpn_table.cc.

const McastTreeManager * ErmVpnTable::GetTreeManager ( ) const

Definition at line 206 of file ermvpn_table.cc.

size_t ErmVpnTable::Hash ( const DBEntry entry) const
virtual

Reimplemented from DBTable.

Definition at line 41 of file ermvpn_table.cc.

Here is the call graph for this function:

size_t ErmVpnTable::Hash ( const DBRequestKey key) const
virtual

Reimplemented from DBTable.

Definition at line 52 of file ermvpn_table.cc.

Here is the call graph for this function:

size_t ErmVpnTable::Hash ( const Ip4Address group) const

Definition at line 48 of file ermvpn_table.cc.

Here is the call graph for this function:

size_t ErmVpnTable::HashFunction ( const ErmVpnPrefix prefix) const

Definition at line 20 of file ermvpn_table.cc.

Here is the call graph for this function:

bool ErmVpnTable::IsGlobalTreeRootRoute ( ErmVpnRoute rt) const
bool ErmVpnTable::IsMaster ( ) const

Definition at line 232 of file ermvpn_table.cc.

Here is the call graph for this function:

virtual bool ErmVpnTable::IsVpnTable ( ) const
inlinevirtual

Reimplemented from BgpTable.

Definition at line 39 of file ermvpn_table.h.

Here is the call graph for this function:

MvpnProjectManager* ErmVpnTable::mvpn_project_manager ( )
inline

Definition at line 68 of file ermvpn_table.h.

const MvpnProjectManager* ErmVpnTable::mvpn_project_manager ( ) const
inline

Definition at line 69 of file ermvpn_table.h.

virtual int ErmVpnTable::PartitionCount ( ) const
inlinevirtual

Reimplemented from DBTable.

Definition at line 44 of file ermvpn_table.h.

BgpRoute * ErmVpnTable::RouteReplicate ( BgpServer server,
BgpTable src_table,
BgpRoute src_rt,
const BgpPath path,
ExtCommunityPtr  ptr 
)
virtual

Implements BgpTable.

Definition at line 72 of file ermvpn_table.cc.

Here is the call graph for this function:

void ErmVpnTable::set_routing_instance ( RoutingInstance rtinstance)
virtual

Reimplemented from BgpTable.

Definition at line 210 of file ermvpn_table.cc.

Here is the call graph for this function:

BgpRoute * ErmVpnTable::TableFind ( DBTablePartition rtp,
const DBRequestKey prefix 
)
privatevirtual

Implements BgpTable.

Definition at line 59 of file ermvpn_table.cc.

Here is the call graph for this function:

const McastTreeManager* ErmVpnTable::tree_manager ( ) const
inline

Definition at line 64 of file ermvpn_table.h.

McastTreeManager* ErmVpnTable::tree_manager ( )
inline

Definition at line 65 of file ermvpn_table.h.

Friends And Related Function Documentation

friend class BgpMulticastTest
friend

Definition at line 76 of file ermvpn_table.h.

Member Data Documentation

const int ErmVpnTable::kPartitionCount = 1
static

Definition at line 21 of file ermvpn_table.h.

MvpnProjectManager* ErmVpnTable::mvpn_project_manager_
private

Definition at line 81 of file ermvpn_table.h.

McastTreeManager* ErmVpnTable::tree_manager_
private

Definition at line 80 of file ermvpn_table.h.


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