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

#include <flow_mgmt_entry.h>

Inheritance diagram for AclFlowMgmtEntry:
Collaboration diagram for AclFlowMgmtEntry:

Public Types

typedef std::map< std::string,
int > 
AceIdFlowCntMap
 
- Public Types inherited from FlowMgmtEntry
enum  State { INVALID, OPER_NOT_SEEN, OPER_ADD_SEEN, OPER_DEL_SEEN }
 
typedef
boost::intrusive::member_hook
< FlowMgmtKeyNode,
boost::intrusive::list_member_hook
<>,&FlowMgmtKeyNode::hook_
Node
 
typedef boost::intrusive::list
< FlowMgmtKeyNode, Node
FlowList
 

Public Member Functions

 AclFlowMgmtEntry ()
 
virtual ~AclFlowMgmtEntry ()
 
void FillAclFlowSandeshInfo (const AclDBEntry *acl, AclFlowResp &data, const int last_count, Agent *agent)
 
void FillAceFlowSandeshInfo (const AclDBEntry *acl, AclFlowCountResp &data, const std::string &ace_id)
 
bool Add (const AclEntryIDList *ace_id_list, FlowEntry *flow, const AclEntryIDList *old_id_list, FlowMgmtKeyNode *node)
 
bool Delete (const AclEntryIDList *ace_id_list, FlowEntry *flow, FlowMgmtKeyNode *node)
 
void DecrementAceIdCountMap (const AclEntryIDList *id_list)
 
- Public Member Functions inherited from FlowMgmtEntry
 FlowMgmtEntry ()
 
virtual ~FlowMgmtEntry ()
 
uint32_t Size () const
 
virtual bool Add (FlowEntry *flow, FlowMgmtKeyNode *node)
 
virtual bool Delete (FlowEntry *flow, FlowMgmtKeyNode *node)
 
virtual bool OperEntryAdd (FlowMgmtManager *mgr, const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool OperEntryChange (FlowMgmtManager *mgr, const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool OperEntryDelete (FlowMgmtManager *mgr, const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool NonOperEntryDelete (FlowMgmtManager *mgr, const FlowMgmtRequest *req, FlowMgmtKey *key)
 
virtual bool CanDelete () const
 
void set_oper_state (State state)
 
State oper_state () const
 
uint32_t gen_id () const
 
const FlowListflow_list () const
 

Private Member Functions

std::string GetAceSandeshDataKey (const AclDBEntry *acl, const std::string &ace_id)
 
std::string GetAclFlowSandeshDataKey (const AclDBEntry *acl, const int last_count) const
 
 DISALLOW_COPY_AND_ASSIGN (AclFlowMgmtEntry)
 

Private Attributes

uint32_t flow_miss_
 
AceIdFlowCntMap aceid_cnt_map_
 

Additional Inherited Members

- Static Public Attributes inherited from FlowMgmtEntry
static const int MaxResponses = 100
 
- Protected Attributes inherited from FlowMgmtEntry
State oper_state_
 
uint32_t gen_id_
 
FlowList flow_list_
 

Detailed Description

Definition at line 89 of file flow_mgmt_entry.h.

Member Typedef Documentation

typedef std::map<std::string, int> AclFlowMgmtEntry::AceIdFlowCntMap

Definition at line 91 of file flow_mgmt_entry.h.

Constructor & Destructor Documentation

AclFlowMgmtEntry::AclFlowMgmtEntry ( )
inline

Definition at line 92 of file flow_mgmt_entry.h.

virtual AclFlowMgmtEntry::~AclFlowMgmtEntry ( )
inlinevirtual

Definition at line 93 of file flow_mgmt_entry.h.

Member Function Documentation

bool AclFlowMgmtEntry::Add ( const AclEntryIDList ace_id_list,
FlowEntry flow,
const AclEntryIDList old_id_list,
FlowMgmtKeyNode node 
)

Definition at line 175 of file flow_mgmt_entry.cc.

Here is the call graph for this function:

void AclFlowMgmtEntry::DecrementAceIdCountMap ( const AclEntryIDList id_list)

Definition at line 168 of file flow_mgmt_entry.cc.

bool AclFlowMgmtEntry::Delete ( const AclEntryIDList ace_id_list,
FlowEntry flow,
FlowMgmtKeyNode node 
)

Definition at line 192 of file flow_mgmt_entry.cc.

Here is the call graph for this function:

AclFlowMgmtEntry::DISALLOW_COPY_AND_ASSIGN ( AclFlowMgmtEntry  )
private
void AclFlowMgmtEntry::FillAceFlowSandeshInfo ( const AclDBEntry acl,
AclFlowCountResp &  data,
const std::string &  ace_id 
)

Definition at line 102 of file flow_mgmt_entry.cc.

Here is the call graph for this function:

void AclFlowMgmtEntry::FillAclFlowSandeshInfo ( const AclDBEntry acl,
AclFlowResp &  data,
const int  last_count,
Agent agent 
)

Definition at line 132 of file flow_mgmt_entry.cc.

Here is the call graph for this function:

string AclFlowMgmtEntry::GetAceSandeshDataKey ( const AclDBEntry acl,
const std::string &  ace_id 
)
private

Definition at line 93 of file flow_mgmt_entry.cc.

Here is the call graph for this function:

string AclFlowMgmtEntry::GetAclFlowSandeshDataKey ( const AclDBEntry acl,
const int  last_count 
) const
private

Definition at line 84 of file flow_mgmt_entry.cc.

Here is the call graph for this function:

Member Data Documentation

AceIdFlowCntMap AclFlowMgmtEntry::aceid_cnt_map_
private

Definition at line 110 of file flow_mgmt_entry.h.

uint32_t AclFlowMgmtEntry::flow_miss_
private

Definition at line 109 of file flow_mgmt_entry.h.


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