OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cfg_filter.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  */
4 
5 #ifndef vnsw_cfg_filter_h
6 #define vnsw_cfg_filter_h
7 
8 class AgentConfig;
9 class DBTable;
10 class IFMapNode;
11 struct DBRequest;
12 
13 class CfgFilter {
14 public:
15  CfgFilter(AgentConfig *cfg);
16  virtual ~CfgFilter();
17 
18  void Init();
19  void Shutdown();
20 private:
23  const IFMapIdentifier *req_id,
24  DBRequest *req);
25  bool CheckIdPermsProperty(DBTable *table,
26  const IFMapIdentifier *req_id,
27  DBRequest *req,
28  int property_id);
29  bool CheckProperty(DBTable *table, IFMapNode *node, DBRequest *req);
30  int GetIdPermsPropertyId(DBTable *table) const;
32 };
33 
34 #endif // vnsw_cfg_filter_h
void Shutdown()
Definition: cfg_filter.cc:213
int GetIdPermsPropertyId(DBTable *table) const
Definition: cfg_filter.cc:55
void Init()
Definition: cfg_filter.cc:148
virtual ~CfgFilter()
Definition: cfg_filter.cc:32
bool CheckVmInterfaceProperty(DBTable *table, const IFMapIdentifier *req_id, DBRequest *req)
Definition: cfg_filter.cc:130
AgentConfig * agent_cfg_
Definition: cfg_filter.h:21
bool CheckProperty(DBTable *table, IFMapNode *node, DBRequest *req)
Definition: cfg_filter.cc:101
DISALLOW_COPY_AND_ASSIGN(CfgFilter)
bool CheckIdPermsProperty(DBTable *table, const IFMapIdentifier *req_id, DBRequest *req, int property_id)
Definition: cfg_filter.cc:35
CfgFilter(AgentConfig *cfg)
Definition: cfg_filter.cc:29