OpenSDN source code
cfg_filter.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #ifndef vnsw_cfg_filter_h
7 #define vnsw_cfg_filter_h
8 
9 class AgentConfig;
10 class DBTable;
11 class IFMapNode;
12 struct DBRequest;
13 
14 class CfgFilter {
15 public:
16  CfgFilter(AgentConfig *cfg);
17  virtual ~CfgFilter();
18 
19  void Init();
20  void Shutdown();
21 private:
24  const IFMapIdentifier *req_id,
25  DBRequest *req);
26  bool CheckIdPermsProperty(DBTable *table,
27  const IFMapIdentifier *req_id,
28  DBRequest *req,
29  int property_id);
30  bool CheckProperty(DBTable *table, IFMapNode *node, DBRequest *req);
31  int GetIdPermsPropertyId(DBTable *table) const;
33 };
34 
35 #endif // vnsw_cfg_filter_h
void Shutdown()
Definition: cfg_filter.cc:214
bool CheckProperty(DBTable *table, IFMapNode *node, DBRequest *req)
Definition: cfg_filter.cc:102
AgentConfig * agent_cfg_
Definition: cfg_filter.h:22
void Init()
Definition: cfg_filter.cc:149
int GetIdPermsPropertyId(DBTable *table) const
Definition: cfg_filter.cc:56
bool CheckIdPermsProperty(DBTable *table, const IFMapIdentifier *req_id, DBRequest *req, int property_id)
Definition: cfg_filter.cc:36
bool CheckVmInterfaceProperty(DBTable *table, const IFMapIdentifier *req_id, DBRequest *req)
Definition: cfg_filter.cc:131
DISALLOW_COPY_AND_ASSIGN(CfgFilter)
virtual ~CfgFilter()
Definition: cfg_filter.cc:33
CfgFilter(AgentConfig *cfg)
Definition: cfg_filter.cc:30