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

#include <traffic_action.h>

Inheritance diagram for QosConfigAction:
Collaboration diagram for QosConfigAction:

Public Member Functions

 QosConfigAction ()
 
 QosConfigAction (const std::string &qos_config_name)
 
virtual ~QosConfigAction ()
 
const std::string & name () const
 
void set_qos_config_ref (const AgentQosConfig *config)
 
const AgentQosConfigqos_config_ref () const
 
virtual bool Compare (const TrafficAction &rhs) const
 
virtual void SetActionSandeshData (std::vector< ActionStr > &actions)
 
- Public Member Functions inherited from TrafficAction
 TrafficAction ()
 
 TrafficAction (Action action, TrafficActionType type)
 
virtual ~TrafficAction ()
 
bool IsDrop () const
 
Action action () const
 
TrafficActionType action_type () const
 
bool operator== (const TrafficAction &rhs) const
 

Private Attributes

std::string name_
 
AgentQosConfigConstRef qos_config_ref_
 

Additional Inherited Members

- Public Types inherited from TrafficAction
enum  TrafficActionType {
  SIMPLE_ACTION = 1, MIRROR_ACTION = 2, VRF_TRANSLATE_ACTION = 3, LOG_ACTION = 4,
  ALERT_ACTION = 5, QOS_ACTION = 6, HBS_ACTION = 7
}
 
enum  Action {
  ALERT = 1, DENY = 3, LOG = 4, PASS = 5,
  MIRROR = 7, VRF_TRANSLATE = 8, APPLY_QOS = 9, TRAP = 28,
  HBS = 10, IMPLICIT_DENY = 29, RESERVED = 30, UNKNOWN = 31
}
 
- Static Public Member Functions inherited from TrafficAction
static std::string ActionToString (enum Action at)
 
- Static Public Attributes inherited from TrafficAction
static const std::string kActionLogStr = "log"
 
static const std::string kActionAlertStr = "alert"
 
static const std::string kActionHbsStr = "hbs"
 
static const uint32_t DROP_FLAGS = ((1 << DENY))
 
static const uint32_t PASS_FLAGS = ((1 << PASS))
 
static const uint32_t IMPLICIT_DENY_FLAGS = ((1 << IMPLICIT_DENY))
 

Detailed Description

Definition at line 131 of file traffic_action.h.

Constructor & Destructor Documentation

QosConfigAction::QosConfigAction ( )
inline

Definition at line 133 of file traffic_action.h.

QosConfigAction::QosConfigAction ( const std::string &  qos_config_name)
inline

Definition at line 135 of file traffic_action.h.

virtual QosConfigAction::~QosConfigAction ( )
inlinevirtual

Definition at line 138 of file traffic_action.h.

Member Function Documentation

bool QosConfigAction::Compare ( const TrafficAction rhs) const
virtual

Implements TrafficAction.

Definition at line 147 of file traffic_action.cc.

const std::string& QosConfigAction::name ( ) const
inline

Definition at line 139 of file traffic_action.h.

const AgentQosConfig* QosConfigAction::qos_config_ref ( ) const
inline

Definition at line 146 of file traffic_action.h.

void QosConfigAction::set_qos_config_ref ( const AgentQosConfig config)
inline

Definition at line 143 of file traffic_action.h.

void QosConfigAction::SetActionSandeshData ( std::vector< ActionStr > &  actions)
virtual

Reimplemented from TrafficAction.

Definition at line 136 of file traffic_action.cc.

Here is the call graph for this function:

Member Data Documentation

std::string QosConfigAction::name_
private

Definition at line 153 of file traffic_action.h.

AgentQosConfigConstRef QosConfigAction::qos_config_ref_
private

Definition at line 154 of file traffic_action.h.


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